Fawkes API
Fawkes Development Version
|
24 #ifndef _INTERFACES_LOCALIZATIONINTERFACE_H_
25 #define _INTERFACES_LOCALIZATIONINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
33 class LocalizationInterface :
public Interface
36 INTERFACE_MGMT_FRIENDS(LocalizationInterface)
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
47 } LocalizationInterface_data_t;
49 LocalizationInterface_data_t *data;
53 class SetInitialPoseMessage :
public Message
58 int64_t timestamp_sec;
59 int64_t timestamp_usec;
75 } SetInitialPoseMessage_data_t;
77 SetInitialPoseMessage_data_t *data;
80 SetInitialPoseMessage(
const char * ini_frame,
const double * ini_rotation,
const double * ini_translation,
const double * ini_covariance);
90 double rotation(
unsigned int index)
const;
91 void set_rotation(
unsigned int index,
const double new_rotation);
101 void set_covariance(
unsigned int index,
const double new_covariance);
115 void set_map(
const char * new_map);
120 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
double * covariance() const
Get covariance value.
virtual Message * clone() const
Clone this message.
double * translation() const
Get translation value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
char * map() const
Get map value.
const char * type() const
Get type of interface.
void set_rotation(unsigned int index, const double new_rotation)
Set rotation value at given index.
~SetInitialPoseMessage()
Destructor.
size_t maxlenof_map() const
Get maximum length of map value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_frame() const
Get maximum length of frame value.
virtual const char * enum_tostring(const char *enumtype, int val) const
SetInitialPoseMessage()
Constructor.
void set_covariance(unsigned int index, const double new_covariance)
Set covariance value at given index.
void set_map(const char *new_map)
Set map value.
void set_frame(const char *new_frame)
Set frame value.
char * frame() const
Get frame value.
double * rotation() const
Get rotation value.
size_t maxlenof_translation() const
Get maximum length of translation value.
void set_translation(unsigned int index, const double new_translation)
Set translation value at given index.
size_t maxlenof_rotation() const
Get maximum length of rotation value.
size_t maxlenof_covariance() const
Get maximum length of covariance value.
virtual Message * create_message(const char *type) const