24 #ifndef __INTERFACES_ROBOTINOSENSORINTERFACE_H_
25 #define __INTERFACES_ROBOTINOSENSORINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
45 int64_t timestamp_sec;
46 int64_t timestamp_usec;
57 } RobotinoSensorInterface_data_t;
60 RobotinoSensorInterface_data_t *data;
90 float distance(
unsigned int index)
const;
91 void set_distance(
unsigned int index,
const float new_distance);
96 void set_digital_in(
unsigned int index,
const bool new_digital_in);
100 float analog_in(
unsigned int index)
const;
101 void set_analog_in(
unsigned int index,
const float new_analog_in);
116 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_gyro_rate(const float new_gyro_rate)
Set gyro_rate value.
bool is_bumper() const
Get bumper value.
Fawkes library namespace.
size_t maxlenof_gyro_available() const
Get maximum length of gyro_available value.
void set_gyro_angle(const float new_gyro_angle)
Set gyro_angle value.
Base class for all Fawkes BlackBoard interfaces.
float * distance() const
Get distance value.
virtual Message * create_message(const char *type) const
Create message based on type name.
size_t maxlenof_gyro_rate() const
Get maximum length of gyro_rate value.
void set_analog_in(unsigned int index, const float new_analog_in)
Set analog_in value at given index.
RobotinoSensorInterface Fawkes BlackBoard Interface.
size_t maxlenof_mot_position() const
Get maximum length of mot_position value.
float * mot_current() const
Get mot_current value.
size_t maxlenof_digital_in() const
Get maximum length of digital_in value.
float * analog_in() const
Get analog_in value.
float * mot_velocity() const
Get mot_velocity value.
int32_t * mot_position() const
Get mot_position value.
size_t maxlenof_mot_velocity() const
Get maximum length of mot_velocity value.
void set_mot_velocity(unsigned int index, const float new_mot_velocity)
Set mot_velocity value at given index.
virtual void copy_values(const Interface *other)
Copy values from other interface.
bool is_gyro_available() const
Get gyro_available value.
void set_digital_in(unsigned int index, const bool new_digital_in)
Set digital_in value at given index.
float gyro_angle() const
Get gyro_angle value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_gyro_angle() const
Get maximum length of gyro_angle value.
void set_distance(unsigned int index, const float new_distance)
Set distance value at given index.
float gyro_rate() const
Get gyro_rate value.
void set_mot_current(unsigned int index, const float new_mot_current)
Set mot_current value at given index.
void set_mot_position(unsigned int index, const int32_t new_mot_position)
Set mot_position value at given index.
void set_bumper(const bool new_bumper)
Set bumper value.
bool * is_digital_in() const
Get digital_in value.
size_t maxlenof_mot_current() const
Get maximum length of mot_current value.
size_t maxlenof_distance() const
Get maximum length of distance value.
const char * type() const
Get type of interface.
size_t maxlenof_analog_in() const
Get maximum length of analog_in value.
size_t maxlenof_bumper() const
Get maximum length of bumper value.
void set_gyro_available(const bool new_gyro_available)
Set gyro_available value.