24 #ifndef __INTERFACES_IMUINTERFACE_H_ 25 #define __INTERFACES_IMUINTERFACE_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;
67 } IMUInterface_data_t;
69 IMUInterface_data_t *data;
116 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
virtual Message * create_message(const char *type) const
Create message based on type name.
double * angular_velocity_covariance() const
Get angular_velocity_covariance value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
size_t maxlenof_angular_velocity_covariance() const
Get maximum length of angular_velocity_covariance value.
void set_orientation(unsigned int index, const float new_orientation)
Set orientation value at given index.
Fawkes library namespace.
size_t maxlenof_frame() const
Get maximum length of frame value.
size_t maxlenof_linear_acceleration() const
Get maximum length of linear_acceleration value.
size_t maxlenof_orientation_covariance() const
Get maximum length of orientation_covariance value.
Base class for all Fawkes BlackBoard interfaces.
void set_linear_acceleration_covariance(unsigned int index, const double new_linear_acceleration_covariance)
Set linear_acceleration_covariance value at given index.
void set_angular_velocity(unsigned int index, const float new_angular_velocity)
Set angular_velocity value at given index.
void set_frame(const char *new_frame)
Set frame value.
const char * type() const
Get type of interface.
void set_orientation_covariance(unsigned int index, const double new_orientation_covariance)
Set orientation_covariance value at given index.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
void set_angular_velocity_covariance(unsigned int index, const double new_angular_velocity_covariance)
Set angular_velocity_covariance value at given index.
float * angular_velocity() const
Get angular_velocity value.
size_t maxlenof_angular_velocity() const
Get maximum length of angular_velocity value.
size_t maxlenof_linear_acceleration_covariance() const
Get maximum length of linear_acceleration_covariance value.
double * linear_acceleration_covariance() const
Get linear_acceleration_covariance value.
IMUInterface Fawkes BlackBoard Interface.
virtual void copy_values(const Interface *other)
Copy values from other interface.
char * frame() const
Get frame value.
double * orientation_covariance() const
Get orientation_covariance value.
size_t maxlenof_orientation() const
Get maximum length of orientation value.
float * linear_acceleration() const
Get linear_acceleration value.
void set_linear_acceleration(unsigned int index, const float new_linear_acceleration)
Set linear_acceleration value at given index.
float * orientation() const
Get orientation value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.