Classes | Public Member Functions

fawkes::PanTiltInterface::GotoMessage Class Reference

GotoMessage Fawkes BlackBoard Interface Message. More...

#include <>>

Inheritance diagram for fawkes::PanTiltInterface::GotoMessage:
Inheritance graph
[legend]

List of all members.

Classes

struct  GotoMessage_data_t
 Internal data storage, do NOT modify!

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

GotoMessage Fawkes BlackBoard Interface Message.

Definition at line 173 of file PanTiltInterface.h.


Constructor & Destructor Documentation

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

Constructor with initial values.

Parameters:
ini_pan initial value for pan
ini_tilt initial value for tilt

Definition at line 917 of file PanTiltInterface.cpp.

References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, fawkes::Message::data_ts, and fawkes::IFT_FLOAT.

fawkes::PanTiltInterface::GotoMessage::GotoMessage (  ) 
fawkes::PanTiltInterface::GotoMessage::~GotoMessage (  ) 

Destructor.

Definition at line 942 of file PanTiltInterface.cpp.

References fawkes::Message::data_ptr.

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

Copy constructor.

Parameters:
m message to copy from

Definition at line 950 of file PanTiltInterface.cpp.

References fawkes::Message::data_ptr, fawkes::Message::data_size, 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.

References GotoMessage().

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

Get pan value.

Current pan.

Returns:
pan value

Definition at line 965 of file PanTiltInterface.cpp.

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

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

Set pan value.

Current pan.

Parameters:
new_pan new pan value

Definition at line 985 of file PanTiltInterface.cpp.

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

Set tilt value.

Current tilt.

Parameters:
new_tilt new tilt value

Definition at line 1015 of file PanTiltInterface.cpp.

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

Get tilt value.

Current tilt.

Returns:
tilt value

Definition at line 995 of file PanTiltInterface.cpp.

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


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