orca-robotics INTRODUCTION Overview Download and Install Quick Start Documentation Publications REPOSITORY Interfaces Components Libraries Utilities Software Map DEVELOPER Tutorials Examples Dev Guide Dashboard Wiki login/pass: orca/orca PEOPLE Contributors Users Project Download Mailing lists
|
Driving a robot simulated with Player/Stage
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/tuteteleop $ cp [ORCA-INSTALL]/share/orca/cfg/robot2d.cfg . $ cp [ORCA-INSTALL]/share/orca/cfg/teleop.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 Robot componentWe're now going to set up the low level control to the actuators for the simulated robot using the Robot2d component. Therobot2d.cfg file is already configured the way we want it here, so simply run the component:
$ robot2d Teleoperation using keyboardTo tell the robot to move we can use the Teleop component which allows us to send commands to the Robot2d component via keyboard (a joystick driver is also available, see component documentation).$ teleop Keyboard command options are printed to the screen. Give the robot a motion command by typing in this terminal and watch it move in the Stage GUI. You'll see a simple feedback in this terminal:
What else?Take a look at the configuration files to understand how this system was setup.
Check out more Orca Tutorials. |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)