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
|
Quick-Start Guide
The system which we will assemble is shown in the diagram below. It consists of two infrastructure applications (IceGrid Registry and IceStorm) and two Orca components (Laser2d and LaserMon).
Starting Up the InfrastructureWe'll be using sample configuration files which are distributed with Orca. As the general rule, you shouldn't work or run programs from the distribution. So we'll create separate directories for each project (or tutorial) and copy config files into it. Will put all of these directories into one place: a new directory we'll callsys in the home directory. $ mkdir ~/sys
$ mkdir -p ~/sys/icereg; cd ~/sys/icereg $ cp [ORCA-SRC]/scripts/ice/icegridregistry.cfg . $ mkdir db $ icegridregistry --Ice.Config=icegridregistry.cfg
This starts
$ mkdir -p ~/sys/icestorm; cd ~/sys/icestorm $ cp [ORCA-SRC]/scripts/ice/icebox_icestorm.cfg . $ mkdir stormdb $ icebox --Ice.Config=icebox_icestorm.cfg Pointing Components at this InfrastructureWhen an Orca component starts up, it needs to know how to find the services above. This information can go into config files for individual components.
Components in this tutorial use # Standard Ice Configuration for Orca Ice.Default.Locator=IceGrid/Locator:default -p 12000 Getting Two Components TalkingNow will connect a fake laser component to a laser monitoring component. First, copy default configuration files for the Laser2d and LaserMon components.$ mkdir -p ~/sys/quickstart; cd ~/sys/quickstart $ cp [ORCA-INSTALL]/share/orca/cfg/laser2d.cfg . $ cp [ORCA-INSTALL]/share/orca/cfg/lasermon.cfg .
laser2d.cfg , and replace the default library name 'libHydroLaserScanner2dSickCarmen .so' with 'libHydroLaserScanner2dFake .so', so it looks like this:
Laser2d.Config.DriverLib=libHydroLaserScanner2dFake.so.so Start the Laser2d component.
$ laser2d laser2d.cfg
lasermon.cfg . By default, all Orca components assume componentname.cfg as an argument if nothing is specified.
$ lasermon You should see the scans scroll by on the screen. Congratulations, your first two components are talking!
To stop components, type If something does not work, check out the FAQ on Orca Wiki. What's NextIf everything works, read more in-depth explanations or what is actually happening here or check out other Orca Tutorials. |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)