fawkes::MotorInterface::RotMessage Class Reference
RotMessage Fawkes BlackBoard Interface Message. More...
#include <interfaces/MotorInterface.h>

Classes | |
| struct | RotMessage_data_t |
| Internal data storage, do NOT modify! | |
Public Member Functions | |
| RotMessage (const float ini_omega) | |
| Constructor with initial values. | |
| RotMessage () | |
| Constructor. | |
| ~RotMessage () | |
| Destructor. | |
| RotMessage (const RotMessage *m) | |
| Copy constructor. | |
| float | omega () const |
| Get omega value. | |
| void | set_omega (const float new_omega) |
| Set omega value. | |
| size_t | maxlenof_omega () const |
| Get maximum length of omega value. | |
| virtual Message * | clone () const |
| Clone this message. | |
Detailed Description
RotMessage Fawkes BlackBoard Interface Message.Definition at line 266 of file MotorInterface.h.
Constructor & Destructor Documentation
| fawkes::MotorInterface::RotMessage::RotMessage | ( | const float | ini_omega | ) |
Constructor with initial values.
- Parameters:
-
ini_omega initial value for omega
Definition at line 1368 of file MotorInterface.cpp.
References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, and fawkes::IFT_FLOAT.
| fawkes::MotorInterface::RotMessage::RotMessage | ( | ) |
Constructor.
Definition at line 1378 of file MotorInterface.cpp.
References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, and fawkes::IFT_FLOAT.
Referenced by clone().
| fawkes::MotorInterface::RotMessage::~RotMessage | ( | ) |
Destructor.
Definition at line 1388 of file MotorInterface.cpp.
References fawkes::Message::data_ptr.
| fawkes::MotorInterface::RotMessage::RotMessage | ( | const RotMessage * | m | ) |
Copy constructor.
- Parameters:
-
m message to copy from
Definition at line 1396 of file MotorInterface.cpp.
References fawkes::Message::data_ptr, and fawkes::Message::data_size.
Member Function Documentation
| Message * fawkes::MotorInterface::RotMessage::clone | ( | ) | const [virtual] |
Clone this message.
Produces a message of the same type as this message and copies the data to the new message.
- Returns:
- clone of this message
Reimplemented from fawkes::Message.
Definition at line 1441 of file MotorInterface.cpp.
References RotMessage().
| size_t fawkes::MotorInterface::RotMessage::maxlenof_omega | ( | ) | const |
Get maximum length of omega value.
- Returns:
- length of omega value, can be length of the array or number of maximum number of characters for a string
Definition at line 1420 of file MotorInterface.cpp.
| float fawkes::MotorInterface::RotMessage::omega | ( | ) | const |
Get omega value.
Angle rotation in rad/s.
- Returns:
- omega value
Definition at line 1410 of file MotorInterface.cpp.
| void fawkes::MotorInterface::RotMessage::set_omega | ( | const float | new_omega | ) |
Set omega value.
Angle rotation in rad/s.
- Parameters:
-
new_omega new omega value
Definition at line 1430 of file MotorInterface.cpp.
The documentation for this class was generated from the following files:
- src/interfaces/MotorInterface.h
- src/interfaces/MotorInterface.cpp

