Lego Robots We built many robots from Lego
Lego Robots • • We built many robots from Lego kits. We experimented with drives We experimented with sensors We experimented with “architectures’
You can buy old Lego for 10 -40 dollars in USA
DRIVE SYSTEMS • ‘differential steering’ • contrast to steering wheel • balance • other options: tanks, bicycles, etc
Drive System • ratios and reduction—why? • gears: pro: efficient, accurate, strong con: need precise alignment, backlash • pulleys: pro: simplicity, flexibility con: slippage, poor durability • motor control: speed, direction, braking • note: Connector direction matters.
Example Vehicle Design • Differentially-steered vehicle with pulley drive • See handout for construction details
More advanced controls in microprocessors and FPGAs
A Brief History of Robotics
A Brief History of Robotics 1. Robotics grew out of the fields of control theory, cybernetics and AI 2. Robotics, in the modern sense, can be considered to have started around the time of cybernetics (1940 s) 3. Early AI had a strong impact on how it evolved (1950 s-1970 s), emphasizing reasoning and abstraction, removal from direct situatedness and embodiment 4. In the 1980 s a new set of methods was introduced and robots were put back into the physical world
Why we apply Control Theory in robotics? • The mathematical study of the properties of automated control systems – Helps understand the fundamental concepts governing all mechanical systems (steam engines, aeroplanes, etc. ) • Feedback: measure state and take an action based on it – Idea: continuously feeding back the current state and comparing it to the desired state, then adjusting the current state to minimize the difference (negative feedback). – The system is said to be self-regulating • E. g. : thermostats – if too hot, turn down, if too cold, turn up
Control Theory through History • Thought to have originated with the ancient Greeks – Time measuring devices (water clocks), water systems • Forgotten and rediscovered in Renaissance Europe – Heat-regulated furnaces (Drebbel, Reaumur, Bonnemain) – Windmills • James Watt’s steam engine (the governor)
Cybernetics • Pioneered by Norbert Wiener in the 1940 s – Comes from the Greek word “kibernts” – governor, steersman • Combines principles of control theory, information science and biology • Sought principles common to animals and machines, especially with regards to control and communication • Studied the coupling between an organism and its environment
1 5 WHO WAS REALLY FIRST? Cybernetic Robotics Hammond and Miessner automaton: Seleno (1914) Roberto Cordeschi, The Discovery of the Artificial, Kluwer Academic Pub. 2002 A phototropic dog
W. Grey Walter’s Tortoise • “Machina Speculatrix” (1953) – 1 photocell, 1 bump sensor, 2 motor, 3 wheels, 1 battery • Behaviors: – seek light – head toward moderate light – back from bright light – turn and push – recharge battery • Uses reactive control, with behavior prioritization
W. Grey Walter’s Tortoise
• Grey W. Walter makes use of psychological terms when he describes his machine as: – "spontaneous, " – "purposeful, " – "independent" • Robot is able to "recognize" itself and other individuals of the same species. • Robot is able to exhibit a food-searching instinct – (it automatically went towards its 'nest' to recharge its batteries when they were about to run out). 1. Walter admitted that all this could be seen as nothing but a series of tricks. 2. Nonetheless, an outside observer, let us say a biologist, would have used just this mentalistic terminology had he witnessed this behavior in real animals.
Cybernetic Robotics Grey W. Walter: Machina speculatrix (1950) A photosensible tortoise It is nice to be a pioneer? Do you want to be a technology pioneer?
Principles of Walter’s Tortoise • Parsimony – Simple is better • Exploration or speculation – Never stay still, except when feeding (i. e. , recharging) • Attraction (positive tropism) – Motivation to move toward some object (light source) • Aversion (negative tropism) – Avoidance of negative stimuli (heavy obstacles, slopes) • Discernment – Distinguish between productive/unproductive behavior (adaptation)
Artificial Intelligence Robots
Artificial Intelligence • Officially born in 1955 at Dartmouth University – Marvin Minsky, John Mc. Carthy, Herbert Simon • Intelligence in machines – Internal models of the world – Search through possible solutions – Plan to solve problems – Symbolic representation of information – Hierarchical system organization – Sequential program execution
AI and Robotics • AI influence to robotics: – Knowledge and knowledge representation are central to intelligence • Perception and action are more central to robotics • New solutions developed: behavior-based systems – “Planning is just a way of avoiding figuring out what to do next” (Rodney Brooks, 1987) • Distributed AI (DAI) – Society of Mind (Marvin Minsky, 1986): simple, multiple agents can generate highly complex intelligence • First robots were mostly influenced by AI (deliberative)
Shakey and others • At Stanford Research Institute (late 1960 s) • A deliberative system • Visual navigation in a very special world • STRIPS planner • Vision and contact sensors
Early AI Robots: HILARE • Late 1970 s • At LAAS in Toulouse • Video, ultrasound, laser rangefinder • Was in use for almost 2 decades • One of the earliest hybrid architectures • Multi-level spatial representations
Early Robots: CART/Rover • Hans Moravec’s early robots • Stanford Cart (1977) followed by CMU rover (1983) • Sonar and vision
Basic idea of Braitenberg Vehicles reminder and new concepts
Background • In Vehicles, Valentino Braitenberg describes a set of thought experiments in which increasingly complex vehicles are built from simple mechanical and electronic components. • Braitenberg uses these thought experiments to explore psychological ideas and the nature of intelligence. • Throughout the book, we see more intricate behaviors emerge from the interaction of simple component parts and simple behaviors
V. Braitenberg Vehicles: Experiments in synthetic psychology (1984) “…We will tempted, then, to use psychological language in describing their behavior. And yet we know very well there is nothing in these vehicles that we have not put in ourselves. This will be an interesting educational game” V. Braitenberg - Vehicles: Experiments in synthetic psychology, Cambridge, MA; MIT Press, 1984
Braitenberg Vehicles • Valentino Braitenberg (1980) • Thought experiments – Use direct coupling between sensors and motors – Simple robots (“vehicles”) produce complex behaviors that appear very animal, life-like • Excitatory connection – The stronger the sensory input, the stronger the motor output – Light sensor wheel: photophilic robot (loves the light) • Inhibitory connection – The stronger the sensory input, the weaker the motor output – Light sensor wheel: photophobic robot (afraid of the light)
Example Vehicles • Wide range of vehicles can be designed, by changing the connections and their strength Vehicle 1 • Vehicle 1: Being “ALIVE” – One motor, one sensor • Vehicle 2: “FEAR” and “AGGRESSION” – Two motors, two sensors – Excitatory connections • Vehicle 3: “LOVE” – Two motors, two sensors – Inhibitory connections Vehicle 2
V. Braitenberg Vehicles: Experiments in synthetic psycology, Cambridge, MA; MIT Press, 1984 inhibitory 1. The vehicle's sensors exert an inhibitory influence on the motors. 2. Vehicle A, turns toward the light source and stops, when it is dose enough to the light source. i. e. as soon as the light stimulation is large enough to exert sufficient inhibitory activation. 3. Vehicle B is similarly inhibited, but it moves away from the source.
• vehicle 2 B: coward – straight excitatory connections • vehicle 3 A: love – straight inhibitory connections off on + vehicle 2 A: aggresive crossed excitatory connections + + excitatory +
Motor. Test. java import josx. platform. rcx. *; class Motor. Test { static final int STOP = 0; static final int RUN = 1; static final int FLOAT = 2; static int mode = STOP; static int power = 0; public static void main(String [] args) { setup. Button. Listeners(); while (true) { if (mode == RUN) { Motor. A. set. Power( power ); Motor. A. forward(); } else if (mode == STOP) { Motor. A. stop(); } else if (mode == FLOAT) { Motor. A. flt(); } } }. . . (button listener code not shown) Modes of operation // power in range [0, 7]. incremented with each press of View button. Single motor vehicle
Mindstorms Light Sensor n why the LED? n sensor mode: raw vs. percent n I/0 graph, compared to mammal eyes n spectral response n sunlight vs incandescent vs fluorescent
Light. Test. java import josx. platform. rcx. *; class Light. Test implements Sensor. Constants { public static void main(String [] args) throws Interrupted. Exception { Sensor. S 1. set. Type. And. Mode (SENSOR_TYPE_LIGHT, SENSOR_MODE_PCT); Sensor. S 1. activate(); while (true) { int light. Reading; button if (Button. VIEW. is. Pressed()) { light. Reading = Sensor. S 1. read. Raw. Value(); } else { light. Reading = Sensor. S 1. read. Value(); } LCD. show. Number( light. Reading ); } } }
Complete Example: “Aggressive. java” import josx. platform. rcx. *; aggressive class aggressive implements Sensor. Constants { public static void main(String [] args) { int min. Brightness = 100; final int gain = 12; Sensor. S 1. set. Type. And. Mode (SENSOR_TYPE_LIGHT, SENSOR_MODE_PCT); Sensor. S 1. activate(); Sensor. S 3. set. Type. And. Mode (SENSOR_TYPE_LIGHT, SENSOR_MODE_PCT); Sensor. S 3. activate(); Sensors S 1 and S 3 for (int i = 0; i < 100; i++) { if (Sensor. S 1. read. Value() < min. Brightness) { min. Brightness = Sensor. S 1. read. Value(); } else if (Sensor. S 3. read. Value() < min. Brightness) { min. Brightness = Sensor. S 3. read. Value(); } Thread. sleep(20); } Motor. A. forward(); Motor. C. forward(); while (true) { int motor. ASpeed = (Sensor. S 3. read. Value() - min. Brightness) / gain; int motor. CSpeed = (Sensor. S 1. read. Value() - min. Brightness) / gain; set. Motor. Speed(Motor. A, motor. ASpeed); set. Motor. Speed(Motor. C, motor. CSpeed); } }
Aggressive. java (continued) protected static void set. Motor. Speed(Motor m, int motor. Speed) { if (motor. Speed < 1) { m. flt(); // important LCD. show. Number(-1); motor floats } else { if (motor. Speed > 7) { motor. Speed = 7; } m. forward(); m. set. Power(motor. Speed); LCD. show. Number(motor. Speed); Limit motor speed motor forward } } }
Observations n Closed loop control; control lessens importance of mechanical imperfections (e. g. pulley slip). n The map is not the territory. n Make your own—robots and observations!
Intelligent, Emotional behavior and the origins of Robot’s Control • Each of these imaginary vehicles in some way mimics intelligent behavior. • Each of them is given a name that corresponds to the behavior that it imitates; – – ”Fear”, ”Love”, ”Logic”, etc. • Our robots will have names such as « Quantum John » or « Fearful Qubit » or « Fuzzy Mary » to emphasize their brains and not only emotions.
Simple Creatures
Simple Creatures • Timid – the shadow seeker • one motor • one threshold light sensor, pointing up, on when in light and off in shadow. • Timid will run when it can ”see” the room lights, and stop when it cannot. – When the lights are turned on, Timid drives until it gets into shadow, at which point it stops
Simple Creatures • Indecisive – the shadow edge finder • one motor • one threshold light sensor, pointing up, on when in light and off in shadow. • Indecisive drives forward until it gets to a shadow. – At this point, the threshold light sensor no longer sees the overhead lights and its output switches of. • The motor reverses and the creature runs back into the light. – Indecisive oscillates back and forth at shadow edges.
Simple Creatures • Paranoid – the shadow-fearing robot • two motors • one threshold light sensor, pointing up, mounted on an arm sticking out forward, on when in light and off in shadow. • Paranoid drives straight forward until its threshold light sensor enters a shadow. – Then, triggered by the sensor, its left wheel reverses. – It swings around to the left until the protruding sensor has swung back out of the shadow. – At this point the left wheel returns to forward motion.
Simple Creatures • Dogged – – the obstacle avoider • • one motor two touch sensors, one facing front and one back, each connected to a bumper. or flip-flop • When Dogged is started it runs either forward or backward. – When either the front or back bumper is pressed, the creature reverses direction. – Dogged changes direction every time either bumper gets pressed. – It will fall into a pattern of running quickly back and forth between two objects.
Simple Creatures • Insecure – – the wall follower • two motors • whisker sensor, on when sufficiently bent and off otherwise (implement using a touch sensor and a strip). • inverter • Insecure slowly edges its way along walls and around the base of pillars.
Simple Creatures • Driven – – the light seeker • two motors • differential light sensor, facing forward (implent it with two light sensors) • Driven moves towards a bright light by successive right and left turns. – It slowly wiggles its way towards light sources.
More Complex Creatures
MULTISENSORY T: Temperature O: Oxygen F: Food L TL OL L: Light FL LL LR FR OR R TR L: Light F: Food O: Oxygen T: Temperature
More Complex Creatures 1. Multi-sensory 2. Persistent – – the light seeker with a collision algorithm 3. Attractive and Repulsive – – the leading and following pair 4. Consistent – – the four state turtle 5. Inhumane – – the mouse trap
Philosophical Creatures • Frantic – – the negative feedback loop • Observant – – the creature sensitive to the direction of a sound
Idea of “Generalized Braitenberg Vehicles”
Generalized Braitenberg Vehicles 1. 2. 3. 4. 5. 6. 7. 8. Other designs of the vehicle itself. Various types of drives. Braitenberg Head, Braitenberg Mister Potatao, Braitenberg Snake. All kinds of “Braitenberg. Something”. Very many sensors Very many effectors Complex brains Combinational logic replaces with state machines. State machines replaced with Petri Nets and Regular Expressions
Generalized Braitenberg Vehicles 1. State machines replaced with Harel State Charts 2. Adding probability 3. Adding Fuzzy Control 4. Adding Multiple-Valued Control 5. Adding Modal Logic Controls 6. Programming in LISP 7. Reconfigurable change shape of body
actuators sensors Combinational Block Generalized Braitenberg Robot ENVIRONMENT actuators sensors Combinational Block memory ENVIRONMENT Braitenberg Automaton Robot
Fuzzy Combinational Block Quantum Combinational Block Q/F Quantum memory ENVIRONMENT actuators Fuzzy Memory sensors F/Q
Original “Braitenberg Vehicles” are Wheeled Mobile Robots • Wheeled Mobile Robot (WMR) A robot capable of locomotion on a surface solely through the actuation of wheel assemblies mounted on the robot and in contact with the surface. A wheel assembly is a device which provides or allows motion between its mount and surface on which it is intended to have a single point of rolling contact. What is the best drive system Muir and Newman, 1986 and mechanical design of a mobile robot?
Drives of “Generalized Braitenberg Vehicles”
Assumptions Non-slipping and pure rolling 1. The robot is built from rigid mechanisms. 2. The robot contains at most one steering link per wheel. 3. All steering axes are perpendicular to the floor. 4. No slip occurs in the orthogonal direction of rolling (non-slipping). 5. No translational slip occurs between the wheel and the floor (pure rolling).
Examples of mobile robots • • • Suitable to make the model Smooth motion Risk of slipping Bi- wheel type robot n Exact straight motion n Robust to slipping n Inexact modeling of turning Caterpillar type robot n Free motion n Complex structure n Weakness of the frame Omnidirectional robot
Subsumption Architecture of Brooks implemented in BV
A simplified version of an elementary Brooks architecture Level 2 PATHPLAN Level 1 SUPPRESS WANDER AVOID Level 0 SENSORS subsumption FORWARD TURN MOTOR
L R E N V I R O N M E N T TL OL FL LL LR FR OR TR F O L T j w l t M 1. If both Temperature sensors are active, then go forward; otherwise go away from the direction pointed at by either one of them unless there is Light. 2. In this case, take the direction pointed at by Light. 3. You do this, unless the Oxygen sensors are active. 4. In such a case, always go their direction unless Food is present. 5. If this is the case, always go in that direction.
IMPLY(X, Y) UNLESS(X, Z, Y) E N V I R O N M E N T if X occurs then apply Y unless Z occurs F O L T j w l t M IMPLY(F, ) UNLESS(O, , ) UNLESS(L, , ) UNLESS(T, , )
Readings • Vehicles: Experiments in Synthetic Psychology, Valentino Braitenberg, MIT Press; Reprint edition (1986), ISBN: 0262521121 • Braitenberg Creatures, D. W. Hogg, F. Martin, M. Resnick. E&L Memo No 13, MIT Media Lab. Cambridge, MA, 1991. http: //citeseer. nj. nec. com/hogg 91 braitenberg. ht ml
Slides and Ideas Used • • Ernesto Burattini Jong Hwan Kim Edmond Schonberg Davi Geiger Krister Wolf Roberto Cordeschi Guglielmo Tamburrini Arushi Raghuvanshi
- Slides: 66