Provides easy and reliable access to asynchronous data from a VectorNav sensor at the cost of a slight performance hit.
More...
#include <ezasyncdata.h>
|
static EzAsyncData * | connect (std::string portName, uint32_t baudrate) |
| Connects to a sensor with the specified connection parameters. More...
|
|
Provides easy and reliable access to asynchronous data from a VectorNav sensor at the cost of a slight performance hit.
- Examples:
- ez_async_data/main.cpp.
static EzAsyncData* vn::sensors::EzAsyncData::connect |
( |
std::string |
portName, |
|
|
uint32_t |
baudrate |
|
) |
| |
|
static |
Connects to a sensor with the specified connection parameters.
- Parameters
-
[in] | portName | The COM port name. |
[in] | baudrate | Baudrate to connect to the sensor at. |
- Returns
- New EzAsyncData object wrapping the connected sensor and providing easy access to asynchronous data.
Gets the latest collection of current data received from asychronous messages from the sensor.
- Returns
- The latest current data.
- Examples:
- ez_async_data/main.cpp.
Gets the next data packet available and blocks until a data packet is received if there is currently not data available.
- Returns
- The received data packet.
- Examples:
- ez_async_data/main.cpp.
CompositeData vn::sensors::EzAsyncData::getNextData |
( |
int |
timeoutMs | ) |
|
This method will get the next data packet available and block until a data packet is received if there is currently not data available.
- Parameters
-
[in] | timeoutMs | The number of milliseconds to wait for the next available data. |
- Returns
- The next received packet of data.
- Exceptions
-
timeout | Did not receive new data by the timeout. |
VnSensor* vn::sensors::EzAsyncData::sensor |
( |
| ) |
|
The documentation for this class was generated from the following file: