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
|
Connecting components without the Registry
In this tutorial we will reproduce the setup of the Quick-Start Guide but now without running the IceGrid Registry. The system diagram is shown below. The client will connect to the server using so called direct connection method. This is equivalent to reaching a web server without the Domain Name Service (by using an IP address instead of a URL). You may want to do this if you do not want to use the IceGrid Registry for some reason. Start Up the InfrastructureStart the IceStorm server but make sure that the IceGrid Registry is NOT running (See Quick-Start Guide for instructions). Modify the global configuration file ~/.orcarc to disable adapter registration (we comment out the line corresponding to the Locator info). # Standard Ice Configuration for Orca #Ice.Default.Locator=IceGrid/Locator:default -p 12000 Connect Two ComponentsFirst, copy default configuration files for the Laser2d and LaserMon components. $ mkdir -p ~/sys/tutedirect; cd ~/sys/tutedirect $ cp [ORCA-INSTALL]/share/orca/cfg/laser2d.cfg . $ cp [ORCA-INSTALL]/share/orca/cfg/lasermon.cfg .
Edit
The config file should now contain the following lines: Laser2d.Endpoints=tcp -t 5000 -p 15000 ... Laser2d.Config.DriverLib=libHydroLaserScanner2dFake.so ... Orca.Component.RequireRegistry=0 Start the server. $ laser2d
Start a new shell where we will run the client LaserMon. This time we have to tell it explicitely where to find the LaserScanner2d interface instead of relying on the Registry to supply this information. As in the case of the server, we disable registry pinging on activation. This LaserMon.Requires.LaserScanner2d.Proxy=laserscanner2d:tcp -p 15000 ... Orca.Component.RequireRegistry=0 Start the client. $ lasermon You should see the scans scroll by on the screen, just as in the Quick-Start Guide tutorial. What's NextIf everything works, check out more Orca Tutorials. |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)