|
Fawkes API
Fawkes Development Version
|
DriveMessage Fawkes BlackBoard Interface Message. More...
#include <>>

Classes | |
| struct | DriveMessage_data_t |
| Internal data storage, do NOT modify! More... | |
Public Member Functions | |
| DriveMessage (const int16_t ini_velocity, const int16_t ini_radius) | |
| Constructor with initial values. | |
| DriveMessage () | |
| Constructor. | |
| ~DriveMessage () | |
| Destructor. | |
| DriveMessage (const DriveMessage *m) | |
| Copy constructor. | |
| int16_t | velocity () const |
| Get velocity value. | |
| void | set_velocity (const int16_t new_velocity) |
| Set velocity value. | |
| size_t | maxlenof_velocity () const |
| Get maximum length of velocity value. | |
| int16_t | radius () const |
| Get radius value. | |
| void | set_radius (const int16_t new_radius) |
| Set radius value. | |
| size_t | maxlenof_radius () const |
| Get maximum length of radius value. | |
| virtual Message * | clone () const |
| Clone this message. | |
DriveMessage Fawkes BlackBoard Interface Message.
| fawkes::Roomba500Interface::DriveMessage::DriveMessage | ( | const int16_t | ini_velocity, |
| const int16_t | ini_radius | ||
| ) |
Constructor with initial values.
| ini_velocity | initial value for velocity |
| ini_radius | initial value for radius |
Definition at line 2660 of file Roomba500Interface.cpp.
References fawkes::Message::data_size, fawkes::Message::data_ptr, fawkes::Message::data_ts, fawkes::Roomba500Interface::DriveMessage::DriveMessage_data_t::velocity, fawkes::Roomba500Interface::DriveMessage::DriveMessage_data_t::radius, fawkes::Message::add_fieldinfo(), and fawkes::IFT_INT16.
| fawkes::Roomba500Interface::DriveMessage::DriveMessage | ( | ) |
Constructor.
Definition at line 2673 of file Roomba500Interface.cpp.
References fawkes::Message::data_size, fawkes::Message::data_ptr, fawkes::Message::data_ts, fawkes::Message::add_fieldinfo(), fawkes::IFT_INT16, fawkes::Roomba500Interface::DriveMessage::DriveMessage_data_t::velocity, and fawkes::Roomba500Interface::DriveMessage::DriveMessage_data_t::radius.
| fawkes::Roomba500Interface::DriveMessage::~DriveMessage | ( | ) |
Destructor.
Definition at line 2685 of file Roomba500Interface.cpp.
References fawkes::Interface::data_ptr.
| fawkes::Roomba500Interface::DriveMessage::DriveMessage | ( | const DriveMessage * | m | ) |
Copy constructor.
| m | message to copy from |
Definition at line 2693 of file Roomba500Interface.cpp.
References fawkes::Message::data_size, fawkes::Message::data_ptr, and fawkes::Message::data_ts.
| Message * fawkes::Roomba500Interface::DriveMessage::clone | ( | ) | const [virtual] |
Clone this message.
Produces a message of the same type as this message and copies the data to the new message.
Reimplemented from fawkes::Message.
Definition at line 2769 of file Roomba500Interface.cpp.
| size_t fawkes::Roomba500Interface::DriveMessage::maxlenof_radius | ( | ) | const |
Get maximum length of radius value.
Definition at line 2748 of file Roomba500Interface.cpp.
| size_t fawkes::Roomba500Interface::DriveMessage::maxlenof_velocity | ( | ) | const |
Get maximum length of velocity value.
Definition at line 2718 of file Roomba500Interface.cpp.
| int16_t fawkes::Roomba500Interface::DriveMessage::radius | ( | ) | const |
Get radius value.
Requested radius in mm.
Definition at line 2738 of file Roomba500Interface.cpp.
References fawkes::Roomba500Interface::Roomba500Interface_data_t::radius.
Referenced by Roomba500Thread::loop().
| void fawkes::Roomba500Interface::DriveMessage::set_radius | ( | const int16_t | new_radius | ) |
Set radius value.
Requested radius in mm.
| new_radius | new radius value |
Definition at line 2758 of file Roomba500Interface.cpp.
References fawkes::Roomba500Interface::Roomba500Interface_data_t::radius.
| void fawkes::Roomba500Interface::DriveMessage::set_velocity | ( | const int16_t | new_velocity | ) |
Set velocity value.
Requested velocity in mm/s.
| new_velocity | new velocity value |
Definition at line 2728 of file Roomba500Interface.cpp.
References fawkes::Roomba500Interface::Roomba500Interface_data_t::velocity.
| int16_t fawkes::Roomba500Interface::DriveMessage::velocity | ( | ) | const |
Get velocity value.
Requested velocity in mm/s.
Definition at line 2708 of file Roomba500Interface.cpp.
References fawkes::Roomba500Interface::Roomba500Interface_data_t::velocity.
Referenced by Roomba500Thread::loop().