|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
6-DOF pose observation: position (x,y,z), orientation (pitch,roll,yaw), size and owning map id. More...
#include <Observations.h>
Public Member Functions | |
| void | init () |
| std::string | print () |
| std::string | toJSON () |
| bool | extractRangeFrom (DataMessage *msg) |
| bool | extractRangeTo (DataMessage *msg) |
| bool | isBetween (ObsLocation &a, ObsLocation &b) |
| bool | extractDataFromMessage (DataMessage *msg, std::map< std::string, std::string > &mappings) |
Static Public Member Functions | |
| static uint32 | getType () |
| static std::string | getTypeName () |
Public Attributes | |
| float64 | x |
| float64 | y |
| float64 | z |
| float64 | pitch |
| float64 | roll |
| float64 | yaw |
| float64 | size |
| uint64 | mapID |
6-DOF pose observation: position (x,y,z), orientation (pitch,roll,yaw), size and owning map id.
print()/toJSON() render it; extractRangeFrom()/extractRangeTo()/isBetween() implement 2D rectangular range queries; extractDataFromMessage() populates it from a DataMessage via field mappings.
Definition at line 63 of file Observations.h.
|
inline |
Definition at line 121 of file Observations.h.
References cmlabs::ExtractFloatFromMessage(), cmlabs::ExtractIntFromMessage(), mapID, pitch, roll, size, x, y, yaw, and z.
|
inline |
Definition at line 82 of file Observations.h.
References cmlabs::DataMessage::getFloat(), x, and y.
|
inline |
Definition at line 88 of file Observations.h.
References cmlabs::DataMessage::getFloat(), x, and y.
|
inlinestatic |
Definition at line 66 of file Observations.h.
References OBSID_LOC.
|
inlinestatic |
Definition at line 67 of file Observations.h.
|
inline |
Definition at line 68 of file Observations.h.
|
inline |
Definition at line 94 of file Observations.h.
|
inline |
Definition at line 69 of file Observations.h.
References size, cmlabs::utils::StringFormat(), x, y, yaw, and z.
|
inline |
Definition at line 81 of file Observations.h.
References pitch, roll, size, cmlabs::utils::StringFormat(), x, y, yaw, and z.
| uint64 cmlabs::ObsLocation::mapID |
Definition at line 65 of file Observations.h.
Referenced by extractDataFromMessage().
| float64 cmlabs::ObsLocation::pitch |
Definition at line 64 of file Observations.h.
Referenced by extractDataFromMessage(), and toJSON().
| float64 cmlabs::ObsLocation::roll |
Definition at line 64 of file Observations.h.
Referenced by extractDataFromMessage(), and toJSON().
| float64 cmlabs::ObsLocation::size |
Definition at line 64 of file Observations.h.
Referenced by extractDataFromMessage(), print(), and toJSON().
| float64 cmlabs::ObsLocation::x |
Definition at line 64 of file Observations.h.
Referenced by extractDataFromMessage(), extractRangeFrom(), extractRangeTo(), isBetween(), print(), and toJSON().
| float64 cmlabs::ObsLocation::y |
Definition at line 64 of file Observations.h.
Referenced by extractDataFromMessage(), extractRangeFrom(), extractRangeTo(), isBetween(), print(), and toJSON().
| float64 cmlabs::ObsLocation::yaw |
Definition at line 64 of file Observations.h.
Referenced by extractDataFromMessage(), print(), and toJSON().
| float64 cmlabs::ObsLocation::z |
Definition at line 64 of file Observations.h.
Referenced by extractDataFromMessage(), print(), and toJSON().