Embedded Poster

Information about Embedded Poster

Published on January 7, 2008

Author: Chyou

Source: authorstream.com

Content

Slide1:  A FRAMEWORK for EMBODIED AGENTS A FRAMEWORK for EMBODIED AGENTS TICK AGENT using System; using System.Xml; using BrainMap; namespace AgentTest { public class Beat : AgentMessage { public long tick = DateTime.Now.Ticks; } [OutputMessage(typeof(Beat)), Friend(NetworkAgent.Wifi.AgentName)] public class FuffaAgent : AgentBase { public const string AgentName = "FuffaAgent"; public FuffaAgent() : base(AgentName) {} protected override void Run() { while (true) { SendState(new Beat()); System.Threading.Thread.Sleep(1000); }} static void Main(string[] args) { AgentBroker.Start(); }}} NET SCAN public class BK1Body : BodyMap { private netTest form; private int central, left, right; private double lastx, lasty; public BK1Body(netTest t) { form = t; central = left = right = 0; } private void SetSpeed() { XmlDocument d = null; XmlNode n = null; int lsp = (int)Math.Floor((1 - Math.Max(central, Math.Max(left, right)/4) / 100.0) * 30); int asp = (int)Math.Floor((Math.Max(central, Math.Max(left, right)) / 100.0) * 30); form.lspeed.PowerLevel = lsp; form.aspeed.PowerLevel = asp; d = (XmlDocument)AgentsW["MoveAgent"]; n = d.SelectSingleNode("/*/InputMessages/anyType[@*='SetSpeed']").CloneNode(true); n.SelectSingleNode("/speedr").InnerText = asp.ToString(); n.SelectSingleNode("/speedd").InnerText = lsp.ToString(); SendState(n); } protected override void OnSignal(System.Xml.XmlDocument doc) { if (!AgentsW.ContainsKey("MoveAgent")) // Wait for the interface return; XmlDocument d = null; XmlNode n = null; if (doc.SelectSingleNode("/NetworkInfo") != null) { XmlNode r = doc.CreateNode(XmlNodeType.Element, "Position", null); XmlNode v = doc.CreateNode(XmlNodeType.Element, "X", null); v.InnerText = lastx.ToString(); r.AppendChild(v); v = doc.CreateNode(XmlNodeType.Element, "Y", null); v.InnerText = lasty.ToString(); r.AppendChild(v); doc.ChildNodes[1].AppendChild(r); } else if (doc.SelectSingleNode("/Sensor") != null) { central = (int)double.Parse(doc.SelectSingleNode("/*/Sensor2").InnerText); left = (int)double.Parse(doc.SelectSingleNode("/*/Sensor3").InnerText); right = (int)double.Parse(doc.SelectSingleNode("/*/Sensor1").InnerText); form.center.PowerLevel = central; form.left.PowerLevel = left; form.right.PowerLevel = right; } else if (doc.SelectSingleNode("/MotorState") != null && double.Parse(doc.SelectSingleNode("/MotorState/angularspeed").InnerText) == 0) { lastx = double.Parse(doc.SelectSingleNode("/MotorState/pos/x").InnerText); lasty = double.Parse(doc.SelectSingleNode("/MotorState/pos/y").InnerText); if (central > 60) { d = (XmlDocument)AgentsW["MoveAgent"]; n = d.SelectSingleNode("/*/InputMessages/anyType[@*='Move']").CloneNode(true); n.SelectSingleNode("/amount").InnerText = ((left > right) ? -120.0 : 120.0).ToString(); n.SelectSingleNode("/rotate").InnerText = "true"; SendState(n); } else if(Math.Max(left, right) > 60 && Math.Abs(left-right)>30) { int delta = left-right; d = (XmlDocument)AgentsW["MoveAgent"]; n = d.SelectSingleNode("/*/InputMessages/anyType[@*='Move']").CloneNode(true); n.SelectSingleNode("/amount").InnerText = (delta/5.0).ToString(); n.SelectSingleNode("/rotate").InnerText = "true"; SendState(n); } else if (double.Parse(doc.SelectSingleNode("/MotorState/angularspeed").InnerText) < 1 && double.Parse(doc.SelectSingleNode("/MotorState/linearspeed").InnerText) == 0) { SetSpeed(); d = (XmlDocument)AgentsW["MoveAgent"]; n = d.SelectSingleNode("/*/InputMessages/anyType[@*='Move']").CloneNode(true); n.SelectSingleNode("/amount").InnerText = "10000"; n.SelectSingleNode("/rotate").InnerText = "false"; SendState(n); }}}}} ...Embodiment is linked to a concept of a body and is not necessary given when running a control program on a robot hardware... ...Embodiment should always be seen as a characteristic of an individual and socially embedded cognitive system... Body is first class in Human Architecture Embodiment mimics the human morphology by introducing the notion of Body as an object of the system. The body plays the role of defining a boundary between INSIDE and OUTSIDE. Moreover it abstracts the complexity and the large amount of data acquired by the five senses. Body, Emotions, and Reasoning Neurophysiologists believe that emotions play a significant role in the human reasoning. As remarkably discussed in “Descartes’ Error”, emotions and the sense of self is based on the continuous projection of the body’s state on the sensorial cortex. The body is a lens of the mind over the world and it seems worth representing as a well defined entity in robotics software Why R2D2? R2D2 is a project combining several interests in a single “research platform”. The main interest is in writing the software controlling a robot that shares the “human-space”: being human sized people perceives it as an entity sharing the same metric space, making easier the interaction. It is also an example of a PC with wheels: what is the computer starts to follow us? Representing the body of a simple robot is difficult: the structure isn’t complex enough to be meaningful in the definition of a software architecture representing the body. The Mind, The Body and The Environment To the mind the body is the environment, and the mind has full knowledge about it. We developed a software architecture (and framework) with the same structure. The framework has been implemented in .NET, and has been design to be independent from the particular robot. The framework provides support to build a software representation of the body of a robot. The state of the body is mapped on a particular structure called the Body Map. All the modules (hardware and software) forming the body write their state on this map and read from it the actions they understand. The Body Map is an XML tree containing symbolic information. We use customizable reflection and serialization to automatically provide the communication infrastructure. The Software We developed several agents to support different architectures. We have a set of agents to control ER1 kit from Evolution Robotics (and R2D2 of course). There are agents responsible to control the state of: Network (WiFi), Camera, Audio, Battery state, and System counters. All the software is written in .NET (with some PInvoke). We are currently using [a]C#, an extention to C# that allow to use custom attributes inside the Method bodies. The People Several people have made R2D2 possible: Medialab Laboratory at CS Department Univ. of Pisa (http://medialab.di.unipi.it) Dream Team Antonio Cisternino Diego Colombo Giorgio Ennas Daniele Picciaia Robot Mechanics Prof. Marco Carcassi Ing. Gennaro Cerchiara Michele Rosellini Alessio Capperi Mario Gerardi Robot Skin Alberto Arzilli Luca Mariotti Support Letizia Petrellese Roberto Ricci Robotics4.NET The software developed within this project will be soon available on-line! http://www.robotics4.net/ We propose to use our infrastructure as a framework for developing software to control Robots using .NET. Together with the basic infrastructure we will release several agents, including those we use to control the ER1 robot. The Experiment We used our framework to program ER1 to map the signal strength of the Wireless Networks at our department. The robot autonomously explored the Department building recording all the signals received from the WiFi NIC (through the WiFi agent). Now we are working to use these signals as a mean to find robot’s position.

Related presentations


Other presentations created by Chyou

4 ISPS and SMDG
06. 11. 2007
0 views

4 ISPS and SMDG

EAIEWorkshop
27. 03. 2008
0 views

EAIEWorkshop

Tutorial kari
14. 03. 2008
0 views

Tutorial kari

ne319 tsp
05. 03. 2008
0 views

ne319 tsp

L17 projection
27. 02. 2008
0 views

L17 projection

carers
24. 02. 2008
0 views

carers

dm konf 041209Gruenwald
20. 02. 2008
0 views

dm konf 041209Gruenwald

BioresE
07. 01. 2008
0 views

BioresE

vrst07 cfp
03. 10. 2007
0 views

vrst07 cfp

supply
04. 10. 2007
0 views

supply

tilapia
24. 10. 2007
0 views

tilapia

pest5
28. 11. 2007
0 views

pest5

Introduction to Lex
30. 11. 2007
0 views

Introduction to Lex

Mendelian Genetics
11. 12. 2007
0 views

Mendelian Genetics

Pandemic Influenza Summit Ware
25. 10. 2007
0 views

Pandemic Influenza Summit Ware

health
25. 10. 2007
0 views

health

Lesson 20
30. 10. 2007
0 views

Lesson 20

COMMEDIA DELLARTE
01. 11. 2007
0 views

COMMEDIA DELLARTE

fulsyst2
06. 11. 2007
0 views

fulsyst2

010727 1 BAE
06. 11. 2007
0 views

010727 1 BAE

Logistics Presentation
12. 11. 2007
0 views

Logistics Presentation

ebMS Autotech07 demoslides
14. 11. 2007
0 views

ebMS Autotech07 demoslides

MEDIA BETWEEN LOVE AND HATE demo
26. 10. 2007
0 views

MEDIA BETWEEN LOVE AND HATE demo

hotel axe
14. 12. 2007
0 views

hotel axe

investigation preparation
17. 12. 2007
0 views

investigation preparation

logistics exercises 1
05. 11. 2007
0 views

logistics exercises 1

MoneyHandling12
12. 12. 2007
0 views

MoneyHandling12

tirerobot
31. 12. 2007
0 views

tirerobot

Jeffrey BeardPP presentation
27. 12. 2007
0 views

Jeffrey BeardPP presentation

946 a1 pcard reissue
06. 11. 2007
0 views

946 a1 pcard reissue

SLD 10 Setting the World Stage
25. 12. 2007
0 views

SLD 10 Setting the World Stage

Wedding Procesional
18. 12. 2007
0 views

Wedding Procesional

Tan Tarkan
01. 10. 2007
0 views

Tan Tarkan

wkshp
02. 10. 2007
0 views

wkshp

greekhowtoslides
08. 11. 2007
0 views

greekhowtoslides

08 Bridges Becquerel
28. 12. 2007
0 views

08 Bridges Becquerel

FirstYearReport
31. 10. 2007
0 views

FirstYearReport

1 iron steel overview
04. 01. 2008
0 views

1 iron steel overview

StarryM 3
13. 11. 2007
0 views

StarryM 3

assignnov 04thesaurus
05. 12. 2007
0 views

assignnov 04thesaurus

Arun Upasana Hindu
10. 12. 2007
0 views

Arun Upasana Hindu

SWSLURC090804
02. 01. 2008
0 views

SWSLURC090804

ww1 me
26. 10. 2007
0 views

ww1 me

How Onsite Systems Work
30. 10. 2007
0 views

How Onsite Systems Work

carrus
01. 11. 2007
0 views

carrus

APDIP ChiangRai Presentation
29. 11. 2007
0 views

APDIP ChiangRai Presentation

APOR Accept Flag Do Dont
05. 11. 2007
0 views

APOR Accept Flag Do Dont

efum 050928 lagoze
27. 09. 2007
0 views

efum 050928 lagoze

1391
29. 10. 2007
0 views

1391

Hurley GRB LAT05
30. 10. 2007
0 views

Hurley GRB LAT05

glast2003
31. 10. 2007
0 views

glast2003

Employment Law Bill Duda
22. 11. 2007
0 views

Employment Law Bill Duda

Metzger
20. 11. 2007
0 views

Metzger

STun
06. 11. 2007
0 views

STun

Vag
03. 10. 2007
0 views

Vag

Asakawa Taiwan2006
14. 11. 2007
0 views

Asakawa Taiwan2006

underground parties in hungary
13. 12. 2007
0 views

underground parties in hungary

36719161
01. 12. 2007
0 views

36719161