CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::ObsLocation Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ extractDataFromMessage()

bool cmlabs::ObsLocation::extractDataFromMessage ( DataMessage * msg,
std::map< std::string, std::string > & mappings )
inline

◆ extractRangeFrom()

bool cmlabs::ObsLocation::extractRangeFrom ( DataMessage * msg)
inline

Definition at line 82 of file Observations.h.

References cmlabs::DataMessage::getFloat(), x, and y.

◆ extractRangeTo()

bool cmlabs::ObsLocation::extractRangeTo ( DataMessage * msg)
inline

Definition at line 88 of file Observations.h.

References cmlabs::DataMessage::getFloat(), x, and y.

◆ getType()

uint32 cmlabs::ObsLocation::getType ( )
inlinestatic

Definition at line 66 of file Observations.h.

References OBSID_LOC.

◆ getTypeName()

std::string cmlabs::ObsLocation::getTypeName ( )
inlinestatic

Definition at line 67 of file Observations.h.

◆ init()

void cmlabs::ObsLocation::init ( )
inline

Definition at line 68 of file Observations.h.

◆ isBetween()

bool cmlabs::ObsLocation::isBetween ( ObsLocation & a,
ObsLocation & b )
inline

Definition at line 94 of file Observations.h.

References x, and y.

◆ print()

std::string cmlabs::ObsLocation::print ( )
inline

Definition at line 69 of file Observations.h.

References size, cmlabs::utils::StringFormat(), x, y, yaw, and z.

◆ toJSON()

std::string cmlabs::ObsLocation::toJSON ( )
inline

Definition at line 81 of file Observations.h.

References pitch, roll, size, cmlabs::utils::StringFormat(), x, y, yaw, and z.

Member Data Documentation

◆ mapID

uint64 cmlabs::ObsLocation::mapID

Definition at line 65 of file Observations.h.

Referenced by extractDataFromMessage().

◆ pitch

float64 cmlabs::ObsLocation::pitch

Definition at line 64 of file Observations.h.

Referenced by extractDataFromMessage(), and toJSON().

◆ roll

float64 cmlabs::ObsLocation::roll

Definition at line 64 of file Observations.h.

Referenced by extractDataFromMessage(), and toJSON().

◆ size

float64 cmlabs::ObsLocation::size

Definition at line 64 of file Observations.h.

Referenced by extractDataFromMessage(), print(), and toJSON().

◆ x

float64 cmlabs::ObsLocation::x

◆ y

float64 cmlabs::ObsLocation::y

◆ yaw

float64 cmlabs::ObsLocation::yaw

Definition at line 64 of file Observations.h.

Referenced by extractDataFromMessage(), print(), and toJSON().

◆ z

float64 cmlabs::ObsLocation::z

Definition at line 64 of file Observations.h.

Referenced by extractDataFromMessage(), print(), and toJSON().


The documentation for this struct was generated from the following file: