#include <interfaces/MotorInterface.h>
Inheritance diagram for fawkes::MotorInterface::RotMessage:
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. | |
Classes | |
struct | RotMessage_data_t |
Internal data storage, do NOT modify! |
Definition at line 301 of file MotorInterface.h.
fawkes::MotorInterface::RotMessage::RotMessage | ( | const float | ini_omega | ) |
Constructor with initial values.
ini_omega | initial value for omega |
Definition at line 1411 of file MotorInterface.cpp.
References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, fawkes::Message::data_ts, and fawkes::IFT_FLOAT.
fawkes::MotorInterface::RotMessage::RotMessage | ( | ) |
Constructor.
Definition at line 1422 of file MotorInterface.cpp.
References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, fawkes::Message::data_ts, and fawkes::IFT_FLOAT.
fawkes::MotorInterface::RotMessage::~RotMessage | ( | ) |
Destructor.
Definition at line 1433 of file MotorInterface.cpp.
References fawkes::Message::data_ptr.
fawkes::MotorInterface::RotMessage::RotMessage | ( | const RotMessage * | m | ) |
Copy constructor.
m | message to copy from |
Definition at line 1441 of file MotorInterface.cpp.
References fawkes::Message::data_ptr, fawkes::Message::data_size, and fawkes::Message::data_ts.
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.
Reimplemented from fawkes::Message.
Definition at line 1487 of file MotorInterface.cpp.
size_t fawkes::MotorInterface::RotMessage::maxlenof_omega | ( | ) | const |
Get maximum length of omega value.
Definition at line 1466 of file MotorInterface.cpp.
float fawkes::MotorInterface::RotMessage::omega | ( | ) | const |
Get omega value.
Angle rotation in rad/s.
Definition at line 1456 of file MotorInterface.cpp.
void fawkes::MotorInterface::RotMessage::set_omega | ( | const float | new_omega | ) |
Set omega value.
Angle rotation in rad/s.
new_omega | new omega value |
Definition at line 1476 of file MotorInterface.cpp.