INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
Closed-loop control of a robot simulated with Player/Stage
In this tutorial we will connect a simple controller to a robot simulated using 2-D Player/Stage simulator. The system diagram is shown below (IceGrid Registry and IceStorm are not shown). In this tutorial we will use components which have external dependencies.
Starting OrcaStart IceGrid Registry and IceStorm server as described in the Quick-Start Guide. Create a new system directory and copy Orca sample files. $ mkdir -p ~/sys/tuteteleop; cd ~/sys/tutereactive $ cp [ORCA-INSTALL]/share/orca/cfg/robot2d.cfg . $ cp [ORCA-INSTALL]/share/orca/cfg/laser2d.cfg . $ cp [ORCA-INSTALL]/share/orca/cfg/reactivewalker.cfg . Starting Player/StageCopy Stage sample files. $ cp -r [STAGE-SRC]/worlds . Start up the Stage simulator with the simple world. $ player worlds/simple.cfg Components
Follow the instructions from A bigger system with Player/Stage simulator on how to set and run Robot2d and orca_component_laserscanner2d components.
We'll use an example component ReactiveWalker. The config file which we've already copied over does not need to be modified. Start the controller component and watch the robot run (crawl) around the simulated world. $ reactivewalker What else?Take a look at the source files for ReactiveWalker. Check out more Orca Tutorials. |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)