24 #ifndef __INTERFACES_POSITION2DTRACKINTERFACE_H_ 25 #define __INTERFACES_POSITION2DTRACKINTERFACE_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;
61 } Position2DTrackInterface_data_t;
63 Position2DTrackInterface_data_t *data;
101 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
void set_valid(const bool new_valid)
Set valid value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
float * track_x_positions() const
Get track_x_positions value.
void set_track_x_positions(unsigned int index, const float new_track_x_positions)
Set track_x_positions value at given index.
Fawkes library namespace.
size_t maxlenof_track_y_positions() const
Get maximum length of track_y_positions value.
size_t maxlenof_valid() const
Get maximum length of valid value.
void set_track_id(const uint32_t new_track_id)
Set track_id value.
uint32_t length() const
Get length value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
virtual Message * create_message(const char *type) const
Create message based on type name.
Base class for all Fawkes BlackBoard interfaces.
uint32_t track_id() const
Get track_id value.
void set_track_y_positions(unsigned int index, const float new_track_y_positions)
Set track_y_positions value at given index.
void set_track_timestamps(unsigned int index, const int32_t new_track_timestamps)
Set track_timestamps value at given index.
bool is_valid() const
Get valid value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
float * track_y_positions() const
Get track_y_positions value.
const char * type() const
Get type of interface.
size_t maxlenof_track_x_positions() const
Get maximum length of track_x_positions value.
size_t maxlenof_track_timestamps() const
Get maximum length of track_timestamps value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_length() const
Get maximum length of length value.
void set_length(const uint32_t new_length)
Set length value.
size_t maxlenof_track_id() const
Get maximum length of track_id value.
int32_t * track_timestamps() const
Get track_timestamps value.
Position2DTrackInterface Fawkes BlackBoard Interface.