Fun with Robots and Elixir

Size: px
Start display at page:

Download "Fun with Robots and Elixir"

Transcription

1 Presented by Jean-François Cloutier At the Meetup Fun with Robots and Elixir January 21, 2016

2 Why program robots with Elixir? Because robots are lots of fun and Elixir is the shiznit And a robot's mind should be a society of agents (or, at least, a cacophony of agents) Which is best implemented with processes, lots of processes, running concurrently And Elixir (with OTP and the Erlang runtime system) totally shines here

3 Lego Mindstorms The Greatest Toy Ever! And it keeps getting better EV3 brick 1998 RCX 2006 NXT EV3 Faster CPU, more memory Linux! Bootable microsd card USB port Daisy chain up to 4 bricks Plug WiFi dongle

4 The goodies The programmable brick 4 sensor input ports 4 motor output ports LEDs Sound Sensors and actuators 2 large motors 1 medium motor 1 color sensor 1 IR sensor (with beacon/remote control) 1 touch sensor 1 ultrasonic sensor (extra) 1 gyro sensor (extra)

5 The goodies And a whole bunch of Connectors Wheels, cogs, threads Etc.

6 Programming the EV3 The EV3 set comes with a customized version of LabView Visual programming? Snazzy! If you don't mind coding everything as one big sense and respond loop

7 Blerch! OK it's not that bad but we can do better!

8 ev3dev.org to the rescue An updated LEGO Linux kernel (Debian) Bootable from a microsd card Can run most Debian packages apt-get install EV3 software rebuilt from the ground up Motor, sensor and LED drivers use sysfs Exposed as character files Sensing = reading files Controlling = writing to files EV3 is now exposed to any and all programming languages running under Linux Ergo, we can code the EV3 with Elixir!

9 Installing Elixir on the EV3 You will need to Connect the EV3 to the Internet (via WiFi dongle) Build the latest release of Erlang from sources Install Elixir from a precompiled zip Setup a user account with the right privileges See details in my blog

10 Meet the robot LEDs Ultrasonic sensor (to sense (green when moving around, orange when finding food, red when panicking) proximity of obstacles) Infrared sensor (to sense beacon distance and direction) Medium motor (turned on when eating ) Touch sensor Speaker (to detect collisions) (to emote audibly) Color sensor (to see the food ) Large motor (to move and turn) Beacon Powered by elixir Designed and built by my 12 year old son William (to simulate the smell of food)

11

12 Perceptors Perceptors generate high(er)-level percepts Each Perceptor reacts to a new percept of interest and analyzes more or less recent memorized percepts to, possibly, create a new percept which it then notifies the CNS of A collision Perceptor, for example, would analyze proximity and touch percepts Decreasing proximity = collision soon Close proximity in immediate past = collision imminent Recent collision imminent and touched = collision now A fear Perceptor would analyze collisions and ambient light percepts It would create fear percepts when the robot collides in very low ambient light

13 Motivators Motivators generate motives in response to new percepts Motives are like emotions They trigger behaviors A motive can inhibit other or all motives Hunger inhibits curiosity Fear inhibits all other motives Motives are kept in memory for a while

14 Behaviors Behaviors are finite-state machines triggered by motives Curiosity State transitions Collision NOW are caused by new percepts And typically generate intents A behavior is frozen if all its triggering motives are inhibited Behave this! Time elapsed Started Back off Collision Stuck IMMINENT Avoid collision Roaming Roam Time elapsed

15 Actuators Actuators translate intents into commands Each actuator realizes one type of intent by executing a script that sends a sequence of commands to motors and LEDs Different robots may require completely different scripts to realize the same intent

16 Memory The Memory stores percepts, motives and intents For later recall by by Perceptors, Motivators and Behaviors Expired, invalidated percepts are continuously removed from memory Percepts from different senses are retained for different amounts of time

17 The Central Nervous System The CNS is an event dispatcher Dispatched events include A percept, motive or intent was created An intent was realized An actuator is overwhelmed The CNS connects the robot's mind via events Detectors, Memory, Perceptors, Motivators, Behaviors, Actuators... do not communicate directly They each listen to all events but only handle those of interest to them

18 From percepts to actions to percepts Detectors produce percepts when sensors detect changes CNS mediates all interactions Perceptors generate higher-level percepts Motivator Motivator Percepts cause motives via motivators Motives trigger behaviors that are driven by percepts and generate intents Perceptor Perceptor Intents are translated into commands by actuators Commands make the robot move, generating new perceptions The passing of time is itself a periodic perception Behavior Behavior Detector, Detector, Internal Internal clock clock Everything happens concurrently No single, big sense-respond loop All interactions are via events dispatched by the CNS Actions Actionscause cause measures measurestotochange change Actuator Actuator

19 The urgency of now A robot must deal with the here and now It can't afford to react to its situation as it was 10 seconds ago When the robot is falling behind, it sees increasingly stale percepts, motives or intents At some point, they become dangerously out-of-sync with reality One solution Ignore stale percepts, motives and intents Strong intents take longer to become stale And make the robot faint (briefly) To temporarily stop the production of Percepts by Detectors and by the Internal Clock Giving the robot a chance to catch up

20 Inspiration Marvin Minsky's society of mind A core tenet of Minsky's philosophy is that "minds are what brains do". The society of mind theory views the human mind and any other naturally evolved cognitive systems as a vast society of individually simple processes known as agents. These processes are the fundamental thinking entities from which minds are built, and together produce the many abilities we attribute to minds. The great power in viewing a mind as a society of agents, as opposed to the consequence of some basic principle or some simple formal system, is that different agents can be based on different types of processes with different purposes, ways of representing knowledge, and methods for producing results. This idea is perhaps best summarized by the following quote: What magical trick makes us intelligent? The trick is that there is no trick. The power of intelligence stems from our vast diversity, not from any single, perfect principle. Marvin Minsky, The Society of Mind, p

21 Inspiration Rodney Brooks' subsumption architecture Subsumption architecture is a reactive robotic architecture heavily associated with behavior-based robotics. The term was introduced by Rodney Brooks and colleagues in Subsumption architecture is a control architecture that [decomposes] the complete behavior into sub-behaviors. These sub-behaviors are organized into a hierarchy of layers. Each layer implements a particular level of behavioral competence, and higher levels are able to subsume lower levels in order to create viable behavior. For example, a robot's lowest layer could be "avoid an object". The second layer would be "wander around", which runs beneath the third layer "explore the world". The layers, which all receive sensor-information, work in parallel and generate outputs. These outputs can be commands to actuators, or signals that suppress or inhibit other layers. Each layer is made up by a set of processors that are augmented finite-state machines (AFSM), the augmentation being added instance variables to hold programmable data-structures. A layer is a module and is responsible for a single behavioral goal, such as "wander around." There is no central control within or between these behavioral modules. All AFSMs continuously and asynchronously receive input from the relevant sensors and send output to actuators (or other AFSMs). Input signals that are not read by the time a new one is delivered end up getting discarded. These discarded signals are common, and is useful for performance because it allows the system to work in real time by dealing with the most immediate information.

22 The robot's mind is constructed by defining its Perceptors Motivators Behaviors Actuators

23 Release the robot! The robot starts hungry, so it forages first by... Trying to orient itself and move toward the beacon Looking for blue food, hopefully in well-lit areas (more plentiful) While avoiding obstacles or getting stuck When not hungry, it expresses its innate curiosity by roaming Randomly going here and there And avoiding obstacles or getting stuck If it collides into something, it panics And behaves like a headless chicken Until it calms down and resumes foraging or roaming

24 Test run Beacon (as the Food smell of food) The robot starts up hungry and searches for food. It first heads in the wrong direction, gets stuck ( I'm stuck! ) but manages to free itself. Then it smells the bacon beacon and makes a bee line toward the food. It slows down as it gets closer, adjusting its aim until it finds the food (blue paper). It then proceeds to eat it ( nom de nom de nom! ), turning on orange lights and running its small motor (the mouth ). The beast When it becomes sated, curiosity takes over and the robot roams around, trying to avoid collisions. It sometimes panics ( I'm scared! ) when it runs into walls. The lights then turn red and the poor robot behaves like a headless chicken for a while until it calms down. At some point, it gets hungry again and, this time, easily finds the food.

25 Coding the mind of a robot I use Elixir file functions to write to and read from /sys/class/... And take advantage of Elixir's functional programming Devices, percepts etc. as immutable data Detection, perception, behavior etc. as functional transformations I made OTP my BFF The CNS and its event handlers are implemented with GenServer and GenEvent I use Agents for Detectors, Perceptors, Motivators, Behaviors and Actuators Memory is a singleton GenServer Linked processes Periodically remove stale memories Poll sensors (creates a transaction boundary) Everything is supervised for fail-over

26 Accessing the EV3 via sysfs

27 Interacting with tacho-motors Large motor ssh cd /sys/class/tacho motor cd motor0 cat driver_name echo 50 > duty_cycle_sp echo run-forever > command echo stop > command Medium motor

28 Interacting with sensors Touch sensor Infrared sensor and remote control cd /sys/class/lego sensor cd sensor1 cat driver_name cat value0 cat modes echo IR SEEK > mode cat value0 cat value1 Color sensor

29 Modeling EV3 devices We can model the changing state of motors, sensors and LEDs As mutable global variables (the non-fp way) as embodied by /sys/class files Or as functions consuming and producing immutable data Done by wrapping /sys/class with pure functions that input and output device states Device Get connected devices (the FP way) Alter controls Device Execute command Device Device Get state Device Device

30 Accessing EV3 devices the FP way Devices are immutable data Access to sensors and other devices Via pure functions Inputing and outputting devices as structs

31 A functional brain The robot's state is modeled as a bunch of (immutable) data structures Percept, Motive, Behavior FSM, Intent Configurations for perception, motivation, behaviors and actuation Memory queries are encoded as higher order functions and transformation pipelines Functions-as-data encode Perception capabilities Motivation rules Elements of behavior Actuation scripts

32 OTP on the brain In my implementation, I aimed for Maximum concurrency via processes A society of mind is inherently parallel Sequential processing happens only where absolutely necessary Maximum decoupling via events Components don't know of each other OTP is a spectacular fit Supervisor, GenServer, GenEvent, Agent etc. = high-level concurrency framework OTP makes it easy to implement a process-based design with predictable behavior You don't need to be a genius to correctly interleave concurrent and sequential code The use of OTP favors economical and largely declarative code It says what it does and it does what it says

33 Processes in Elixir, a refresher Processes are cheap (2.5K per process) Preemptive scheduling (no CPU hogs) over multiple cores Process Process Communication with processes: Via self-contained (deep-copied) messages Messages are sent to a process' mailbox (a queue) The receiving process handles one message a time linked When a process creates another, it can... Link to it (it dies if the linked process dies abnormally) Monitor it (might receive a wrongful death message) Process Process {:exit, pid, reason} OTP is (among other things) a framework for easily and safely creating, interacting with and supervising processes Hides complexities and handles the corner cases Standardizes multi-process coding

34 The Ev3 application's process tree* * Here running with mock motors and sensors

35 I OTP The 'simple-one-for-one' supervisor strategy Supervised worker child processes are created on request and as needed Applied to (re)start Detectors, Perceptors, Motivators, Behaviors, Actuators A singleton GenServer creates a transactional boundary N processes sending messages to one Genserver (transaction boundary!) Applied for Memory, CNS Process Calls GenServer Process Process Messages handled one at a time

36 I I use Agents (simplified GenServers) to implement Detectors, Perceptors, Motivators, Behaviors and Actuators Agents are supervisable processes that Hold a non-shared state (while the process is alive) Behaviors are finite state machines A behavior has states and state transitions I did not use OTP's gen_fsm but rolled my own FSM to fit my special needs OTP

37 I OTP The CNS is an event manager implemented as a GenServer that monitors its GenEvent handlers It notices and recovers from event handler failures See my Gist I spawn processes to parallelize event dispatching Used by event handlers for Perceptors, and Actuators

38 Configuring a robot's mind The particulars of a given robot's perception and execution are defined in these modules: Ev3.Perception Ev3.Motivation The rules by which the robot responds to Percepts by turning Motives on and off Ev3.Behaviors The ways by which the robot creates Percepts and interprets them into high-level Percepts The robot's finite state machines triggered by Motives and driven by Percepts to generate Intents Ev3.Actuation The rules by which the robot realizes Intents by sending scripted commands to its motors and LEDs

39 Debugging a robot is painful Debugging the real-world behavior of a physical being is not like debugging code The effects of commands are unpredictable (the robot hits a wall, a wheel slips) Sensors can lie (they sometimes see ghosts) Overall behavior is very sensitive to tuning (how much to turn, how far to move) The Heisenberg Principle is in full force (producing a debug trace drastically alters time-sensitive behavior causing new problems) And debugging code is harder Some bugs only come out when dealing with real motors and sensors (vs mocks) The run-edit-deploy cycle on the EV3 is very long (it's a slooow 300MHz ARM9 single core computer)

40 Time to wrap it up Functional programming FTW! I implemented a non-trivial robotics framework using FP I never once missed having classes, inheritance etc. (sorry OO, my old friend) Data structures + functional transformations make the code remarkably declarative and compact OTP, how do I love thee? OTP is a treasure trove of battle-tested power tools for writing fault-tolerant, concurrent, event-driven code Elixir polishes it to a shine (minimal boilerplate, simple abstractions like Agent and Task) Bottom line Coding the robot in Elixir/OTP is so much fun it at times verges on pure giddiness

41 Watch this space

42 Thank you all! I organize the Portland (Maine) Erlang & Elixir meetup jean.f.cloutier@gmail.com Twitter: jfcloutier Github:

ICS 606. Intelligent Autonomous Agents 1. Intelligent Autonomous Agents ICS 606 / EE 606 Fall Reactive Architectures

ICS 606. Intelligent Autonomous Agents 1. Intelligent Autonomous Agents ICS 606 / EE 606 Fall Reactive Architectures Intelligent Autonomous Agents ICS 606 / EE 606 Fall 2011 Nancy E. Reed nreed@hawaii.edu 1 Lecture #5 Reactive and Hybrid Agents Reactive Architectures Brooks and behaviors The subsumption architecture

More information

An Escalation Model of Consciousness

An Escalation Model of Consciousness Bailey!1 Ben Bailey Current Issues in Cognitive Science Mark Feinstein 2015-12-18 An Escalation Model of Consciousness Introduction The idea of consciousness has plagued humanity since its inception. Humans

More information

Agents and Environments

Agents and Environments Agents and Environments Berlin Chen 2004 Reference: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 2 AI 2004 Berlin Chen 1 What is an Agent An agent interacts with its

More information

Artificial Intelligence Lecture 7

Artificial Intelligence Lecture 7 Artificial Intelligence Lecture 7 Lecture plan AI in general (ch. 1) Search based AI (ch. 4) search, games, planning, optimization Agents (ch. 8) applied AI techniques in robots, software agents,... Knowledge

More information

Module 1. Introduction. Version 1 CSE IIT, Kharagpur

Module 1. Introduction. Version 1 CSE IIT, Kharagpur Module 1 Introduction Lesson 2 Introduction to Agent 1.3.1 Introduction to Agents An agent acts in an environment. Percepts Agent Environment Actions An agent perceives its environment through sensors.

More information

On Three Layer Architectures (Erann Gat) Matt Loper / Brown University Presented for CS296-3

On Three Layer Architectures (Erann Gat) Matt Loper / Brown University Presented for CS296-3 On Three Layer Architectures (Erann Gat) Matt Loper / Brown University Presented for CS296-3 February 14th, 2007 Introduction What is a good control architecture for a robot? How should it coordinate long

More information

How do you design an intelligent agent?

How do you design an intelligent agent? Intelligent Agents How do you design an intelligent agent? Definition: An intelligent agent perceives its environment via sensors and acts rationally upon that environment with its effectors. A discrete

More information

LECTURE 5: REACTIVE AND HYBRID ARCHITECTURES

LECTURE 5: REACTIVE AND HYBRID ARCHITECTURES Reactive Architectures LECTURE 5: REACTIVE AND HYBRID ARCHITECTURES An Introduction to MultiAgent Systems http://www.csc.liv.ac.uk/~mjw/pubs/imas There are many unsolved (some would say insoluble) problems

More information

DYNAMICISM & ROBOTICS

DYNAMICISM & ROBOTICS DYNAMICISM & ROBOTICS Phil/Psych 256 Chris Eliasmith Dynamicism and Robotics A different way of being inspired by biology by behavior Recapitulate evolution (sort of) A challenge to both connectionism

More information

Controlling Worries and Habits

Controlling Worries and Habits THINK GOOD FEEL GOOD Controlling Worries and Habits We often have obsessional thoughts that go round and round in our heads. Sometimes these thoughts keep happening and are about worrying things like germs,

More information

Overcome anxiety & fear of uncertainty

Overcome anxiety & fear of uncertainty Psoriasis... you won t stop me! Overcome anxiety & fear of uncertainty Royal Free London NHS Foundation Trust Psoriasis You Won t Stop Me This booklet is part of the Psoriasis You Won t Stop Me series:

More information

Robotic Dancing: Exploring Agents that use a Stratified Perceive- Decide-Act Cycle of Interaction

Robotic Dancing: Exploring Agents that use a Stratified Perceive- Decide-Act Cycle of Interaction Robotic Dancing: Exploring Agents that use a Stratified Perceive- Decide-Act Cycle of Interaction James Benze and Jennifer Seitzer Department of Computer Science University of Dayton, Dayton, OH 45469-2160

More information

Lightened Dream. Quick Start Guide Lightened Dream is a dream journal designed to wake you up in your dreams.

Lightened Dream. Quick Start Guide Lightened Dream is a dream journal designed to wake you up in your dreams. Lightened Dream Quick Start Guide Lightened Dream is a dream journal designed to wake you up in your dreams. Follow its directions and you will be bending the laws of reality while getting a good night

More information

CS148 - Building Intelligent Robots Lecture 5: Autonomus Control Architectures. Instructor: Chad Jenkins (cjenkins)

CS148 - Building Intelligent Robots Lecture 5: Autonomus Control Architectures. Instructor: Chad Jenkins (cjenkins) Lecture 5 Control Architectures Slide 1 CS148 - Building Intelligent Robots Lecture 5: Autonomus Control Architectures Instructor: Chad Jenkins (cjenkins) Lecture 5 Control Architectures Slide 2 Administrivia

More information

Student Minds Turl Street, Oxford, OX1 3DH

Student Minds Turl Street, Oxford, OX1 3DH Who are we? Student Minds is a national charity working to encourage peer support for student mental health. We encourage students to have the confidence to talk and to listen. We aim to bring people together

More information

Part I Part 1 Robotic Paradigms and Control Architectures

Part I Part 1 Robotic Paradigms and Control Architectures Overview of the Lecture Robotic Paradigms and Control Architectures Jan Faigl Department of Computer Science Faculty of Electrical Engineering Czech Technical University in Prague Lecture 02 B4M36UIR Artificial

More information

How to Work with the Patterns That Sustain Depression

How to Work with the Patterns That Sustain Depression How to Work with the Patterns That Sustain Depression Module 1.2 - Transcript - pg. 1 How to Work with the Patterns That Sustain Depression How to Transform a Client s Low Motivation Into an Ally Against

More information

CS324-Artificial Intelligence

CS324-Artificial Intelligence CS324-Artificial Intelligence Lecture 3: Intelligent Agents Waheed Noor Computer Science and Information Technology, University of Balochistan, Quetta, Pakistan Waheed Noor (CS&IT, UoB, Quetta) CS324-Artificial

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Intelligent Agents Chapter 2 & 27 What is an Agent? An intelligent agent perceives its environment with sensors and acts upon that environment through actuators 2 Examples of Agents

More information

Study Guide for Why We Overeat and How to Stop Copyright 2017, Elizabeth Babcock, LCSW

Study Guide for Why We Overeat and How to Stop Copyright 2017, Elizabeth Babcock, LCSW Study Guide for Why We Overeat and How to Stop Copyright 2017, Elizabeth Babcock, LCSW This book can be discussed in many different ways. Whatever feels productive and enlightening for you and/or your

More information

Lee's Martial Arts. The Five Principles. Principle #1: Preventive Defense. Principle #2: Awareness

Lee's Martial Arts. The Five Principles. Principle #1: Preventive Defense. Principle #2: Awareness The Five Principles Principle #1: Preventive Defense Preventive Defense is to always respect. Do not offend anyone verbally or physically to cause a confrontation. Respect Rule 1: Watch what you think,

More information

Intelligent Autonomous Agents. Ralf Möller, Rainer Marrone Hamburg University of Technology

Intelligent Autonomous Agents. Ralf Möller, Rainer Marrone Hamburg University of Technology Intelligent Autonomous Agents Ralf Möller, Rainer Marrone Hamburg University of Technology Lab class Tutor: Rainer Marrone Time: Monday 12:15-13:00 Locaton: SBS93 A0.13.1/2 w Starting in Week 3 Literature

More information

There are two types of presuppositions that are significant in NLP: linguistic presuppositions and epistemological presuppositions.

There are two types of presuppositions that are significant in NLP: linguistic presuppositions and epistemological presuppositions. Presuppositions by Robert Dilts. Presuppositions relate to unconscious beliefs or assumptions embedded in the structure of an utterance, action or another belief; and are required for the utterance, action

More information

Intelligent Agents. Philipp Koehn. 16 February 2017

Intelligent Agents. Philipp Koehn. 16 February 2017 Intelligent Agents Philipp Koehn 16 February 2017 Agents and Environments 1 Agents include humans, robots, softbots, thermostats, etc. The agent function maps from percept histories to actions: f : P A

More information

All Emotions Matter: for the Secondary Classroom

All Emotions Matter: for the Secondary Classroom All Emotions Matter: for the Secondary Classroom Mental Health Association in New York State, Inc. 1 The goal of this lesson is to: Validate feelings and emotions. Teach students to manage their response

More information

Subliminal Programming

Subliminal Programming Subliminal Programming Directions for Use Common Questions Background Information Session Overview These sessions are a highly advanced blend of several mind development technologies. Your mind will be

More information

Run Time Tester Requirements Document

Run Time Tester Requirements Document Run Time Tester Requirements Document P. Sherwood 7 March 2004 Version: 0.4 Status: Draft After review 2 March 2004 Contents 1 Introduction 2 1.1 Scope of the Requirements Document.....................

More information

Your Safety System - a User s Guide.

Your Safety System - a User s Guide. 1 Your Safety System - a User s Guide. Human beings are designed for safety SO: You have 2 settings: 1. An ordinary everyday setting And 2. An emergency threat setting. This gets the body ready for immediate

More information

Optimal Health Questionnaire

Optimal Health Questionnaire Optimal Health Questionnaire This questionnaire is intended to help you assess how well you are balancing the various elements in your life. The basis of the process is that we have 5 dimensions which

More information

Topological Considerations of Memory Structure

Topological Considerations of Memory Structure Procedia Computer Science Volume 41, 2014, Pages 45 50 This space is reserved for the Procedia header, do not use it BICA 2014. 5th Annual International Conference on Biologically Inspired Cognitive Architectures

More information

Artificial Intelligence. Intelligent Agents

Artificial Intelligence. Intelligent Agents Artificial Intelligence Intelligent Agents Agent Agent is anything that perceives its environment through sensors and acts upon that environment through effectors. Another definition later (Minsky) Humans

More information

Decode Your Cravings - Workbook Conscious Eating

Decode Your Cravings - Workbook Conscious Eating - Workbook Conscious Eating What is Conscious Eating? Conscious eating is an eating practice that helps you reconnect with food and be in tune with your body and mind. When used in conjunction with other

More information

Web-Mining Agents Cooperating Agents for Information Retrieval

Web-Mining Agents Cooperating Agents for Information Retrieval Web-Mining Agents Cooperating Agents for Information Retrieval Prof. Dr. Ralf Möller Universität zu Lübeck Institut für Informationssysteme Karsten Martiny (Übungen) Literature Chapters 2, 6, 13, 15-17

More information

Handouts for Training on the Neurobiology of Trauma

Handouts for Training on the Neurobiology of Trauma Handouts for Training on the Neurobiology of Trauma Jim Hopper, Ph.D. April 2016 Handout 1: How to Use the Neurobiology of Trauma Responses and Resources Note: In order to effectively use these answers,

More information

Situation Reaction Detection Using Eye Gaze And Pulse Analysis

Situation Reaction Detection Using Eye Gaze And Pulse Analysis Situation Reaction Detection Using Eye Gaze And Pulse Analysis 1 M. Indumathy, 2 Dipankar Dey, 2 S Sambath Kumar, 2 A P Pranav 1 Assistant Professor, 2 UG Scholars Dept. Of Computer science and Engineering

More information

Intelligent Agents. CmpE 540 Principles of Artificial Intelligence

Intelligent Agents. CmpE 540 Principles of Artificial Intelligence CmpE 540 Principles of Artificial Intelligence Intelligent Agents Pınar Yolum pinar.yolum@boun.edu.tr Department of Computer Engineering Boğaziçi University 1 Chapter 2 (Based mostly on the course slides

More information

Perception and Anger Management A Series of Lessons Developed by Sandy Magnuson

Perception and Anger Management A Series of Lessons Developed by Sandy Magnuson Sandy Magnuson Anger Management 1 Perception and Anger Management A Series of Lessons Developed by Sandy Magnuson AGE GROUP: With appropriate modification, these lessons can be used with students in elementary

More information

Agent-Based Systems. Agent-Based Systems. Michael Rovatsos. Lecture 5 Reactive and Hybrid Agent Architectures 1 / 19

Agent-Based Systems. Agent-Based Systems. Michael Rovatsos. Lecture 5 Reactive and Hybrid Agent Architectures 1 / 19 Agent-Based Systems Michael Rovatsos mrovatso@inf.ed.ac.uk Lecture 5 Reactive and Hybrid Agent Architectures 1 / 19 Where are we? Last time... Practical reasoning agents The BDI architecture Intentions

More information

ENVIRONMENTAL REINFORCEMENT LEARNING: A Real-time Learning Architecture for Primitive Behavior Refinement

ENVIRONMENTAL REINFORCEMENT LEARNING: A Real-time Learning Architecture for Primitive Behavior Refinement ENVIRONMENTAL REINFORCEMENT LEARNING: A Real-time Learning Architecture for Primitive Behavior Refinement TaeHoon Anthony Choi, Eunbin Augustine Yim, and Keith L. Doty Machine Intelligence Laboratory Department

More information

Complete a large project that embodies the major course topics Project should be simple but expandable The project should include:

Complete a large project that embodies the major course topics Project should be simple but expandable The project should include: CSE 466: Course Project Complete a large project that embodies the major course topics Project should be simple but expandable The project should include: Multiple device communication Deal with constrained

More information

Putting Minsky and Brooks Together. Bob Hearn MIT AI Lab

Putting Minsky and Brooks Together. Bob Hearn MIT AI Lab Putting Minsky and Brooks Together Bob Hearn MIT AI Lab Perception: Irreconcilable Approaches? Minsky Brooks GOFAI vs. Nouvelle AI search vs. behaviors cognition vs. perception / action abstract symbols

More information

Your Safety System - a User s Guide.

Your Safety System - a User s Guide. THE WOODHAVEN ANXIETY/STRESS MANAGEMENT PROGRAMME. Your Safety System - a User s Guide. Isabel Clarke and Becky Mallery. Woodhaven Psychological Therapies Service. 1 Your Safety System - a User s Guide.

More information

IMAGINE APP COMPATIBLE

IMAGINE APP COMPATIBLE IMAGINE APP COMPATIBLE Imagine is a groundbreaking ipad app that turns your ipad into a powerful fitness equipment console. Download imagine from the App Store and then connect your ipad* to compatible

More information

University Staff Counselling Service

University Staff Counselling Service University Staff Counselling Service Anxiety and Panic What is anxiety? Anxiety is a normal emotional and physiological response to feeling threatened, ranging from mild uneasiness and worry to severe

More information

CS343: Artificial Intelligence

CS343: Artificial Intelligence CS343: Artificial Intelligence Introduction: Part 2 Prof. Scott Niekum University of Texas at Austin [Based on slides created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All materials

More information

Human Information Processing and Cultural Diversity. Jaana Holvikivi, DSc. School of ICT

Human Information Processing and Cultural Diversity. Jaana Holvikivi, DSc. School of ICT Human Information Processing and Cultural Diversity Jaana Holvikivi, DSc. School of ICT Outline Introduction Understanding the human mind Cognitive capacity Cultural schemas Jaana Holvikivi 2 The human

More information

Interviewer: Tell us about the workshops you taught on Self-Determination.

Interviewer: Tell us about the workshops you taught on Self-Determination. INTERVIEW WITH JAMIE POPE This is an edited translation of an interview by Jelica Nuccio on August 26, 2011. Jelica began by explaining the project (a curriculum for SSPs, and for Deaf-Blind people regarding

More information

Building Emotional Self-Awareness

Building Emotional Self-Awareness Building Emotional Self-Awareness Definition Notes Emotional Self-Awareness is the ability to recognize and accurately label your own feelings. Emotions express themselves through three channels physically,

More information

(SAT). d) inhibiting automatized responses.

(SAT). d) inhibiting automatized responses. Which of the following findings does NOT support the existence of task-specific mental resources? 1. a) It is more difficult to combine two verbal tasks than one verbal task and one spatial task. 2. b)

More information

Emotional Quotient. Megan Nice. Owner Sample Co Your Address Here Your Phone Number Here Your Address Here

Emotional Quotient. Megan Nice. Owner Sample Co Your Address Here Your Phone Number Here Your  Address Here Emotional Quotient Owner Sample Co. 5-22-2013 Introduction The Emotional Quotient report looks at a person's emotional intelligence, which is the ability to sense, understand and effectively apply the

More information

What to Do When a Loved One Is Severely Depressed

What to Do When a Loved One Is Severely Depressed What to Do When a Loved One Is Severely Depressed There are no easy answers for helping someone struggling with depression, especially if you ve already tried and tried. Here are some tips from experts.

More information

Emotional Intelligence and NLP for better project people Lysa

Emotional Intelligence and NLP for better project people Lysa Emotional Intelligence and NLP for better project people Lysa Morrison @lysam8 Copyright 2015 Lysa Morrison Reasons projects fail Three of the most common causes of project failure according to the National

More information

REGAINING CALM. You will need: An honest look at your behaviours. This workbook A Pen.

REGAINING CALM. You will need: An honest look at your behaviours. This workbook A Pen. This Inspiration Pack explores stress factors in your current situation, and how you feel about them. You ll work towards uncovering what concerns and anxieties lie beneath your thoughts, and how to regain

More information

Recording Transcript Wendy Down Shift #9 Practice Time August 2018

Recording Transcript Wendy Down Shift #9 Practice Time August 2018 Recording Transcript Wendy Down Shift #9 Practice Time August 2018 Hi there. This is Wendy Down and this recording is Shift #9 in our 6 month coaching program. [Excuse that I referred to this in the recording

More information

THE MENTAL PREP PLAYBOOK BEING MENTALLY PREPARED TO PLAY YOUR BEST GAME

THE MENTAL PREP PLAYBOOK BEING MENTALLY PREPARED TO PLAY YOUR BEST GAME THE MENTAL PREP PLAYBOOK BEING MENTALLY PREPARED TO PLAY YOUR BEST GAME STEP 1: CREATE A COMPELLING STORY Every athlete has a story about his sports life. For some athletes, it s a story about numerous

More information

BOLT: Bulls, Owls, Lambs and Tigers -

BOLT: Bulls, Owls, Lambs and Tigers - BOLT: Bulls, Owls, Lambs and Tigers - Looking Through Your Communication Lens A presentation by: Dr. Debbie Phillips, CPM Areas of Exploration Mental Framing & The Power of Intention BOLT Communication

More information

My experiences with Haskell as a person with Asperger s Syndrome

My experiences with Haskell as a person with Asperger s Syndrome My experiences with Haskell as a person with Asperger s Syndrome p. 1/2 My experiences with Haskell as a person with Asperger s Syndrome Ow much askell would an aspie acker ack, if an aspie acker could

More information

Breaking Free of the Restless Mind. By Paul Bauer. Breaking Free Of The Restless Mind - By Paul Bauer

Breaking Free of the Restless Mind. By Paul Bauer.  Breaking Free Of The Restless Mind - By Paul Bauer Breaking Free of the Restless Mind By Paul Bauer www.dreamsalive.com Breaking Free Of The Restless Mind - By Paul Bauer www.dreamsalive.com 1 Did you ever have a challenge that was so hard to solve that

More information

Neurobiology of Sexual Assault Trauma: Supportive Conversations with Victims

Neurobiology of Sexual Assault Trauma: Supportive Conversations with Victims Neurobiology of Sexual Assault Trauma: Supportive Conversations with Victims Jim Hopper, Ph.D. November 2017 Handout 1: Using Neurobiology of Trauma Concepts to Validate, Reassure, and Support Note: In

More information

CS 771 Artificial Intelligence. Intelligent Agents

CS 771 Artificial Intelligence. Intelligent Agents CS 771 Artificial Intelligence Intelligent Agents What is AI? Views of AI fall into four categories 1. Thinking humanly 2. Acting humanly 3. Thinking rationally 4. Acting rationally Acting/Thinking Humanly/Rationally

More information

Unmanned autonomous vehicles in air land and sea

Unmanned autonomous vehicles in air land and sea based on Gianni A. Di Caro lecture on ROBOT CONTROL RCHITECTURES SINGLE AND MULTI-ROBOT SYSTEMS: A CASE STUDY IN SWARM ROBOTICS Unmanned autonomous vehicles in air land and sea Robots and Unmanned Vehicles

More information

An INSIDE OUT Family Discussion Guide. Introduction.

An INSIDE OUT Family Discussion Guide. Introduction. An INSIDE OUT Family Discussion Guide Introduction A Biblically- based tool to help your kids talk about their feelings using the popular Pixar movie. God made every person with the unique ability to feel

More information

A brief comparison between the Subsumption Architecture and Motor Schema Theory in light of Autonomous Exploration by Behavior

A brief comparison between the Subsumption Architecture and Motor Schema Theory in light of Autonomous Exploration by Behavior A brief comparison between the Subsumption Architecture and Motor Schema Theory in light of Autonomous Exploration by Behavior Based Robots Dip N. Ray 1*, S. Mukhopadhyay 2, and S. Majumder 1 1 Surface

More information

Web-Mining Agents Cooperating Agents for Information Retrieval

Web-Mining Agents Cooperating Agents for Information Retrieval Web-Mining Agents Cooperating Agents for Information Retrieval Prof. Dr. Ralf Möller Universität zu Lübeck Institut für Informationssysteme Tanya Braun (Übungen) Organizational Issues: Assignments Start:

More information

The Panic Attack: syndrome and symbol (A Psychosynthesis approach)

The Panic Attack: syndrome and symbol (A Psychosynthesis approach) The 2 nd International Conference on Psychophysiology of Panic Attacks 'Diversity of Theories & Treatments - How Far Have We Come?' London, UK, 1-4 October 2004 Organized by PsyEdu.com, University of Westminster

More information

Managing Anger. More Practice With Bugs and I STOP'D 3 Cs F. Preparation. Vocabulary adrenaline

Managing Anger. More Practice With Bugs and I STOP'D 3 Cs F. Preparation. Vocabulary adrenaline Managing Anger More Practice With Bugs and I STOP'D 3 Cs F I care about myself. F I care about my community. Help students to understand and invite them to state clearly: I have the right to care about

More information

myphonak app User Guide

myphonak app User Guide myphonak app User Guide Getting started myphonak is an app developed by Sonova, the world leader in hearing solutions based in Zurich, Switzerland. Read the user instructions thoroughly in order to benefit

More information

Information Design. Information Design

Information Design. Information Design Information Design Goal: identify methods for representing and arranging the objects and actions possible in a system in a way that facilitates perception and understanding Information Design Define and

More information

Consider the following aspects of human intelligence: consciousness, memory, abstract reasoning

Consider the following aspects of human intelligence: consciousness, memory, abstract reasoning All life is nucleic acid. The rest is commentary. Isaac Asimov Consider the following aspects of human intelligence: consciousness, memory, abstract reasoning and emotion. Discuss the relative difficulty

More information

COMP329 Robotics and Autonomous Systems Lecture 15: Agents and Intentions. Dr Terry R. Payne Department of Computer Science

COMP329 Robotics and Autonomous Systems Lecture 15: Agents and Intentions. Dr Terry R. Payne Department of Computer Science COMP329 Robotics and Autonomous Systems Lecture 15: Agents and Intentions Dr Terry R. Payne Department of Computer Science General control architecture Localisation Environment Model Local Map Position

More information

The Power of Feedback

The Power of Feedback The Power of Feedback 35 Principles for Turning Feedback from Others into Personal and Professional Change By Joseph R. Folkman The Big Idea The process of review and feedback is common in most organizations.

More information

AGENT-BASED SYSTEMS. What is an agent? ROBOTICS AND AUTONOMOUS SYSTEMS. Today. that environment in order to meet its delegated objectives.

AGENT-BASED SYSTEMS. What is an agent? ROBOTICS AND AUTONOMOUS SYSTEMS. Today. that environment in order to meet its delegated objectives. ROBOTICS AND AUTONOMOUS SYSTEMS Simon Parsons Department of Computer Science University of Liverpool LECTURE 16 comp329-2013-parsons-lect16 2/44 Today We will start on the second part of the course Autonomous

More information

Sensory Awareness Presentation Haden Boliek & Rachel Beaver Event Review / Education The Working Therapist Podcast

Sensory Awareness Presentation Haden Boliek & Rachel Beaver Event Review / Education The Working Therapist Podcast Sensory Awareness Presentation Haden Boliek & Rachel Beaver Event Review / Education The Working Therapist Podcast I. Intro a. Welcome i. Haden introduces herself 1. Welcome to The Working Therapist podcast,

More information

(c) KSIS Politechnika Poznanska

(c) KSIS Politechnika Poznanska Fundamentals of Autonomous Systems Control architectures in robotics Dariusz Pazderski 1 1 Katedra Sterowania i In»ynierii Systemów, Politechnika Pozna«ska 9th March 2016 Introduction Robotic paradigms

More information

Test-Driven Development

Test-Driven Development Test-Driven Development Course of Software Engineering II A.A. 2009/2010 Valerio Maggio, Ph.D. Student Prof. Sergio Di Martino Contents at Glance What is TDD? TDD and XP TDD Mantra TDD Principles and Patterns

More information

RISK COMMUNICATION FLASH CARDS. Quiz your knowledge and learn the basics.

RISK COMMUNICATION FLASH CARDS. Quiz your knowledge and learn the basics. RISK COMMUNICATION FLASH CARDS Quiz your knowledge and learn the basics http://www.nmcphc.med.navy.mil/ TOPICS INCLUDE: Planning Strategically for Risk Communication Communicating with Verbal and Nonverbal

More information

Peer Support Meeting COMMUNICATION STRATEGIES

Peer Support Meeting COMMUNICATION STRATEGIES Peer Support Meeting COMMUNICATION STRATEGIES Communication Think of a situation where you missed out on an opportunity because of lack of communication. What communication skills in particular could have

More information

Users. Perception and Cognition

Users. Perception and Cognition Users Perception and Cognition This lecture relies on Designing with the Mind in Mind by Jeff Johnson, The Humane Interface by Jef Raskin, and other sources. 1 Ergonomics and Human Factors Designing devices

More information

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department Princess Nora University Faculty of Computer & Information Systems 1 ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department (CHAPTER-3) INTELLIGENT AGENTS (Course coordinator) CHAPTER OUTLINE What

More information

A Powerful Way to Understand People An introduction of the DISC concept By Robert A. Rohm, Ph.D. Everyone is not like you!

A Powerful Way to Understand People An introduction of the DISC concept By Robert A. Rohm, Ph.D. Everyone is not like you! A Powerful Way to Understand People An introduction of the DISC concept By Robert A. Rohm, Ph.D. Each Person has a Unique Personality Personality Insights Inc. Each person's perspective is built in to

More information

Complete a large project that embodies the major course topics Project should be simple but expandable The project should include:

Complete a large project that embodies the major course topics Project should be simple but expandable The project should include: CSE 466: Course Project Complete a large project that embodies the major course topics Project should be simple but expandable The project should include: Multiple device communication Deal with constrained

More information

Dosimeter Setting Device

Dosimeter Setting Device Instruction Manual Dosimeter Setting Device For Electronic Personal Dosimeter Dose-i (Unit:Sv, Version:1.05 English) WTA529748 a 1 / 38 Foreword Thank you for purchasing the Dosimeter Setting Device; a

More information

Robotics Summary. Made by: Iskaj Janssen

Robotics Summary. Made by: Iskaj Janssen Robotics Summary Made by: Iskaj Janssen Multiagent system: System composed of multiple agents. Five global computing trends: 1. Ubiquity (computers and intelligence are everywhere) 2. Interconnection (networked

More information

Appreciating Diversity through Winning Colors. Key Words. comfort zone natural preference

Appreciating Diversity through Winning Colors. Key Words. comfort zone natural preference Lesson 2 Appreciating Diversity through Winning Colors Chapter 1 Key Words comfort zone natural preference What You Will Learn to Do Apply an appreciation of diversity to interpersonal situations Linked

More information

Information on ADHD for Children, Question and Answer - long version

Information on ADHD for Children, Question and Answer - long version Information on ADHD for Children, Question and Answer - long version What is Attention Deficit Hyperactivity Disorder or ADHD? People with ADHD have brains that may function a little differently in some

More information

Changing your Mind about Pain

Changing your Mind about Pain Pain in the brain Changing your Mind about Pain by Betsan Corkhill Almost everyone has, and will, experience pain at some point, so it s important to know a little bit about why this happens and what we

More information

THE ODAPTER. the 3D printed orgasm adapter that turns your electric toothbrush into a powerful vibrator

THE ODAPTER. the 3D printed orgasm adapter that turns your electric toothbrush into a powerful vibrator WWW.OHACKERS.COM THE ODAPTER the 3D printed orgasm adapter that turns your electric toothbrush into a powerful vibrator W H Y D O I U S E A N E L E C T R I C T O O T H B R U S H A S A V I B R A T O R?

More information

Upon starting the executable, a map with four exits at its corners is loaded.

Upon starting the executable, a map with four exits at its corners is loaded. Pedestrian Simulation Software Version 0.0, Model and Documentation Peter Stephenson August 2007 Simulation Instructions Upon starting the executable, a map with four exits at its corners is loaded. People

More information

Stress levels in people today are higher than ever. Our world is much faster paced than

Stress levels in people today are higher than ever. Our world is much faster paced than Jolie Frye Intrapersonal Communication Meditation and Self Talk: Dealing with Stress Stress levels in people today are higher than ever. Our world is much faster paced than ever before. People pile on

More information

You Can Treat OCD. Treatment of OCD. ReidWilson, PhD. NoiseInYourHead.com 1. Objectives. BriefTherapy Conference December 9, 2018.

You Can Treat OCD. Treatment of OCD. ReidWilson, PhD. NoiseInYourHead.com 1. Objectives. BriefTherapy Conference December 9, 2018. BriefTherapy Conference December 9, 2018 You Can Treat OCD ReidWilson, PhD Chapel Hill, NC, USA drwilson@anxieties.com www.anxieties.com NoiseInYourHead.com 1 Objectives 1. Defend the importance of altering

More information

Affective Action Selection and Behavior Arbitration for Autonomous Robots

Affective Action Selection and Behavior Arbitration for Autonomous Robots Affective Action Selection and Behavior Arbitration for Autonomous Robots Matthias Scheutz Department of Computer Science and Engineering University of Notre Dame Notre Dame, IN 46556, USA mscheutz@cse.nd.edu

More information

MIND POWER TRAINING ACTION GUIDE: VIDEO FOUR WITH COLIN HILES

MIND POWER TRAINING ACTION GUIDE: VIDEO FOUR WITH COLIN HILES MIND POWER TRAINING ACTION GUIDE: VIDEO FOUR WITH COLIN HILES HOW TO CRUSH SELF-DOUBT AND REPLACE IT WITH SELF- CONFIDENCE ACCORDING TO RESEARCHERS, THE AVERAGE HUMAN CONCEIVES ABOUT 60,000 THOUGHTS DAILY.

More information

PATIENT AND FAMILY SATISFACTION. Dr. James Stallcup, M.D.

PATIENT AND FAMILY SATISFACTION. Dr. James Stallcup, M.D. PATIENT AND FAMILY SATISFACTION Dr. James Stallcup, M.D. PREMISE In medicine we tend to focus on the clinical care delivered, not the patient s perception of the care delivered. In a trauma this is acceptable

More information

Unit 3: EXPLORING YOUR LIMITING BELIEFS

Unit 3: EXPLORING YOUR LIMITING BELIEFS Unit 3: EXPLORING YOUR LIMITING BELIEFS Beliefs and Emotions Bring to mind a negative belief you hold about money. Perhaps it is I don t believe I can win with money or Money is hard to come by. While

More information

The Wellbeing Course. Resource: Mental Skills. The Wellbeing Course was written by Professor Nick Titov and Dr Blake Dear

The Wellbeing Course. Resource: Mental Skills. The Wellbeing Course was written by Professor Nick Titov and Dr Blake Dear The Wellbeing Course Resource: Mental Skills The Wellbeing Course was written by Professor Nick Titov and Dr Blake Dear About Mental Skills This resource introduces three mental skills which people find

More information

A Control-Based Architecture for Animal Behavior

A Control-Based Architecture for Animal Behavior 44 A Control-Based Architecture for Animal Behavior Michael Ramsey 44.1 Introduction 44.2 A Control System 44.3 Perceptual Control Systems Negative Feedback 44.4 Hierarchy of Control Systems 44.5 Control

More information

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 2: Intelligent Agents

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 2: Intelligent Agents Introduction to Artificial Intelligence 2 nd semester 2016/2017 Chapter 2: Intelligent Agents Mohamed B. Abubaker Palestine Technical College Deir El-Balah 1 Agents and Environments An agent is anything

More information

Emotional Intelligence

Emotional Intelligence Being At Your Best Emotional Intelligence Your EQ is a higher prediction of your success than your IQ! Brought to you by: Introduction Emotional Intelligence (EQ) touches every part of your life. Don t

More information

Navigator: 2 Degree of Freedom Robotics Hand Rehabilitation Device

Navigator: 2 Degree of Freedom Robotics Hand Rehabilitation Device Navigator: 2 Degree of Freedom Robotics Hand Rehabilitation Device Design Team Ray Adler, Katherine Bausemer, Joseph Gonsalves, Patrick Murphy, Kevin Thompson Design Advisors Prof. Constantinos Mavroidis,

More information

Vorlesung Grundlagen der Künstlichen Intelligenz

Vorlesung Grundlagen der Künstlichen Intelligenz Vorlesung Grundlagen der Künstlichen Intelligenz Reinhard Lafrenz / Prof. A. Knoll Robotics and Embedded Systems Department of Informatics I6 Technische Universität München www6.in.tum.de lafrenz@in.tum.de

More information