next up previous contents
Next: 7.32 ptu46 Up: 7. Device Drivers Previous: 7.30 p2os   Contents

Subsections


7.31 passthrough

Authors

Brian P. Gerkey gerkey(at)stanford.edu

Synopsis

The passthrough driver acts as a client to another Player server; it returns data generated by the remote server to client programs, and send commands from the client programs to the remote server. In this way, one Player server can pretend to have devices that are actually located at some other location in the network (i.e., owned by some other Player server). Thus, the passthrough driver makes possible two important capabilities:

See the below for some examples of the passthrough driver in action.

Interfaces

The passthrough driver will support any of Player's interfaces, and can connect to any Player device.

Configuration file options

Name Type Default Meaning
host string localhost Host name for the machine running the remote Player server.
port integer 6665 Port number for remote server.
index integer 0 Index of the device on the remote server.

Example: Controlling multiple robots through a single connection

The passthrough driver can be used to aggregate devices from multiple robots into a single server. The following example illustrates the general method for doing

Example: Shifting computation

Computationally expensive drivers (such as adaptive_mcl) can be shifted off the robot and onto a workstation. The basic method is a straight-forward variant of the example given above.

Example: Using the adaptive_mcl driver with Stage

Some newer drivers, such as the adaptive_mcl driver, are not supported natively in Stage. For these drivers users must employ a second Player server configured to use the passthrough driver. The basic procedure is as follows.


next up previous contents
Next: 7.32 ptu46 Up: 7. Device Drivers Previous: 7.30 p2os   Contents
2004-06-02