SetMotorStateMessage Fawkes BlackBoard Interface Message. More...
#include <interfaces/MotorInterface.h>
Classes | |
struct | SetMotorStateMessage_data_t |
Internal data storage, do NOT modify! | |
Public Member Functions | |
SetMotorStateMessage (const uint32_t ini_motor_state) | |
Constructor with initial values. | |
SetMotorStateMessage () | |
Constructor. | |
~SetMotorStateMessage () | |
Destructor. | |
SetMotorStateMessage (const SetMotorStateMessage *m) | |
Copy constructor. | |
uint32_t | motor_state () const |
Get motor_state value. | |
void | set_motor_state (const uint32_t new_motor_state) |
Set motor_state value. | |
size_t | maxlenof_motor_state () const |
Get maximum length of motor_state value. | |
virtual Message * | clone () const |
Clone this message. |
SetMotorStateMessage Fawkes BlackBoard Interface Message.
Definition at line 107 of file MotorInterface.h.
fawkes::MotorInterface::SetMotorStateMessage::SetMotorStateMessage | ( | const uint32_t | ini_motor_state | ) |
Constructor with initial values.
ini_motor_state | initial value for motor_state |
Definition at line 659 of file MotorInterface.cpp.
References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, fawkes::Message::data_ts, and fawkes::IFT_UINT32.
fawkes::MotorInterface::SetMotorStateMessage::SetMotorStateMessage | ( | ) |
Constructor.
Definition at line 670 of file MotorInterface.cpp.
References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, fawkes::Message::data_ts, and fawkes::IFT_UINT32.
Referenced by clone().
fawkes::MotorInterface::SetMotorStateMessage::~SetMotorStateMessage | ( | ) |
Destructor.
Definition at line 681 of file MotorInterface.cpp.
References fawkes::Message::data_ptr.
fawkes::MotorInterface::SetMotorStateMessage::SetMotorStateMessage | ( | const SetMotorStateMessage * | m | ) |
Copy constructor.
m | message to copy from |
Definition at line 689 of file MotorInterface.cpp.
References fawkes::Message::data_ptr, fawkes::Message::data_size, and fawkes::Message::data_ts.
Message * fawkes::MotorInterface::SetMotorStateMessage::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 739 of file MotorInterface.cpp.
References SetMotorStateMessage().
size_t fawkes::MotorInterface::SetMotorStateMessage::maxlenof_motor_state | ( | ) | const |
Get maximum length of motor_state value.
Definition at line 716 of file MotorInterface.cpp.
uint32_t fawkes::MotorInterface::SetMotorStateMessage::motor_state | ( | ) | const |
Get motor_state value.
The new motor state to set. Use the MOTOR_* constants.
Definition at line 706 of file MotorInterface.cpp.
Referenced by PlayerMotorPositionMapper::sync_fawkes_to_player().
void fawkes::MotorInterface::SetMotorStateMessage::set_motor_state | ( | const uint32_t | new_motor_state | ) |
Set motor_state value.
The new motor state to set. Use the MOTOR_* constants.
new_motor_state | new motor_state value |
Definition at line 728 of file MotorInterface.cpp.