Wrapper for PointGroupHeader messages.
More...
#include <point_group_header_wrapper.hpp>
Wrapper for PointGroupHeader messages.
Contains metadata about a point group including message indexing, timing information, and a bitfield describing which points are valid.
◆ ~PointGroupHeaderWrapper()
| PointGroupHeaderWrapper::~PointGroupHeaderWrapper |
( |
| ) |
|
|
override |
◆ debugString()
| void PointGroupHeaderWrapper::debugString |
( |
std::ostream & | os | ) |
const |
|
overridevirtual |
◆ fromBuffer()
Update wrapper fields from a serialized message buffer.
- Parameters
-
| buffer | Pointer to the buffer containing serialized Cap'n Proto data |
| size | Size of the buffer in bytes |
◆ fromProto()
◆ messageIndex()
| uint32_t PointGroupHeaderWrapper::messageIndex |
( |
| ) |
const |
|
inline |
Get message index counter.
- Returns
- Message index value
◆ nanosecsSinceFrame()
| int32_t PointGroupHeaderWrapper::nanosecsSinceFrame |
( |
| ) |
const |
|
inline |
Get nanoseconds since frame start.
- Returns
- Nanoseconds value
◆ setMessageIndex()
| void PointGroupHeaderWrapper::setMessageIndex |
( |
uint32_t | value | ) |
|
|
inline |
Set message index counter.
- Parameters
-
◆ setNanosecsSinceFrame()
| void PointGroupHeaderWrapper::setNanosecsSinceFrame |
( |
int32_t | value | ) |
|
|
inline |
Set nanoseconds since frame start.
- Parameters
-
◆ setValidPoints()
| void PointGroupHeaderWrapper::setValidPoints |
( |
uint32_t | value | ) |
|
|
inline |
Set valid points bitfield.
- Parameters
-
| value | 32-bit field where each bit indicates if a corresponding point is valid |
◆ toBuffer()
Serialize this wrapper to a buffer using Cap'n Proto format.
- Parameters
-
| buffer | Pointer to the buffer to write serialized data to |
| buffer_size | Size of the buffer in bytes |
- Returns
- The number of bytes written to the buffer
- Exceptions
-
| std::runtime_error | if the buffer is too small |
◆ toProto()
◆ validPoints()
| uint32_t PointGroupHeaderWrapper::validPoints |
( |
| ) |
const |
|
inline |
Get valid points bitfield.
- Returns
- 32-bit field where each bit indicates if a corresponding point is valid
◆ messageIndex_
| uint32_t PointGroupHeaderWrapper::messageIndex_ |
|
private |
Counter incremented with each message.
◆ nanosecsSinceFrame_
| int32_t PointGroupHeaderWrapper::nanosecsSinceFrame_ |
|
private |
Nanoseconds since frame start.
◆ validPoints_
| uint32_t PointGroupHeaderWrapper::validPoints_ |
|
private |
Bitfield describing valid points.
The documentation for this class was generated from the following file: