Stage controller which connects to Player server and displays data provided by the server in the Stage window. Possible applications:
- real robot monitoring in case Player runs on the robot
- monitoring of several (both real and simulated) robots on one window
- supervising student's robot by a teacher
Example of controller configuration (in world file):
ctrl "viewer ( host 'mycomp.com' port 3333 requires ['laser:0' 'position2d:0' 'sonar:0']) "
In this configuration, the Stage (as standalone app) connects to computer mycom.com on port 3333 and displays data from
its laser:0 device as it is generated by sicklaser and data from sonar:0 as ranger. Moreover, position of
the displayed robot is position2d:0.
ctrl "viewer ( host '<HOST>' port <PORT> requires ' <DEVICE1> <DEVICE2> ... <DEVICEn>' )"
<HOST> name of Player host computer
<PORT> port on whict Player communicates
<DEVICEi> The device address(es) through which the driver can be accessed.
Run simple demo two see the functionality:
1) Run 'player twopioneers.cfg'
2) Run 'stage viewer.world'
both twopioneers.cfg ans viewer.world are placed in worlds directory.
Log in to post a comment.