Given a device connection it receives packets from the sick through it.
More...
#include <ArLMS2xxPacketReceiver.h>
|
enum | { STATE_START,
STATE_ADDR,
STATE_START_COUNT,
STATE_ACQUIRE_DATA
} |
|
Given a device connection it receives packets from the sick through it.
◆ receivePacket()
ArLMS2xxPacket * ArLMS2xxPacketReceiver::receivePacket |
( |
unsigned int |
msWait = 0 | ) |
|
Receives a packet from the robot if there is one available.
- Parameters
-
msWait | how long to block for the start of a packet, nonblocking if 0 |
- Returns
- NULL if there are no packets in alloted time, otherwise a pointer to the packet received, if allocatePackets is true than the place that called this function owns the packet and should delete the packet when done... if allocatePackets is false then nothing must store a pointer to this packet, the packet must be used and done with by the time this method is called again
The documentation for this class was generated from the following files:
- ArLMS2xxPacketReceiver.h
- ArLMS2xxPacketReceiver.cpp