24 #include <interfaces/LocalizerControlInterface.h>
26 #include <core/exceptions/software.h>
46 LocalizerControlInterface::LocalizerControlInterface() : Interface()
48 data_size =
sizeof(LocalizerControlInterface_data_t);
50 data = (LocalizerControlInterface_data_t *)
data_ptr;
55 unsigned char tmp_hash[] = {0xa4, 0xe8, 0x69, 0x11, 0x29, 0x30, 0xf2, 0xcb, 0xe5, 0xf4, 00, 0x35, 0x19, 0x58, 0x54, 0xfb};
60 LocalizerControlInterface::~LocalizerControlInterface()
73 return data->map_name;
94 strncpy(data->map_name, new_map_name,
sizeof(data->map_name));
102 if ( strncmp(
"ResetMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
106 "message type for this interface type.", type);
122 memcpy(data, oi->data,
sizeof(LocalizerControlInterface_data_t));
150 data = (ResetMessage_data_t *)
data_ptr;
155 data->variance = ini_variance;
167 data = (ResetMessage_data_t *)
data_ptr;
189 data = (ResetMessage_data_t *)
data_ptr;
291 return data->variance;
311 data->variance = new_variance;
void set_variance(const float new_variance)
Set variance value.
size_t maxlenof_ori() const
Get maximum length of ori value.
void * data_ptr
Pointer to memory that contains local data.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_x() const
Get maximum length of x value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
void set_hash(unsigned char *ihash)
Set hash.
char * map_name() const
Get map_name value.
size_t maxlenof_variance() const
Get maximum length of variance value.
Fawkes library namespace.
Timestamp data, must be present and first entries for each interface data structs! This leans on time...
size_t maxlenof_y() const
Get maximum length of y value.
ResetMessage Fawkes BlackBoard Interface Message.
float x() const
Get x value.
void set_ori(const float new_ori)
Set ori value.
Base class for all Fawkes BlackBoard interfaces.
float variance() const
Get variance value.
message_data_ts_t * data_ts
data timestamp aliasing pointer
unsigned int data_size
Size of memory needed to hold all data.
void add_messageinfo(const char *name)
Add an entry to the message info list.
bool data_changed
Indicator if data has changed.
virtual Message * clone() const
Clone this message.
float y() const
Get y value.
void * data_ptr
Pointer to local memory storage.
virtual Message * create_message(const char *type) const
Create message based on type name.
void set_map_name(const char *new_map_name)
Set map_name value.
size_t maxlenof_map_name() const
Get maximum length of map_name value.
ResetMessage()
Constructor.
LocalizerControlInterface Fawkes BlackBoard Interface.
void set_y(const float new_y)
Set y value.
void add_fieldinfo(interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0)
Add an entry to the info list.
float ori() const
Get ori value.
const char * type() const
Get type of interface.
~ResetMessage()
Destructor.
void set_x(const float new_x)
Set x value.