ToRanger Class Reference
Inheritance diagram for ToRanger:

Detailed Description
Definition at line 34 of file toranger.h.
Public Member Functions | |
| ToRanger (ConfigFile *cf, int section) | |
| ~ToRanger (void) | |
| virtual int | ProcessMessage (QueuePointer &resp_queue, player_msghdr *hdr, void *data) |
| Message handler. | |
| virtual int | Setup (void) |
| Initialize the driver. | |
| virtual int | Shutdown (void) |
| Finalize the driver. | |
Protected Attributes | |
| player_ranger_geom_t | deviceGeom |
| Device * | inputDevice |
| player_devaddr_t | inputDeviceAddr |
Member Function Documentation
| int ToRanger::ProcessMessage | ( | QueuePointer & | resp_queue, | |
| player_msghdr * | hdr, | |||
| void * | data | |||
| ) | [virtual] |
Message handler.
This function is called once for each message in the incoming queue. Reimplement it to provide message handling. Return 0 if you handled the message and -1 otherwise
- Parameters:
-
resp_queue The queue to which any response should go. hdr The message header data The message body
Reimplemented from Driver.
Definition at line 86 of file toranger.cc.
References Driver::device_addr, inputDevice, inputDeviceAddr, Driver::InQueue, Message::MatchMessage(), PLAYER_MSGTYPE_REQ, PLAYER_MSGTYPE_RESP_ACK, PLAYER_MSGTYPE_RESP_NACK, Driver::Publish(), Device::PutMsg(), and Driver::ret_queue.
Here is the call graph for this function:

| int ToRanger::Setup | ( | void | ) | [virtual] |
Initialize the driver.
This function is called with the first client subscribes; it MUST be implemented by the driver.
- Returns:
- Returns 0 on success.
Implements Driver.
Definition at line 55 of file toranger.cc.
References deviceGeom.
| int ToRanger::Shutdown | ( | void | ) | [virtual] |
Finalize the driver.
This function is called with the last client unsubscribes; it MUST be implemented by the driver.
- Returns:
- Returns 0 on success.
Implements Driver.
Definition at line 65 of file toranger.cc.
References deviceGeom, player_ranger_geom::sensor_poses, and player_ranger_geom::sensor_sizes.
The documentation for this class was generated from the following files:
