24 #ifndef __INTERFACES_POSITION3DINTERFACE_H_ 25 #define __INTERFACES_POSITION3DINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 43 typedef struct __attribute__((packed)) {
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
68 } Position3DInterface_data_t;
70 Position3DInterface_data_t *data;
88 double rotation(
unsigned int index)
const;
89 void set_rotation(
unsigned int index,
const double new_rotation);
99 void set_covariance(
unsigned int index,
const double new_covariance);
105 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
void set_frame(const char *new_frame)
Set frame value.
double * rotation() const
Get rotation value.
char * frame() const
Get frame value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
Fawkes library namespace.
size_t maxlenof_frame() const
Get maximum length of frame value.
virtual Message * create_message(const char *type) const
Create message based on type name.
void set_translation(unsigned int index, const double new_translation)
Set translation value at given index.
Base class for all Fawkes BlackBoard interfaces.
void set_rotation(unsigned int index, const double new_rotation)
Set rotation value at given index.
const char * type() const
Get type of interface.
Position3DInterface Fawkes BlackBoard Interface.
void set_visibility_history(const int32_t new_visibility_history)
Set visibility_history value.
void set_covariance(unsigned int index, const double new_covariance)
Set covariance value at given index.
double * translation() const
Get translation value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_translation() const
Get maximum length of translation value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_visibility_history() const
Get maximum length of visibility_history value.
size_t maxlenof_rotation() const
Get maximum length of rotation value.
int32_t visibility_history() const
Get visibility_history value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_covariance() const
Get maximum length of covariance value.
double * covariance() const
Get covariance value.