Fawkes API  Fawkes Development Version
fawkes::PanTiltInterface::GotoMessage Class Reference

GotoMessage Fawkes BlackBoard Interface Message. More...

#include <>>

Inheritance diagram for fawkes::PanTiltInterface::GotoMessage:

List of all members.

Classes

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

Public Member Functions

 GotoMessage (const float ini_pan, const float ini_tilt)
 Constructor with initial values.
 GotoMessage ()
 Constructor.
 ~GotoMessage ()
 Destructor.
 GotoMessage (const GotoMessage *m)
 Copy constructor.
float pan () const
 Get pan value.
void set_pan (const float new_pan)
 Set pan value.
size_t maxlenof_pan () const
 Get maximum length of pan value.
float tilt () const
 Get tilt value.
void set_tilt (const float new_tilt)
 Set tilt value.
size_t maxlenof_tilt () const
 Get maximum length of tilt value.
virtual Messageclone () const
 Clone this message.

Detailed Description


Constructor & Destructor Documentation

fawkes::PanTiltInterface::GotoMessage::GotoMessage ( const float  ini_pan,
const float  ini_tilt 
)
fawkes::PanTiltInterface::GotoMessage::~GotoMessage ( )

Destructor.

Definition at line 942 of file PanTiltInterface.cpp.

References fawkes::Interface::data_ptr.

fawkes::PanTiltInterface::GotoMessage::GotoMessage ( const GotoMessage m)

Copy constructor.

Parameters:
mmessage to copy from

Definition at line 950 of file PanTiltInterface.cpp.

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


Member Function Documentation

Message * fawkes::PanTiltInterface::GotoMessage::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 1026 of file PanTiltInterface.cpp.

size_t fawkes::PanTiltInterface::GotoMessage::maxlenof_pan ( ) const

Get maximum length of pan value.

Returns:
length of pan value, can be length of the array or number of maximum number of characters for a string

Definition at line 975 of file PanTiltInterface.cpp.

size_t fawkes::PanTiltInterface::GotoMessage::maxlenof_tilt ( ) const

Get maximum length of tilt value.

Returns:
length of tilt value, can be length of the array or number of maximum number of characters for a string

Definition at line 1005 of file PanTiltInterface.cpp.

float fawkes::PanTiltInterface::GotoMessage::pan ( ) const
void fawkes::PanTiltInterface::GotoMessage::set_pan ( const float  new_pan)

Set pan value.

Current pan.

Parameters:
new_pannew pan value

Definition at line 985 of file PanTiltInterface.cpp.

References fawkes::PanTiltInterface::PanTiltInterface_data_t::pan.

void fawkes::PanTiltInterface::GotoMessage::set_tilt ( const float  new_tilt)

Set tilt value.

Current tilt.

Parameters:
new_tiltnew tilt value

Definition at line 1015 of file PanTiltInterface.cpp.

References fawkes::PanTiltInterface::PanTiltInterface_data_t::tilt.

float fawkes::PanTiltInterface::GotoMessage::tilt ( ) const

Get tilt value.

Current tilt.

Returns:
tilt value

Definition at line 995 of file PanTiltInterface.cpp.

References fawkes::PanTiltInterface::PanTiltInterface_data_t::tilt.

Referenced by PanTiltDirectedPerceptionThread::loop(), PanTiltRX28Thread::loop(), and PanTiltSonyEviD100PThread::loop().


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