fawkes::MotorInterface::RotMessage Class Reference

RotMessage Fawkes BlackBoard Interface Message. More...

#include <interfaces/MotorInterface.h>

Inheritance diagram for fawkes::MotorInterface::RotMessage:

[legend]
List of all members.

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.

Classes

struct  RotMessage_data_t
 Internal data storage, do NOT modify!

Detailed Description

RotMessage Fawkes BlackBoard Interface Message.

Definition at line 301 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 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.

Parameters:
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.


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.

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


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:31:35 2011 for Fawkes API by  doxygen 1.4.7