logo logo
Home arrow Robotics Studio... arrow Robotics Studio Howto arrow ARCOS Serial Port Configuration
Tuesday, 07 October 2008
 
 
English English  Español Español  
Tag Cloud
Architectures Artificial Associations Books Brain Conscious Consciousness Forums Howto Machine Machine Consciousness Machines Microsoft Neuroscience Projects Publications Research Researchers Reviews Robot Robotics Robots Services Studio
ARCOS Serial Port Configuration Print E-mail
Written by Raúl Arrabales Moreno   
Wednesday, 05 September 2007

How to setup the serial port to communicate with an ARCOS robot?

The concrete case I am describing here is a MobileRobots Pioneer 3 DX robot, but I think this applies to any ARCOS based robot.

Interfacing with the Pioneer 3 DX hardware via Microsoft Robotics Studio requires some configuration. For instance, the first problem I faced was to setup the correct serial port. Some P3 DX setups include an embedded computer; however that is not my case. Instead, I am using a regular laptop connected to the serial port of the robot (actually using a USB to RS232 adaptor). This means that the laptop will communicate with the robot through com3, com4 or whatever comX that Windows driver assigns to the USB to RS232 adaptor. For initial testing I was using the Robotics Tutorial 5 included in the Robotics Studio distribution.

In my case, the port was COM4, so how could I tell MSRS to use laptop’s COM4 port to communicate with the robot? I asked that question and this is the answer from Microsoft:

You will want to check the DriverState section and adjust the connection settings...

<ArcosCoreState xmlns: xsd="http://www.w3.org/2001/XMLSchema" xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xw/2005/12/arcoscore.html">
<DriverState>
<ComPort>COM4</ComPort>
<BaudRate>0</BaudRate>
</DriverState>
</ArcosCoreState>

You can create it as follows:
1. Run VPL
2. Drag the "Arcos Core" service on to the pallette
3. In the properties tab, change Configuration to "Set initial configuration"
4. Update the DriverState section with the appropriate config
5. Save the diagram
6. Find the ArcosCore.Config.xml in the directory where you saved the diagram and copy it to [1], making sure to change the name to "ArcosCoreService.xml".
7. Run your service again.

[1] C:\Microsoft Robotics Studio 1.5 (CTP May 2007)\store\ArcosCoreService.xml

Take into account that this applies to Microsot Robotics Studio 1.5 CTP May 2007 (and I have done it with the official 1.5 release as well). I don’t know whether or not this will work for future releases.

The ArcosCoreService.xml file contains more configuration settings that can be altered either using the VPL or editing the XML file directly.

 The following is an example of the ArcosCoreService.xml file:

<?xml version="1.0" encoding="utf-8" ?>

- <ArcosCoreState xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xw/2005/12/arcoscore.html">
- <DriverState>
  <ComPort>COM3</ComPort>
  <BaudRate>0</BaudRate>
  </DriverState>
- <Information>
  <TimeStamp>2007-06-13T19:13:47.7656250+02:00</TimeStamp>
  <Moving>false</Moving>
  <XPos>0</XPos>
  <YPos>0</YPos>
  <ThPos>0</ThPos>
  <LVel>0</LVel>
  <RVel>0</RVel>
  <Battery>0</Battery>
  <StallAndBumpers>LeftWheelStall</StallAndBumpers>
  <Control>0</Control>
  <Flags>MotorsEnabled</Flags>
  <Compass>0</Compass>
  <SONAR />
  <SonarAngles />
  <Grip>0</Grip>
  <AnPort>0</AnPort>
  <Analog>0</Analog>
  <DigIn>0</DigIn>
  <DigOut>0</DigOut>
  <BatteryX10>0</BatteryX10>
  </Information>
- <Config>
  <TimeStamp>2007-06-13T19:13:47.7812500+02:00</TimeStamp>
  <RobotType />
  <SubType />
  <SerialNum />
  <Version />
  <RotVelTop>0</RotVelTop>
  <TransVelTop>0</TransVelTop>
  <RotAccTop>0</RotAccTop>
  <TransAccTop>0</TransAccTop>
  <PwmMax>0</PwmMax>
  <Name />
  <Sip>0</Sip>
  <HostBaud>rate9k6</HostBaud>
  <AuxBaud>rate9k6</AuxBaud>
  <Gripper>0</Gripper>
  <FrontSonar>0</FrontSonar>
  <RearSonar>0</RearSonar>
  <LowBattery>0</LowBattery>
  <RevCount>0</RevCount>
  <WatchDog>0</WatchDog>
  <P2mpacs>0</P2mpacs>
  <StallVal>0</StallVal>
  <StallCount>0</StallCount>
  <JoyVel>0</JoyVel>
  <JoyRVel>0</JoyRVel>
  <RotVelMax>0</RotVelMax>
  <TransVelMax>0</TransVelMax>
  <RotAcc>0</RotAcc>
  <RotDecel>0</RotDecel>
  <RotKP>0</RotKP>
  <RotKV>0</RotKV>
  <RotKI>0</RotKI>
  <TransAcc>0</TransAcc>
  <TransDecel>0</TransDecel>
  <TransKP>0</TransKP>
  <TransKV>0</TransKV>
  <TransKI>0</TransKI>
  <FrontBumps>0</FrontBumps>
  <RearBumps>0</RearBumps>
  <Charger>0</Charger>
  <SonarCycle>0</SonarCycle>
  <AutoBaud>0</AutoBaud>
  <HasGyro>0</HasGyro>
  <DriftFactor>0</DriftFactor>
  <Aux2Baud>rate9k6</Aux2Baud>
  <Aux3Baud>rate9k6</Aux3Baud>
  <TicksMM>0</TicksMM>
  </Config>
- <Encoder>
  <TimeStamp>2007-06-13T19:13:47.7812500+02:00</TimeStamp>
  <Left>0</Left>
  <Right>0</Right>
  </Encoder>
- <Gyro>
  <TimeStamp>2007-06-13T19:13:47.7812500+02:00</TimeStamp>
  <Rate />
  <Temperature />
  </Gyro>
- <IO>
  <TimeStamp>2007-06-13T19:13:47.7812500+02:00</TimeStamp>
  <DigIn>0</DigIn>
  <FrontBump>0</FrontBump>
  <RearBump>0</RearBump>
  <IR>0</IR>
  <DigOut>0</DigOut>
  <AD />
  <Battery>0</Battery>
  </IO>
- <Gripper>
  <TimeStamp>2007-06-13T19:13:47.7812500+02:00</TimeStamp>
  <HasGripper>None</HasGripper>
  <GripState>GripLimit</GripState>
  <GraspTime>0</GraspTime>
  </Gripper>
  </ArcosCoreState>

Related Items:

  1. Microsoft Robotics Studio Pages
  2. Finding papers about consciousness and robotics
  3. Cognitive Robotics
  4. Polymorphic Robotics
  5. Microsoft Robotics Studio October 2006 CTP
  6. Microsoft Robotics Studio November 2006 CTP
  7. Robotics Studio 1.0 Released
  8. RoboCup Simulator for Robotics Studio
  9. Robotics Studio 1.5 May 2007 CTP
  10. Robotics Studio 1.5 Released

Add as favourites (78) | Quote this article on your site | Views: 1880 | E-mail

  Comments (1)
RSS comments
 1 ArcosCoreService.xml file
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it website, on 05-09-2007 15:00
When I upgraded from 1.5 CTP May to the official MSRS 1.5 release I had to copy the ArcosCoreService.xml file from \store to (MSRS root directory).

Only registered users can write comments.
Please login or register.

Powered by AkoComment Tweaked Special Edition v.1.4.4

Last Updated ( Wednesday, 05 September 2007 )
 





Lost Password?
No account yet? Register
Categories
Last Posts in Forum
Last comments
My review of Conscious Machines
Review of the book ‘The Co...
23/09/08 12:32 More...
By Raúl

Re: How do i use this in a simulated rob
Hi, let me answer...
12/08/08 14:46 More...
By Raúl

How do i use this in a simulated robot?
I\'m entirely new ...
10/08/08 16:30 More...
By carlcs

How do i use this in a simulated robot?
I\'m entirely new ...
10/08/08 16:29 More...
By carlcs

Foro de Robotics Studio en Español
Hola sutaro, he copiado...
17/07/08 14:32 More...
By Raúl

fallo de ejecución:Unhandled within caus
Hola a todos, es ...
17/07/08 13:03 More...
By sutaro

Amazed Challenge 2
Good news for those of you who missed t...
03/07/08 11:21 More...
By Raúl

Poster Session Pictures
Some pictures of the poster sessio...
08/04/08 13:17 More...
By Raúl

Final Announcement and Conference Overvi
Final Announcemen...
07/02/08 12:45 More...
By Raúl

Discussion about test for consciousness
More information a...
29/01/08 15:01 More...
By Raúl

 
Top! Top!