Fawkes API  Fawkes Development Version
fawkes::MotorInterface::RotMessage Class Reference

RotMessage Fawkes BlackBoard Interface Message. More...

#include <>>

Inheritance diagram for fawkes::MotorInterface::RotMessage:

List of all members.

Classes

struct  RotMessage_data_t
 Internal data storage, do NOT modify! More...

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 Messageclone () const
 Clone this message.

Detailed Description


Constructor & Destructor Documentation

fawkes::MotorInterface::RotMessage::RotMessage ( const float  ini_omega)
fawkes::MotorInterface::RotMessage::~RotMessage ( )

Destructor.

Definition at line 1433 of file MotorInterface.cpp.

References fawkes::Interface::data_ptr.

fawkes::MotorInterface::RotMessage::RotMessage ( const RotMessage m)

Copy constructor.

Parameters:
mmessage to copy from

Definition at line 1441 of file MotorInterface.cpp.

References fawkes::Message::data_size, fawkes::Message::data_ptr, and fawkes::Message::data_ts.


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 1487 of file MotorInterface.cpp.

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 1466 of file MotorInterface.cpp.

float fawkes::MotorInterface::RotMessage::omega ( ) const

Get omega value.

Angle rotation in rad/s.

Returns:
omega value

Definition at line 1456 of file MotorInterface.cpp.

References fawkes::MotorInterface::MotorInterface_data_t::omega.

void fawkes::MotorInterface::RotMessage::set_omega ( const float  new_omega)

Set omega value.

Angle rotation in rad/s.

Parameters:
new_omeganew omega value

Definition at line 1476 of file MotorInterface.cpp.

References fawkes::MotorInterface::MotorInterface_data_t::omega.


The documentation for this class was generated from the following files: