Fawkes API Fawkes Development Version
|
Roomba500Interface Fawkes BlackBoard Interface. More...
#include <>>
Classes | |
class | DockMessage |
DockMessage Fawkes BlackBoard Interface Message. More... | |
class | DriveMessage |
DriveMessage Fawkes BlackBoard Interface Message. More... | |
class | DriveStraightMessage |
DriveStraightMessage Fawkes BlackBoard Interface Message. More... | |
class | SetModeMessage |
SetModeMessage Fawkes BlackBoard Interface Message. More... | |
class | SetMotorsMessage |
SetMotorsMessage Fawkes BlackBoard Interface Message. More... | |
class | StopMessage |
StopMessage Fawkes BlackBoard Interface Message. More... | |
Public Member Functions | |
const char * | tostring_Mode (Mode value) const |
Convert Mode constant to string. More... | |
const char * | tostring_InfraredCharacter (InfraredCharacter value) const |
Convert InfraredCharacter constant to string. More... | |
const char * | tostring_ChargingState (ChargingState value) const |
Convert ChargingState constant to string. More... | |
const char * | tostring_BrushState (BrushState value) const |
Convert BrushState constant to string. More... | |
virtual bool | message_valid (const Message *message) const |
Check if message is valid and can be enqueued. More... | |
Mode | mode () const |
Get mode value. More... | |
void | set_mode (const Mode new_mode) |
Set mode value. More... | |
size_t | maxlenof_mode () const |
Get maximum length of mode value. More... | |
bool | is_wheel_drop_left () const |
Get wheel_drop_left value. More... | |
void | set_wheel_drop_left (const bool new_wheel_drop_left) |
Set wheel_drop_left value. More... | |
size_t | maxlenof_wheel_drop_left () const |
Get maximum length of wheel_drop_left value. More... | |
bool | is_wheel_drop_right () const |
Get wheel_drop_right value. More... | |
void | set_wheel_drop_right (const bool new_wheel_drop_right) |
Set wheel_drop_right value. More... | |
size_t | maxlenof_wheel_drop_right () const |
Get maximum length of wheel_drop_right value. More... | |
bool | is_bump_left () const |
Get bump_left value. More... | |
void | set_bump_left (const bool new_bump_left) |
Set bump_left value. More... | |
size_t | maxlenof_bump_left () const |
Get maximum length of bump_left value. More... | |
bool | is_bump_right () const |
Get bump_right value. More... | |
void | set_bump_right (const bool new_bump_right) |
Set bump_right value. More... | |
size_t | maxlenof_bump_right () const |
Get maximum length of bump_right value. More... | |
bool | is_wall () const |
Get wall value. More... | |
void | set_wall (const bool new_wall) |
Set wall value. More... | |
size_t | maxlenof_wall () const |
Get maximum length of wall value. More... | |
bool | is_cliff_left () const |
Get cliff_left value. More... | |
void | set_cliff_left (const bool new_cliff_left) |
Set cliff_left value. More... | |
size_t | maxlenof_cliff_left () const |
Get maximum length of cliff_left value. More... | |
bool | is_cliff_front_left () const |
Get cliff_front_left value. More... | |
void | set_cliff_front_left (const bool new_cliff_front_left) |
Set cliff_front_left value. More... | |
size_t | maxlenof_cliff_front_left () const |
Get maximum length of cliff_front_left value. More... | |
bool | is_cliff_front_right () const |
Get cliff_front_right value. More... | |
void | set_cliff_front_right (const bool new_cliff_front_right) |
Set cliff_front_right value. More... | |
size_t | maxlenof_cliff_front_right () const |
Get maximum length of cliff_front_right value. More... | |
bool | is_cliff_right () const |
Get cliff_right value. More... | |
void | set_cliff_right (const bool new_cliff_right) |
Set cliff_right value. More... | |
size_t | maxlenof_cliff_right () const |
Get maximum length of cliff_right value. More... | |
bool | is_virtual_wall () const |
Get virtual_wall value. More... | |
void | set_virtual_wall (const bool new_virtual_wall) |
Set virtual_wall value. More... | |
size_t | maxlenof_virtual_wall () const |
Get maximum length of virtual_wall value. More... | |
bool | is_overcurrent_side_brush () const |
Get overcurrent_side_brush value. More... | |
void | set_overcurrent_side_brush (const bool new_overcurrent_side_brush) |
Set overcurrent_side_brush value. More... | |
size_t | maxlenof_overcurrent_side_brush () const |
Get maximum length of overcurrent_side_brush value. More... | |
bool | is_overcurrent_main_brush () const |
Get overcurrent_main_brush value. More... | |
void | set_overcurrent_main_brush (const bool new_overcurrent_main_brush) |
Set overcurrent_main_brush value. More... | |
size_t | maxlenof_overcurrent_main_brush () const |
Get maximum length of overcurrent_main_brush value. More... | |
bool | is_overcurrent_left_wheel () const |
Get overcurrent_left_wheel value. More... | |
void | set_overcurrent_left_wheel (const bool new_overcurrent_left_wheel) |
Set overcurrent_left_wheel value. More... | |
size_t | maxlenof_overcurrent_left_wheel () const |
Get maximum length of overcurrent_left_wheel value. More... | |
bool | is_overcurrent_right_wheel () const |
Get overcurrent_right_wheel value. More... | |
void | set_overcurrent_right_wheel (const bool new_overcurrent_right_wheel) |
Set overcurrent_right_wheel value. More... | |
size_t | maxlenof_overcurrent_right_wheel () const |
Get maximum length of overcurrent_right_wheel value. More... | |
bool | is_dirt_detect () const |
Get dirt_detect value. More... | |
void | set_dirt_detect (const bool new_dirt_detect) |
Set dirt_detect value. More... | |
size_t | maxlenof_dirt_detect () const |
Get maximum length of dirt_detect value. More... | |
InfraredCharacter | ir_opcode_omni () const |
Get ir_opcode_omni value. More... | |
void | set_ir_opcode_omni (const InfraredCharacter new_ir_opcode_omni) |
Set ir_opcode_omni value. More... | |
size_t | maxlenof_ir_opcode_omni () const |
Get maximum length of ir_opcode_omni value. More... | |
bool | is_button_clean () const |
Get button_clean value. More... | |
void | set_button_clean (const bool new_button_clean) |
Set button_clean value. More... | |
size_t | maxlenof_button_clean () const |
Get maximum length of button_clean value. More... | |
bool | is_button_spot () const |
Get button_spot value. More... | |
void | set_button_spot (const bool new_button_spot) |
Set button_spot value. More... | |
size_t | maxlenof_button_spot () const |
Get maximum length of button_spot value. More... | |
bool | is_button_dock () const |
Get button_dock value. More... | |
void | set_button_dock (const bool new_button_dock) |
Set button_dock value. More... | |
size_t | maxlenof_button_dock () const |
Get maximum length of button_dock value. More... | |
bool | is_button_minute () const |
Get button_minute value. More... | |
void | set_button_minute (const bool new_button_minute) |
Set button_minute value. More... | |
size_t | maxlenof_button_minute () const |
Get maximum length of button_minute value. More... | |
bool | is_button_hour () const |
Get button_hour value. More... | |
void | set_button_hour (const bool new_button_hour) |
Set button_hour value. More... | |
size_t | maxlenof_button_hour () const |
Get maximum length of button_hour value. More... | |
bool | is_button_day () const |
Get button_day value. More... | |
void | set_button_day (const bool new_button_day) |
Set button_day value. More... | |
size_t | maxlenof_button_day () const |
Get maximum length of button_day value. More... | |
bool | is_button_schedule () const |
Get button_schedule value. More... | |
void | set_button_schedule (const bool new_button_schedule) |
Set button_schedule value. More... | |
size_t | maxlenof_button_schedule () const |
Get maximum length of button_schedule value. More... | |
bool | is_button_clock () const |
Get button_clock value. More... | |
void | set_button_clock (const bool new_button_clock) |
Set button_clock value. More... | |
size_t | maxlenof_button_clock () const |
Get maximum length of button_clock value. More... | |
int16_t | distance () const |
Get distance value. More... | |
void | set_distance (const int16_t new_distance) |
Set distance value. More... | |
size_t | maxlenof_distance () const |
Get maximum length of distance value. More... | |
int16_t | angle () const |
Get angle value. More... | |
void | set_angle (const int16_t new_angle) |
Set angle value. More... | |
size_t | maxlenof_angle () const |
Get maximum length of angle value. More... | |
ChargingState | charging_state () const |
Get charging_state value. More... | |
void | set_charging_state (const ChargingState new_charging_state) |
Set charging_state value. More... | |
size_t | maxlenof_charging_state () const |
Get maximum length of charging_state value. More... | |
uint16_t | voltage () const |
Get voltage value. More... | |
void | set_voltage (const uint16_t new_voltage) |
Set voltage value. More... | |
size_t | maxlenof_voltage () const |
Get maximum length of voltage value. More... | |
int16_t | current () const |
Get current value. More... | |
void | set_current (const int16_t new_current) |
Set current value. More... | |
size_t | maxlenof_current () const |
Get maximum length of current value. More... | |
int8_t | temperature () const |
Get temperature value. More... | |
void | set_temperature (const int8_t new_temperature) |
Set temperature value. More... | |
size_t | maxlenof_temperature () const |
Get maximum length of temperature value. More... | |
uint16_t | battery_charge () const |
Get battery_charge value. More... | |
void | set_battery_charge (const uint16_t new_battery_charge) |
Set battery_charge value. More... | |
size_t | maxlenof_battery_charge () const |
Get maximum length of battery_charge value. More... | |
uint16_t | battery_capacity () const |
Get battery_capacity value. More... | |
void | set_battery_capacity (const uint16_t new_battery_capacity) |
Set battery_capacity value. More... | |
size_t | maxlenof_battery_capacity () const |
Get maximum length of battery_capacity value. More... | |
uint16_t | wall_signal () const |
Get wall_signal value. More... | |
void | set_wall_signal (const uint16_t new_wall_signal) |
Set wall_signal value. More... | |
size_t | maxlenof_wall_signal () const |
Get maximum length of wall_signal value. More... | |
uint16_t | cliff_left_signal () const |
Get cliff_left_signal value. More... | |
void | set_cliff_left_signal (const uint16_t new_cliff_left_signal) |
Set cliff_left_signal value. More... | |
size_t | maxlenof_cliff_left_signal () const |
Get maximum length of cliff_left_signal value. More... | |
uint16_t | cliff_front_left_signal () const |
Get cliff_front_left_signal value. More... | |
void | set_cliff_front_left_signal (const uint16_t new_cliff_front_left_signal) |
Set cliff_front_left_signal value. More... | |
size_t | maxlenof_cliff_front_left_signal () const |
Get maximum length of cliff_front_left_signal value. More... | |
uint16_t | cliff_front_right_signal () const |
Get cliff_front_right_signal value. More... | |
void | set_cliff_front_right_signal (const uint16_t new_cliff_front_right_signal) |
Set cliff_front_right_signal value. More... | |
size_t | maxlenof_cliff_front_right_signal () const |
Get maximum length of cliff_front_right_signal value. More... | |
uint16_t | cliff_right_signal () const |
Get cliff_right_signal value. More... | |
void | set_cliff_right_signal (const uint16_t new_cliff_right_signal) |
Set cliff_right_signal value. More... | |
size_t | maxlenof_cliff_right_signal () const |
Get maximum length of cliff_right_signal value. More... | |
bool | is_home_base_charger_available () const |
Get home_base_charger_available value. More... | |
void | set_home_base_charger_available (const bool new_home_base_charger_available) |
Set home_base_charger_available value. More... | |
size_t | maxlenof_home_base_charger_available () const |
Get maximum length of home_base_charger_available value. More... | |
bool | is_internal_charger_available () const |
Get internal_charger_available value. More... | |
void | set_internal_charger_available (const bool new_internal_charger_available) |
Set internal_charger_available value. More... | |
size_t | maxlenof_internal_charger_available () const |
Get maximum length of internal_charger_available value. More... | |
uint8_t | song_number () const |
Get song_number value. More... | |
void | set_song_number (const uint8_t new_song_number) |
Set song_number value. More... | |
size_t | maxlenof_song_number () const |
Get maximum length of song_number value. More... | |
bool | is_song_playing () const |
Get song_playing value. More... | |
void | set_song_playing (const bool new_song_playing) |
Set song_playing value. More... | |
size_t | maxlenof_song_playing () const |
Get maximum length of song_playing value. More... | |
int16_t | velocity () const |
Get velocity value. More... | |
void | set_velocity (const int16_t new_velocity) |
Set velocity value. More... | |
size_t | maxlenof_velocity () const |
Get maximum length of velocity value. More... | |
int16_t | radius () const |
Get radius value. More... | |
void | set_radius (const int16_t new_radius) |
Set radius value. More... | |
size_t | maxlenof_radius () const |
Get maximum length of radius value. More... | |
int16_t | velocity_right () const |
Get velocity_right value. More... | |
void | set_velocity_right (const int16_t new_velocity_right) |
Set velocity_right value. More... | |
size_t | maxlenof_velocity_right () const |
Get maximum length of velocity_right value. More... | |
int16_t | velocity_left () const |
Get velocity_left value. More... | |
void | set_velocity_left (const int16_t new_velocity_left) |
Set velocity_left value. More... | |
size_t | maxlenof_velocity_left () const |
Get maximum length of velocity_left value. More... | |
uint16_t | encoder_counts_left () const |
Get encoder_counts_left value. More... | |
void | set_encoder_counts_left (const uint16_t new_encoder_counts_left) |
Set encoder_counts_left value. More... | |
size_t | maxlenof_encoder_counts_left () const |
Get maximum length of encoder_counts_left value. More... | |
uint16_t | encoder_counts_right () const |
Get encoder_counts_right value. More... | |
void | set_encoder_counts_right (const uint16_t new_encoder_counts_right) |
Set encoder_counts_right value. More... | |
size_t | maxlenof_encoder_counts_right () const |
Get maximum length of encoder_counts_right value. More... | |
bool | is_bumper_left () const |
Get bumper_left value. More... | |
void | set_bumper_left (const bool new_bumper_left) |
Set bumper_left value. More... | |
size_t | maxlenof_bumper_left () const |
Get maximum length of bumper_left value. More... | |
bool | is_bumper_front_left () const |
Get bumper_front_left value. More... | |
void | set_bumper_front_left (const bool new_bumper_front_left) |
Set bumper_front_left value. More... | |
size_t | maxlenof_bumper_front_left () const |
Get maximum length of bumper_front_left value. More... | |
bool | is_bumper_center_left () const |
Get bumper_center_left value. More... | |
void | set_bumper_center_left (const bool new_bumper_center_left) |
Set bumper_center_left value. More... | |
size_t | maxlenof_bumper_center_left () const |
Get maximum length of bumper_center_left value. More... | |
bool | is_bumper_center_right () const |
Get bumper_center_right value. More... | |
void | set_bumper_center_right (const bool new_bumper_center_right) |
Set bumper_center_right value. More... | |
size_t | maxlenof_bumper_center_right () const |
Get maximum length of bumper_center_right value. More... | |
bool | is_bumper_front_right () const |
Get bumper_front_right value. More... | |
void | set_bumper_front_right (const bool new_bumper_front_right) |
Set bumper_front_right value. More... | |
size_t | maxlenof_bumper_front_right () const |
Get maximum length of bumper_front_right value. More... | |
bool | is_bumper_right () const |
Get bumper_right value. More... | |
void | set_bumper_right (const bool new_bumper_right) |
Set bumper_right value. More... | |
size_t | maxlenof_bumper_right () const |
Get maximum length of bumper_right value. More... | |
uint16_t | light_bump_left () const |
Get light_bump_left value. More... | |
void | set_light_bump_left (const uint16_t new_light_bump_left) |
Set light_bump_left value. More... | |
size_t | maxlenof_light_bump_left () const |
Get maximum length of light_bump_left value. More... | |
uint16_t | light_bump_front_left () const |
Get light_bump_front_left value. More... | |
void | set_light_bump_front_left (const uint16_t new_light_bump_front_left) |
Set light_bump_front_left value. More... | |
size_t | maxlenof_light_bump_front_left () const |
Get maximum length of light_bump_front_left value. More... | |
uint16_t | light_bump_center_left () const |
Get light_bump_center_left value. More... | |
void | set_light_bump_center_left (const uint16_t new_light_bump_center_left) |
Set light_bump_center_left value. More... | |
size_t | maxlenof_light_bump_center_left () const |
Get maximum length of light_bump_center_left value. More... | |
uint16_t | light_bump_center_right () const |
Get light_bump_center_right value. More... | |
void | set_light_bump_center_right (const uint16_t new_light_bump_center_right) |
Set light_bump_center_right value. More... | |
size_t | maxlenof_light_bump_center_right () const |
Get maximum length of light_bump_center_right value. More... | |
uint16_t | light_bump_front_right () const |
Get light_bump_front_right value. More... | |
void | set_light_bump_front_right (const uint16_t new_light_bump_front_right) |
Set light_bump_front_right value. More... | |
size_t | maxlenof_light_bump_front_right () const |
Get maximum length of light_bump_front_right value. More... | |
uint16_t | light_bump_right () const |
Get light_bump_right value. More... | |
void | set_light_bump_right (const uint16_t new_light_bump_right) |
Set light_bump_right value. More... | |
size_t | maxlenof_light_bump_right () const |
Get maximum length of light_bump_right value. More... | |
InfraredCharacter | ir_opcode_left () const |
Get ir_opcode_left value. More... | |
void | set_ir_opcode_left (const InfraredCharacter new_ir_opcode_left) |
Set ir_opcode_left value. More... | |
size_t | maxlenof_ir_opcode_left () const |
Get maximum length of ir_opcode_left value. More... | |
InfraredCharacter | ir_opcode_right () const |
Get ir_opcode_right value. More... | |
void | set_ir_opcode_right (const InfraredCharacter new_ir_opcode_right) |
Set ir_opcode_right value. More... | |
size_t | maxlenof_ir_opcode_right () const |
Get maximum length of ir_opcode_right value. More... | |
int16_t | left_motor_current () const |
Get left_motor_current value. More... | |
void | set_left_motor_current (const int16_t new_left_motor_current) |
Set left_motor_current value. More... | |
size_t | maxlenof_left_motor_current () const |
Get maximum length of left_motor_current value. More... | |
int16_t | right_motor_current () const |
Get right_motor_current value. More... | |
void | set_right_motor_current (const int16_t new_right_motor_current) |
Set right_motor_current value. More... | |
size_t | maxlenof_right_motor_current () const |
Get maximum length of right_motor_current value. More... | |
int16_t | main_brush_current () const |
Get main_brush_current value. More... | |
void | set_main_brush_current (const int16_t new_main_brush_current) |
Set main_brush_current value. More... | |
size_t | maxlenof_main_brush_current () const |
Get maximum length of main_brush_current value. More... | |
int16_t | side_brush_current () const |
Get side_brush_current value. More... | |
void | set_side_brush_current (const int16_t new_side_brush_current) |
Set side_brush_current value. More... | |
size_t | maxlenof_side_brush_current () const |
Get maximum length of side_brush_current value. More... | |
bool | is_caster_stasis () const |
Get caster_stasis value. More... | |
void | set_caster_stasis (const bool new_caster_stasis) |
Set caster_stasis value. More... | |
size_t | maxlenof_caster_stasis () const |
Get maximum length of caster_stasis value. More... | |
virtual Message * | create_message (const char *type) const |
Create message based on type name. More... | |
virtual void | copy_values (const Interface *other) |
Copy values from other interface. More... | |
virtual const char * | enum_tostring (const char *enumtype, int val) const |
Convert arbitrary enum value to string. More... | |
![]() | |
virtual | ~Interface () |
Destructor. More... | |
bool | oftype (const char *interface_type) const |
Check if interface is of given type. More... | |
const void * | datachunk () const |
Get data chunk. More... | |
unsigned int | datasize () const |
Get data size. More... | |
const char * | type () const |
Get type of interface. More... | |
const char * | id () const |
Get identifier of interface. More... | |
const char * | uid () const |
Get unique identifier of interface. More... | |
Uuid | serial () const |
Get instance serial of interface. More... | |
unsigned int | mem_serial () const |
Get memory serial of interface. More... | |
bool | operator== (Interface &comp) const |
Check equality of two interfaces. More... | |
const unsigned char * | hash () const |
Get interface hash. More... | |
size_t | hash_size () const |
Get size of interface hash. More... | |
const char * | hash_printable () const |
Get printable interface hash. More... | |
bool | is_writer () const |
Check if this is a writing instance. More... | |
void | set_validity (bool valid) |
Mark this interface invalid. More... | |
bool | is_valid () const |
Check validity of interface. More... | |
const char * | owner () const |
Get owner of interface. More... | |
void | set_from_chunk (void *chunk) |
Set from a raw data chunk. More... | |
virtual Message * | create_message (const char *type) const =0 |
Create message based on type name. More... | |
virtual void | copy_values (const Interface *interface)=0 |
Copy values from another interface. More... | |
virtual const char * | enum_tostring (const char *enumtype, int val) const =0 |
Convert arbitrary enum value to string. More... | |
void | resize_buffers (unsigned int num_buffers) |
Resize buffer array. More... | |
unsigned int | num_buffers () const |
Get number of buffers. More... | |
void | copy_shared_to_buffer (unsigned int buffer) |
Copy data from private memory to buffer. More... | |
void | copy_private_to_buffer (unsigned int buffer) |
Copy data from private memory to buffer. More... | |
void | read_from_buffer (unsigned int buffer) |
Copy data from buffer to private memory. More... | |
int | compare_buffers (unsigned int buffer) |
Compare buffer to private memory. More... | |
Time | buffer_timestamp (unsigned int buffer) |
Get time of a buffer. More... | |
void | buffer_timestamp (unsigned int buffer, Time *timestamp) |
Get time of a buffer. More... | |
void | read () |
Read from BlackBoard into local copy. More... | |
void | write () |
Write from local copy into BlackBoard memory. More... | |
bool | has_writer () const |
Check if there is a writer for the interface. More... | |
unsigned int | num_readers () const |
Get the number of readers. More... | |
std::string | writer () const |
Get owner name of writing interface instance. More... | |
std::list< std::string > | readers () const |
Get owner names of reading interface instances. More... | |
bool | changed () const |
bool | refreshed () const |
Check if data has been refreshed. More... | |
const Time * | timestamp () const |
Get timestamp of last write. More... | |
void | set_auto_timestamping (bool enabled) |
Enable or disable automated timestamping. More... | |
void | set_timestamp (const Time *t=NULL) |
Set timestamp. More... | |
void | set_clock (Clock *clock) |
Set clock to use for timestamping. More... | |
void | mark_data_refreshed () |
Mark data as refreshed. More... | |
void | mark_data_changed () |
Mark data as changed. More... | |
std::list< const char * > | get_message_types () |
Obtain a list of textual representations of the message types available for this interface. More... | |
unsigned int | msgq_enqueue (Message *message, bool proxy=false) |
Enqueue message at end of queue. More... | |
unsigned int | msgq_enqueue_copy (Message *message) |
Enqueue copy of message at end of queue. More... | |
void | msgq_remove (Message *message) |
Remove message from queue. More... | |
void | msgq_remove (unsigned int message_id) |
Remove message from queue. More... | |
unsigned int | msgq_size () |
Get size of message queue. More... | |
void | msgq_flush () |
Flush all messages. More... | |
void | msgq_lock () |
Lock message queue. More... | |
bool | msgq_try_lock () |
Try to lock message queue. More... | |
void | msgq_unlock () |
Unlock message queue. More... | |
void | msgq_pop () |
Erase first message from queue. More... | |
Message * | msgq_first () |
Get the first message from the message queue. More... | |
bool | msgq_empty () |
Check if queue is empty. More... | |
void | msgq_append (Message *message) |
Enqueue message. More... | |
template<class MessageType > | |
bool | msgq_first_is () |
Check if first message has desired type. More... | |
template<class MessageType > | |
MessageType * | msgq_first () |
Get first message casted to the desired type. More... | |
template<class MessageType > | |
MessageType * | msgq_first (MessageType *&msg) |
Get first message casted to the desired type. More... | |
template<class MessageType > | |
MessageType * | msgq_first_safe (MessageType *&msg) noexcept |
Get first message casted to the desired type without exceptions. More... | |
MessageQueue::MessageIterator | msgq_begin () |
Get start iterator for message queue. More... | |
MessageQueue::MessageIterator | msgq_end () |
Get end iterator for message queue. More... | |
InterfaceFieldIterator | fields () |
Get iterator over all fields of this interface instance. More... | |
InterfaceFieldIterator | fields_end () |
Invalid iterator. More... | |
unsigned int | num_fields () |
Get the number of fields in the interface. More... | |
Additional Inherited Members | |
![]() | |
static void | parse_uid (const char *uid, std::string &type, std::string &id) |
Parse UID to type and ID strings. More... | |
![]() | |
Interface () | |
Constructor. More... | |
virtual bool | message_valid (const Message *message) const =0 |
Check if the message is valid and can be enqueued. More... | |
void | set_hash (unsigned char *ihash) |
Set hash. More... | |
void | add_fieldinfo (interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0, const interface_enum_map_t *enum_map=0) |
Add an entry to the field info list. More... | |
void | add_messageinfo (const char *name) |
Add an entry to the message info list. More... | |
template<class FieldT , class DataT > | |
void | set_field (FieldT &field, DataT &data) |
Set a field, set data_changed to true and update data_changed accordingly. More... | |
template<class FieldT , class DataT > | |
void | set_field (FieldT &field, unsigned int index, DataT &data) |
Set an array field at a given index, set data_changed to true and update data_changed accordingly. More... | |
![]() | |
void * | data_ptr |
Pointer to local memory storage. More... | |
unsigned int | data_size |
Minimal data size to hold data storage. More... | |
bool | data_refreshed |
Indicator if data can be considered "current", i.e. More... | |
bool | data_changed |
Indicator if the current data is different from the last call to write() This must is automatically updated by set_field. More... | |
interface_data_ts_t * | data_ts |
Pointer to data casted to timestamp struct. More... | |
Roomba500Interface Fawkes BlackBoard Interface.
Roomba 500 hardware interface.
Definition at line 33 of file Roomba500Interface.h.
State of the brushes.
Enumerator | |
---|---|
BRUSHSTATE_OFF | Brush is off. |
BRUSHSTATE_FORWARD | Brush is turning forward. |
BRUSHSTATE_BACKWARD | Brush is turning backward. |
Definition at line 124 of file Roomba500Interface.h.
Current charging state.
Definition at line 113 of file Roomba500Interface.h.
Infrared character values.
Definition at line 54 of file Roomba500Interface.h.
Open Interface mode.
Enumerator | |
---|---|
MODE_OFF | No connection. |
MODE_PASSIVE | Passive mode, no control, only listening. |
MODE_SAFE | Control acquired, safety measures in place. |
MODE_FULL | Control acquired, safety measures disabled. |
Definition at line 42 of file Roomba500Interface.h.
int16_t fawkes::Roomba500Interface::angle | ( | ) | const |
Get angle value.
Turned angle in radians.
Definition at line 1057 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::battery_capacity | ( | ) | const |
Get battery_capacity value.
Battery capacity in mAh.
Definition at line 1237 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::battery_charge | ( | ) | const |
Get battery_charge value.
Battery charge in mAh.
Definition at line 1207 of file Roomba500Interface.cpp.
Roomba500Interface::ChargingState fawkes::Roomba500Interface::charging_state | ( | ) | const |
Get charging_state value.
Charging state.
Definition at line 1087 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::cliff_front_left_signal | ( | ) | const |
Get cliff_front_left_signal value.
Raw front left cliff signal.
Definition at line 1328 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::cliff_front_right_signal | ( | ) | const |
Get cliff_front_right_signal value.
Raw front right cliff signal.
Definition at line 1360 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::cliff_left_signal | ( | ) | const |
Get cliff_left_signal value.
Raw left cliff signal.
Definition at line 1297 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::cliff_right_signal | ( | ) | const |
Get cliff_right_signal value.
Raw right cliff signal.
Definition at line 1391 of file Roomba500Interface.cpp.
|
virtual |
Copy values from other interface.
other | other interface to copy values from |
Implements fawkes::Interface.
Definition at line 2329 of file Roomba500Interface.cpp.
References fawkes::Interface::type().
|
virtual |
Create message based on type name.
This will create a new message of the given type. The type must be given without the InterfaceName:: prefix but just the plain class name of the message.
type | message type |
UnknownTypeException | thrown if this interface cannot create a message of the given type. |
Implements fawkes::Interface.
Definition at line 2304 of file Roomba500Interface.cpp.
int16_t fawkes::Roomba500Interface::current | ( | ) | const |
Get current value.
Current in mA.
Definition at line 1147 of file Roomba500Interface.cpp.
int16_t fawkes::Roomba500Interface::distance | ( | ) | const |
Get distance value.
Travelled distance in m.
Definition at line 1027 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::encoder_counts_left | ( | ) | const |
Get encoder_counts_left value.
Encoder count left.
Definition at line 1665 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::encoder_counts_right | ( | ) | const |
Get encoder_counts_right value.
Encoder count right.
Definition at line 1695 of file Roomba500Interface.cpp.
|
virtual |
Convert arbitrary enum value to string.
Given the string representation of the enum type and the value this method returns the string representation of the specific value, or the string UNKNOWN if the value is not defined. An exception is thrown if the enum type is invalid.
enumtype | enum type as string |
val | value to convert |
UnknownTypeException | thrown if enumtype is not specified for interface. |
Implements fawkes::Interface.
Definition at line 2340 of file Roomba500Interface.cpp.
Roomba500Interface::InfraredCharacter fawkes::Roomba500Interface::ir_opcode_left | ( | ) | const |
Get ir_opcode_left value.
Left receiver opcode.
Definition at line 2094 of file Roomba500Interface.cpp.
Roomba500Interface::InfraredCharacter fawkes::Roomba500Interface::ir_opcode_omni | ( | ) | const |
Get ir_opcode_omni value.
Omni IR receiver code.
Definition at line 757 of file Roomba500Interface.cpp.
Roomba500Interface::InfraredCharacter fawkes::Roomba500Interface::ir_opcode_right | ( | ) | const |
Get ir_opcode_right value.
Right receiver opcode.
Definition at line 2126 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_bump_left | ( | ) | const |
Get bump_left value.
Bump on left.
Definition at line 367 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
bool fawkes::Roomba500Interface::is_bump_right | ( | ) | const |
Get bump_right value.
Bump on right.
Definition at line 397 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
bool fawkes::Roomba500Interface::is_bumper_center_left | ( | ) | const |
Get bumper_center_left value.
Center left bumper active?
Definition at line 1785 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_bumper_center_right | ( | ) | const |
Get bumper_center_right value.
Center right bumper active?
Definition at line 1815 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_bumper_front_left | ( | ) | const |
Get bumper_front_left value.
Front left bumper active?
Definition at line 1755 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_bumper_front_right | ( | ) | const |
Get bumper_front_right value.
Front right bumper active?
Definition at line 1845 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_bumper_left | ( | ) | const |
Get bumper_left value.
Left bumper active?
Definition at line 1725 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_bumper_right | ( | ) | const |
Get bumper_right value.
Right bumper active?
Definition at line 1875 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_clean | ( | ) | const |
Get button_clean value.
Clean button pressed.
Definition at line 787 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_clock | ( | ) | const |
Get button_clock value.
Clock button pressed.
Definition at line 997 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_day | ( | ) | const |
Get button_day value.
Day button pressed.
Definition at line 937 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_dock | ( | ) | const |
Get button_dock value.
Dock button pressed.
Definition at line 847 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_hour | ( | ) | const |
Get button_hour value.
Hour button pressed.
Definition at line 907 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_minute | ( | ) | const |
Get button_minute value.
Minute button pressed.
Definition at line 877 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_schedule | ( | ) | const |
Get button_schedule value.
Schedule button pressed.
Definition at line 967 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_button_spot | ( | ) | const |
Get button_spot value.
Spot button pressed.
Definition at line 817 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_caster_stasis | ( | ) | const |
Get caster_stasis value.
Caster wheel stasis.
Definition at line 2277 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_cliff_front_left | ( | ) | const |
Get cliff_front_left value.
Cliff detected front left.
Definition at line 487 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_cliff_front_right | ( | ) | const |
Get cliff_front_right value.
Cliff detected front right.
Definition at line 517 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_cliff_left | ( | ) | const |
Get cliff_left value.
Cliff detected left.
Definition at line 457 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_cliff_right | ( | ) | const |
Get cliff_right value.
Cliff detected right.
Definition at line 547 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_dirt_detect | ( | ) | const |
Get dirt_detect value.
Dirt detected?
Definition at line 727 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_home_base_charger_available | ( | ) | const |
Get home_base_charger_available value.
Home base charger available?
Definition at line 1422 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_internal_charger_available | ( | ) | const |
Get internal_charger_available value.
Internal charger available?
Definition at line 1454 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_overcurrent_left_wheel | ( | ) | const |
Get overcurrent_left_wheel value.
Overcurrent on left wheel.
Definition at line 667 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_overcurrent_main_brush | ( | ) | const |
Get overcurrent_main_brush value.
Overcurrent on main brush.
Definition at line 637 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_overcurrent_right_wheel | ( | ) | const |
Get overcurrent_right_wheel value.
Overcurrent on right wheel.
Definition at line 697 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_overcurrent_side_brush | ( | ) | const |
Get overcurrent_side_brush value.
Overcurrent on side brush.
Definition at line 607 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_song_playing | ( | ) | const |
Get song_playing value.
Song playing?
Definition at line 1515 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_virtual_wall | ( | ) | const |
Get virtual_wall value.
Virtual wall detected.
Definition at line 577 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_wall | ( | ) | const |
Get wall value.
Wall sensor.
Definition at line 427 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_wheel_drop_left | ( | ) | const |
Get wheel_drop_left value.
Left wheel drop sensor.
Definition at line 307 of file Roomba500Interface.cpp.
bool fawkes::Roomba500Interface::is_wheel_drop_right | ( | ) | const |
Get wheel_drop_right value.
Right wheel drop sensor.
Definition at line 337 of file Roomba500Interface.cpp.
int16_t fawkes::Roomba500Interface::left_motor_current | ( | ) | const |
Get left_motor_current value.
Left motor current in mA.
Definition at line 2157 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::light_bump_center_left | ( | ) | const |
Get light_bump_center_left value.
Raw center left bumper signal.
Definition at line 1968 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
uint16_t fawkes::Roomba500Interface::light_bump_center_right | ( | ) | const |
Get light_bump_center_right value.
Raw center right bumper signal.
Definition at line 2000 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
uint16_t fawkes::Roomba500Interface::light_bump_front_left | ( | ) | const |
Get light_bump_front_left value.
Raw front left bumper signal.
Definition at line 1936 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
uint16_t fawkes::Roomba500Interface::light_bump_front_right | ( | ) | const |
Get light_bump_front_right value.
Raw front right bumper signal.
Definition at line 2032 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
uint16_t fawkes::Roomba500Interface::light_bump_left | ( | ) | const |
Get light_bump_left value.
Raw left bumper signal.
Definition at line 1905 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
uint16_t fawkes::Roomba500Interface::light_bump_right | ( | ) | const |
Get light_bump_right value.
Raw right bumper signal.
Definition at line 2063 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
int16_t fawkes::Roomba500Interface::main_brush_current | ( | ) | const |
Get main_brush_current value.
Main brush current in mA.
Definition at line 2217 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_angle | ( | ) | const |
Get maximum length of angle value.
Definition at line 1067 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_battery_capacity | ( | ) | const |
Get maximum length of battery_capacity value.
Definition at line 1247 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_battery_charge | ( | ) | const |
Get maximum length of battery_charge value.
Definition at line 1217 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bump_left | ( | ) | const |
Get maximum length of bump_left value.
Definition at line 377 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bump_right | ( | ) | const |
Get maximum length of bump_right value.
Definition at line 407 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bumper_center_left | ( | ) | const |
Get maximum length of bumper_center_left value.
Definition at line 1795 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bumper_center_right | ( | ) | const |
Get maximum length of bumper_center_right value.
Definition at line 1825 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bumper_front_left | ( | ) | const |
Get maximum length of bumper_front_left value.
Definition at line 1765 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bumper_front_right | ( | ) | const |
Get maximum length of bumper_front_right value.
Definition at line 1855 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bumper_left | ( | ) | const |
Get maximum length of bumper_left value.
Definition at line 1735 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_bumper_right | ( | ) | const |
Get maximum length of bumper_right value.
Definition at line 1885 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_clean | ( | ) | const |
Get maximum length of button_clean value.
Definition at line 797 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_clock | ( | ) | const |
Get maximum length of button_clock value.
Definition at line 1007 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_day | ( | ) | const |
Get maximum length of button_day value.
Definition at line 947 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_dock | ( | ) | const |
Get maximum length of button_dock value.
Definition at line 857 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_hour | ( | ) | const |
Get maximum length of button_hour value.
Definition at line 917 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_minute | ( | ) | const |
Get maximum length of button_minute value.
Definition at line 887 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_schedule | ( | ) | const |
Get maximum length of button_schedule value.
Definition at line 977 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_button_spot | ( | ) | const |
Get maximum length of button_spot value.
Definition at line 827 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_caster_stasis | ( | ) | const |
Get maximum length of caster_stasis value.
Definition at line 2287 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_charging_state | ( | ) | const |
Get maximum length of charging_state value.
Definition at line 1097 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_front_left | ( | ) | const |
Get maximum length of cliff_front_left value.
Definition at line 497 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_front_left_signal | ( | ) | const |
Get maximum length of cliff_front_left_signal value.
Definition at line 1338 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_front_right | ( | ) | const |
Get maximum length of cliff_front_right value.
Definition at line 527 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_front_right_signal | ( | ) | const |
Get maximum length of cliff_front_right_signal value.
Definition at line 1370 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_left | ( | ) | const |
Get maximum length of cliff_left value.
Definition at line 467 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_left_signal | ( | ) | const |
Get maximum length of cliff_left_signal value.
Definition at line 1307 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_right | ( | ) | const |
Get maximum length of cliff_right value.
Definition at line 557 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_cliff_right_signal | ( | ) | const |
Get maximum length of cliff_right_signal value.
Definition at line 1401 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_current | ( | ) | const |
Get maximum length of current value.
Definition at line 1157 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_dirt_detect | ( | ) | const |
Get maximum length of dirt_detect value.
Definition at line 737 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_distance | ( | ) | const |
Get maximum length of distance value.
Definition at line 1037 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_encoder_counts_left | ( | ) | const |
Get maximum length of encoder_counts_left value.
Definition at line 1675 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_encoder_counts_right | ( | ) | const |
Get maximum length of encoder_counts_right value.
Definition at line 1705 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_home_base_charger_available | ( | ) | const |
Get maximum length of home_base_charger_available value.
Definition at line 1432 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_internal_charger_available | ( | ) | const |
Get maximum length of internal_charger_available value.
Definition at line 1464 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_ir_opcode_left | ( | ) | const |
Get maximum length of ir_opcode_left value.
Definition at line 2104 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_ir_opcode_omni | ( | ) | const |
Get maximum length of ir_opcode_omni value.
Definition at line 767 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_ir_opcode_right | ( | ) | const |
Get maximum length of ir_opcode_right value.
Definition at line 2136 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_left_motor_current | ( | ) | const |
Get maximum length of left_motor_current value.
Definition at line 2167 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_light_bump_center_left | ( | ) | const |
Get maximum length of light_bump_center_left value.
Definition at line 1978 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_light_bump_center_right | ( | ) | const |
Get maximum length of light_bump_center_right value.
Definition at line 2010 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_light_bump_front_left | ( | ) | const |
Get maximum length of light_bump_front_left value.
Definition at line 1946 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_light_bump_front_right | ( | ) | const |
Get maximum length of light_bump_front_right value.
Definition at line 2042 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_light_bump_left | ( | ) | const |
Get maximum length of light_bump_left value.
Definition at line 1915 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_light_bump_right | ( | ) | const |
Get maximum length of light_bump_right value.
Definition at line 2073 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_main_brush_current | ( | ) | const |
Get maximum length of main_brush_current value.
Definition at line 2227 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_mode | ( | ) | const |
Get maximum length of mode value.
Definition at line 287 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_overcurrent_left_wheel | ( | ) | const |
Get maximum length of overcurrent_left_wheel value.
Definition at line 677 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_overcurrent_main_brush | ( | ) | const |
Get maximum length of overcurrent_main_brush value.
Definition at line 647 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_overcurrent_right_wheel | ( | ) | const |
Get maximum length of overcurrent_right_wheel value.
Definition at line 707 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_overcurrent_side_brush | ( | ) | const |
Get maximum length of overcurrent_side_brush value.
Definition at line 617 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_radius | ( | ) | const |
Get maximum length of radius value.
Definition at line 1585 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_right_motor_current | ( | ) | const |
Get maximum length of right_motor_current value.
Definition at line 2197 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_side_brush_current | ( | ) | const |
Get maximum length of side_brush_current value.
Definition at line 2257 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_song_number | ( | ) | const |
Get maximum length of song_number value.
Definition at line 1495 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_song_playing | ( | ) | const |
Get maximum length of song_playing value.
Definition at line 1525 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_temperature | ( | ) | const |
Get maximum length of temperature value.
Definition at line 1187 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_velocity | ( | ) | const |
Get maximum length of velocity value.
Definition at line 1555 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_velocity_left | ( | ) | const |
Get maximum length of velocity_left value.
Definition at line 1645 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_velocity_right | ( | ) | const |
Get maximum length of velocity_right value.
Definition at line 1615 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_virtual_wall | ( | ) | const |
Get maximum length of virtual_wall value.
Definition at line 587 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_voltage | ( | ) | const |
Get maximum length of voltage value.
Definition at line 1127 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_wall | ( | ) | const |
Get maximum length of wall value.
Definition at line 437 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_wall_signal | ( | ) | const |
Get maximum length of wall_signal value.
Definition at line 1277 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_wheel_drop_left | ( | ) | const |
Get maximum length of wheel_drop_left value.
Definition at line 317 of file Roomba500Interface.cpp.
size_t fawkes::Roomba500Interface::maxlenof_wheel_drop_right | ( | ) | const |
Get maximum length of wheel_drop_right value.
Definition at line 347 of file Roomba500Interface.cpp.
|
virtual |
Check if message is valid and can be enqueued.
message | Message to check |
Implements fawkes::Interface.
Definition at line 3377 of file Roomba500Interface.cpp.
Roomba500Interface::Mode fawkes::Roomba500Interface::mode | ( | ) | const |
Get mode value.
Open Interface mode.
Definition at line 277 of file Roomba500Interface.cpp.
Referenced by RoombaJoystickThread::loop().
int16_t fawkes::Roomba500Interface::radius | ( | ) | const |
Get radius value.
Requested radius in mm.
Definition at line 1575 of file Roomba500Interface.cpp.
int16_t fawkes::Roomba500Interface::right_motor_current | ( | ) | const |
Get right_motor_current value.
Right motor current in mA.
Definition at line 2187 of file Roomba500Interface.cpp.
void fawkes::Roomba500Interface::set_angle | ( | const int16_t | new_angle | ) |
Set angle value.
Turned angle in radians.
new_angle | new angle value |
Definition at line 1077 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_battery_capacity | ( | const uint16_t | new_battery_capacity | ) |
Set battery_capacity value.
Battery capacity in mAh.
new_battery_capacity | new battery_capacity value |
Definition at line 1257 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_battery_charge | ( | const uint16_t | new_battery_charge | ) |
Set battery_charge value.
Battery charge in mAh.
new_battery_charge | new battery_charge value |
Definition at line 1227 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bump_left | ( | const bool | new_bump_left | ) |
Set bump_left value.
Bump on left.
new_bump_left | new bump_left value |
Definition at line 387 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bump_right | ( | const bool | new_bump_right | ) |
Set bump_right value.
Bump on right.
new_bump_right | new bump_right value |
Definition at line 417 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bumper_center_left | ( | const bool | new_bumper_center_left | ) |
Set bumper_center_left value.
Center left bumper active?
new_bumper_center_left | new bumper_center_left value |
Definition at line 1805 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bumper_center_right | ( | const bool | new_bumper_center_right | ) |
Set bumper_center_right value.
Center right bumper active?
new_bumper_center_right | new bumper_center_right value |
Definition at line 1835 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bumper_front_left | ( | const bool | new_bumper_front_left | ) |
Set bumper_front_left value.
Front left bumper active?
new_bumper_front_left | new bumper_front_left value |
Definition at line 1775 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bumper_front_right | ( | const bool | new_bumper_front_right | ) |
Set bumper_front_right value.
Front right bumper active?
new_bumper_front_right | new bumper_front_right value |
Definition at line 1865 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bumper_left | ( | const bool | new_bumper_left | ) |
Set bumper_left value.
Left bumper active?
new_bumper_left | new bumper_left value |
Definition at line 1745 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_bumper_right | ( | const bool | new_bumper_right | ) |
Set bumper_right value.
Right bumper active?
new_bumper_right | new bumper_right value |
Definition at line 1895 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_clean | ( | const bool | new_button_clean | ) |
Set button_clean value.
Clean button pressed.
new_button_clean | new button_clean value |
Definition at line 807 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_clock | ( | const bool | new_button_clock | ) |
Set button_clock value.
Clock button pressed.
new_button_clock | new button_clock value |
Definition at line 1017 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_day | ( | const bool | new_button_day | ) |
Set button_day value.
Day button pressed.
new_button_day | new button_day value |
Definition at line 957 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_dock | ( | const bool | new_button_dock | ) |
Set button_dock value.
Dock button pressed.
new_button_dock | new button_dock value |
Definition at line 867 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_hour | ( | const bool | new_button_hour | ) |
Set button_hour value.
Hour button pressed.
new_button_hour | new button_hour value |
Definition at line 927 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_minute | ( | const bool | new_button_minute | ) |
Set button_minute value.
Minute button pressed.
new_button_minute | new button_minute value |
Definition at line 897 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_schedule | ( | const bool | new_button_schedule | ) |
Set button_schedule value.
Schedule button pressed.
new_button_schedule | new button_schedule value |
Definition at line 987 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_button_spot | ( | const bool | new_button_spot | ) |
Set button_spot value.
Spot button pressed.
new_button_spot | new button_spot value |
Definition at line 837 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_caster_stasis | ( | const bool | new_caster_stasis | ) |
Set caster_stasis value.
Caster wheel stasis.
new_caster_stasis | new caster_stasis value |
Definition at line 2297 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_charging_state | ( | const ChargingState | new_charging_state | ) |
Set charging_state value.
Charging state.
new_charging_state | new charging_state value |
Definition at line 1107 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_front_left | ( | const bool | new_cliff_front_left | ) |
Set cliff_front_left value.
Cliff detected front left.
new_cliff_front_left | new cliff_front_left value |
Definition at line 507 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_front_left_signal | ( | const uint16_t | new_cliff_front_left_signal | ) |
Set cliff_front_left_signal value.
Raw front left cliff signal.
new_cliff_front_left_signal | new cliff_front_left_signal value |
Definition at line 1349 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_front_right | ( | const bool | new_cliff_front_right | ) |
Set cliff_front_right value.
Cliff detected front right.
new_cliff_front_right | new cliff_front_right value |
Definition at line 537 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_front_right_signal | ( | const uint16_t | new_cliff_front_right_signal | ) |
Set cliff_front_right_signal value.
Raw front right cliff signal.
new_cliff_front_right_signal | new cliff_front_right_signal value |
Definition at line 1381 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_left | ( | const bool | new_cliff_left | ) |
Set cliff_left value.
Cliff detected left.
new_cliff_left | new cliff_left value |
Definition at line 477 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_left_signal | ( | const uint16_t | new_cliff_left_signal | ) |
Set cliff_left_signal value.
Raw left cliff signal.
new_cliff_left_signal | new cliff_left_signal value |
Definition at line 1317 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_right | ( | const bool | new_cliff_right | ) |
Set cliff_right value.
Cliff detected right.
new_cliff_right | new cliff_right value |
Definition at line 567 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_cliff_right_signal | ( | const uint16_t | new_cliff_right_signal | ) |
Set cliff_right_signal value.
Raw right cliff signal.
new_cliff_right_signal | new cliff_right_signal value |
Definition at line 1411 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_current | ( | const int16_t | new_current | ) |
Set current value.
Current in mA.
new_current | new current value |
Definition at line 1167 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_dirt_detect | ( | const bool | new_dirt_detect | ) |
Set dirt_detect value.
Dirt detected?
new_dirt_detect | new dirt_detect value |
Definition at line 747 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_distance | ( | const int16_t | new_distance | ) |
Set distance value.
Travelled distance in m.
new_distance | new distance value |
Definition at line 1047 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_encoder_counts_left | ( | const uint16_t | new_encoder_counts_left | ) |
Set encoder_counts_left value.
Encoder count left.
new_encoder_counts_left | new encoder_counts_left value |
Definition at line 1685 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_encoder_counts_right | ( | const uint16_t | new_encoder_counts_right | ) |
Set encoder_counts_right value.
Encoder count right.
new_encoder_counts_right | new encoder_counts_right value |
Definition at line 1715 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_home_base_charger_available | ( | const bool | new_home_base_charger_available | ) |
Set home_base_charger_available value.
Home base charger available?
new_home_base_charger_available | new home_base_charger_available value |
Definition at line 1443 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_internal_charger_available | ( | const bool | new_internal_charger_available | ) |
Set internal_charger_available value.
Internal charger available?
new_internal_charger_available | new internal_charger_available value |
Definition at line 1475 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_ir_opcode_left | ( | const InfraredCharacter | new_ir_opcode_left | ) |
Set ir_opcode_left value.
Left receiver opcode.
new_ir_opcode_left | new ir_opcode_left value |
Definition at line 2115 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_ir_opcode_omni | ( | const InfraredCharacter | new_ir_opcode_omni | ) |
Set ir_opcode_omni value.
Omni IR receiver code.
new_ir_opcode_omni | new ir_opcode_omni value |
Definition at line 777 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_ir_opcode_right | ( | const InfraredCharacter | new_ir_opcode_right | ) |
Set ir_opcode_right value.
Right receiver opcode.
new_ir_opcode_right | new ir_opcode_right value |
Definition at line 2147 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_left_motor_current | ( | const int16_t | new_left_motor_current | ) |
Set left_motor_current value.
Left motor current in mA.
new_left_motor_current | new left_motor_current value |
Definition at line 2177 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_light_bump_center_left | ( | const uint16_t | new_light_bump_center_left | ) |
Set light_bump_center_left value.
Raw center left bumper signal.
new_light_bump_center_left | new light_bump_center_left value |
Definition at line 1989 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_light_bump_center_right | ( | const uint16_t | new_light_bump_center_right | ) |
Set light_bump_center_right value.
Raw center right bumper signal.
new_light_bump_center_right | new light_bump_center_right value |
Definition at line 2021 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_light_bump_front_left | ( | const uint16_t | new_light_bump_front_left | ) |
Set light_bump_front_left value.
Raw front left bumper signal.
new_light_bump_front_left | new light_bump_front_left value |
Definition at line 1957 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_light_bump_front_right | ( | const uint16_t | new_light_bump_front_right | ) |
Set light_bump_front_right value.
Raw front right bumper signal.
new_light_bump_front_right | new light_bump_front_right value |
Definition at line 2053 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_light_bump_left | ( | const uint16_t | new_light_bump_left | ) |
Set light_bump_left value.
Raw left bumper signal.
new_light_bump_left | new light_bump_left value |
Definition at line 1925 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_light_bump_right | ( | const uint16_t | new_light_bump_right | ) |
Set light_bump_right value.
Raw right bumper signal.
new_light_bump_right | new light_bump_right value |
Definition at line 2083 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_main_brush_current | ( | const int16_t | new_main_brush_current | ) |
Set main_brush_current value.
Main brush current in mA.
new_main_brush_current | new main_brush_current value |
Definition at line 2237 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_mode | ( | const Mode | new_mode | ) |
Set mode value.
Open Interface mode.
new_mode | new mode value |
Definition at line 297 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_overcurrent_left_wheel | ( | const bool | new_overcurrent_left_wheel | ) |
Set overcurrent_left_wheel value.
Overcurrent on left wheel.
new_overcurrent_left_wheel | new overcurrent_left_wheel value |
Definition at line 687 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_overcurrent_main_brush | ( | const bool | new_overcurrent_main_brush | ) |
Set overcurrent_main_brush value.
Overcurrent on main brush.
new_overcurrent_main_brush | new overcurrent_main_brush value |
Definition at line 657 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_overcurrent_right_wheel | ( | const bool | new_overcurrent_right_wheel | ) |
Set overcurrent_right_wheel value.
Overcurrent on right wheel.
new_overcurrent_right_wheel | new overcurrent_right_wheel value |
Definition at line 717 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_overcurrent_side_brush | ( | const bool | new_overcurrent_side_brush | ) |
Set overcurrent_side_brush value.
Overcurrent on side brush.
new_overcurrent_side_brush | new overcurrent_side_brush value |
Definition at line 627 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_radius | ( | const int16_t | new_radius | ) |
Set radius value.
Requested radius in mm.
new_radius | new radius value |
Definition at line 1595 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_right_motor_current | ( | const int16_t | new_right_motor_current | ) |
Set right_motor_current value.
Right motor current in mA.
new_right_motor_current | new right_motor_current value |
Definition at line 2207 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_side_brush_current | ( | const int16_t | new_side_brush_current | ) |
Set side_brush_current value.
Side brush current in mA.
new_side_brush_current | new side_brush_current value |
Definition at line 2267 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_song_number | ( | const uint8_t | new_song_number | ) |
Set song_number value.
Song number.
new_song_number | new song_number value |
Definition at line 1505 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_song_playing | ( | const bool | new_song_playing | ) |
Set song_playing value.
Song playing?
new_song_playing | new song_playing value |
Definition at line 1535 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_temperature | ( | const int8_t | new_temperature | ) |
Set temperature value.
Temperature in degree Celsius.
new_temperature | new temperature value |
Definition at line 1197 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_velocity | ( | const int16_t | new_velocity | ) |
Set velocity value.
Requested velocity in mm/s.
new_velocity | new velocity value |
Definition at line 1565 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_velocity_left | ( | const int16_t | new_velocity_left | ) |
Set velocity_left value.
Requested right velocity in mm/s.
new_velocity_left | new velocity_left value |
Definition at line 1655 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_velocity_right | ( | const int16_t | new_velocity_right | ) |
Set velocity_right value.
Requested left velocity in mm/s.
new_velocity_right | new velocity_right value |
Definition at line 1625 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_virtual_wall | ( | const bool | new_virtual_wall | ) |
Set virtual_wall value.
Virtual wall detected.
new_virtual_wall | new virtual_wall value |
Definition at line 597 of file Roomba500Interface.cpp.
void fawkes::Roomba500Interface::set_voltage | ( | const uint16_t | new_voltage | ) |
Set voltage value.
Voltage in mV.
new_voltage | new voltage value |
Definition at line 1137 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_wall | ( | const bool | new_wall | ) |
Set wall value.
Wall sensor.
new_wall | new wall value |
Definition at line 447 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_wall_signal | ( | const uint16_t | new_wall_signal | ) |
Set wall_signal value.
Raw wall signal
new_wall_signal | new wall_signal value |
Definition at line 1287 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_wheel_drop_left | ( | const bool | new_wheel_drop_left | ) |
Set wheel_drop_left value.
Left wheel drop sensor.
new_wheel_drop_left | new wheel_drop_left value |
Definition at line 327 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
void fawkes::Roomba500Interface::set_wheel_drop_right | ( | const bool | new_wheel_drop_right | ) |
Set wheel_drop_right value.
Right wheel drop sensor.
new_wheel_drop_right | new wheel_drop_right value |
Definition at line 357 of file Roomba500Interface.cpp.
Referenced by Roomba500Thread::write_blackboard().
int16_t fawkes::Roomba500Interface::side_brush_current | ( | ) | const |
Get side_brush_current value.
Side brush current in mA.
Definition at line 2247 of file Roomba500Interface.cpp.
uint8_t fawkes::Roomba500Interface::song_number | ( | ) | const |
Get song_number value.
Song number.
Definition at line 1485 of file Roomba500Interface.cpp.
int8_t fawkes::Roomba500Interface::temperature | ( | ) | const |
Get temperature value.
Temperature in degree Celsius.
Definition at line 1177 of file Roomba500Interface.cpp.
const char * fawkes::Roomba500Interface::tostring_BrushState | ( | BrushState | value | ) | const |
Convert BrushState constant to string.
value | value to convert to string |
Definition at line 262 of file Roomba500Interface.cpp.
const char * fawkes::Roomba500Interface::tostring_ChargingState | ( | ChargingState | value | ) | const |
Convert ChargingState constant to string.
value | value to convert to string |
Definition at line 245 of file Roomba500Interface.cpp.
const char * fawkes::Roomba500Interface::tostring_InfraredCharacter | ( | InfraredCharacter | value | ) | const |
Convert InfraredCharacter constant to string.
value | value to convert to string |
Definition at line 201 of file Roomba500Interface.cpp.
const char * fawkes::Roomba500Interface::tostring_Mode | ( | Mode | value | ) | const |
Convert Mode constant to string.
value | value to convert to string |
Definition at line 186 of file Roomba500Interface.cpp.
int16_t fawkes::Roomba500Interface::velocity | ( | ) | const |
Get velocity value.
Requested velocity in mm/s.
Definition at line 1545 of file Roomba500Interface.cpp.
int16_t fawkes::Roomba500Interface::velocity_left | ( | ) | const |
Get velocity_left value.
Requested right velocity in mm/s.
Definition at line 1635 of file Roomba500Interface.cpp.
int16_t fawkes::Roomba500Interface::velocity_right | ( | ) | const |
Get velocity_right value.
Requested left velocity in mm/s.
Definition at line 1605 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::voltage | ( | ) | const |
Get voltage value.
Voltage in mV.
Definition at line 1117 of file Roomba500Interface.cpp.
uint16_t fawkes::Roomba500Interface::wall_signal | ( | ) | const |
Get wall_signal value.
Raw wall signal
Definition at line 1267 of file Roomba500Interface.cpp.