fawkes::NavigatorInterface::PolarGotoMessage Class Reference

PolarGotoMessage Fawkes BlackBoard Interface Message. More...

#include <interfaces/NavigatorInterface.h>

Inheritance diagram for fawkes::NavigatorInterface::PolarGotoMessage:

[legend]
List of all members.

Public Member Functions

 PolarGotoMessage (const float ini_phi, const float ini_dist, const float ini_orientation)
 Constructor with initial values.
 PolarGotoMessage ()
 Constructor.
 ~PolarGotoMessage ()
 Destructor.
 PolarGotoMessage (const PolarGotoMessage *m)
 Copy constructor.
float phi () const
 Get phi value.
void set_phi (const float new_phi)
 Set phi value.
size_t maxlenof_phi () const
 Get maximum length of phi value.
float dist () const
 Get dist value.
void set_dist (const float new_dist)
 Set dist value.
size_t maxlenof_dist () const
 Get maximum length of dist value.
float orientation () const
 Get orientation value.
void set_orientation (const float new_orientation)
 Set orientation value.
size_t maxlenof_orientation () const
 Get maximum length of orientation value.
virtual Messageclone () const
 Clone this message.

Classes

struct  PolarGotoMessage_data_t
 Internal data storage, do NOT modify!

Detailed Description

PolarGotoMessage Fawkes BlackBoard Interface Message.

Definition at line 176 of file NavigatorInterface.h.


Constructor & Destructor Documentation

fawkes::NavigatorInterface::PolarGotoMessage::PolarGotoMessage ( const float  ini_phi,
const float  ini_dist,
const float  ini_orientation 
)

Constructor with initial values.

Parameters:
ini_phi initial value for phi
ini_dist initial value for dist
ini_orientation initial value for orientation

Definition at line 931 of file NavigatorInterface.cpp.

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

fawkes::NavigatorInterface::PolarGotoMessage::PolarGotoMessage (  ) 

Constructor.

Definition at line 946 of file NavigatorInterface.cpp.

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

fawkes::NavigatorInterface::PolarGotoMessage::~PolarGotoMessage (  ) 

Destructor.

Definition at line 959 of file NavigatorInterface.cpp.

References fawkes::Message::data_ptr.

fawkes::NavigatorInterface::PolarGotoMessage::PolarGotoMessage ( const PolarGotoMessage m  ) 

Copy constructor.

Parameters:
m message to copy from

Definition at line 967 of file NavigatorInterface.cpp.

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


Member Function Documentation

Message * fawkes::NavigatorInterface::PolarGotoMessage::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 1073 of file NavigatorInterface.cpp.

float fawkes::NavigatorInterface::PolarGotoMessage::dist (  )  const

Get dist value.

Distance to the target.

Returns:
dist value

Definition at line 1012 of file NavigatorInterface.cpp.

size_t fawkes::NavigatorInterface::PolarGotoMessage::maxlenof_dist (  )  const

Get maximum length of dist value.

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

Definition at line 1022 of file NavigatorInterface.cpp.

size_t fawkes::NavigatorInterface::PolarGotoMessage::maxlenof_orientation (  )  const

Get maximum length of orientation value.

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

Definition at line 1052 of file NavigatorInterface.cpp.

size_t fawkes::NavigatorInterface::PolarGotoMessage::maxlenof_phi (  )  const

Get maximum length of phi value.

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

Definition at line 992 of file NavigatorInterface.cpp.

float fawkes::NavigatorInterface::PolarGotoMessage::orientation (  )  const

Get orientation value.

The orientation of the robot at the target.

Returns:
orientation value

Definition at line 1042 of file NavigatorInterface.cpp.

float fawkes::NavigatorInterface::PolarGotoMessage::phi (  )  const

Get phi value.

Angle between the robot's front and the target.

Returns:
phi value

Definition at line 982 of file NavigatorInterface.cpp.

void fawkes::NavigatorInterface::PolarGotoMessage::set_dist ( const float  new_dist  ) 

Set dist value.

Distance to the target.

Parameters:
new_dist new dist value

Definition at line 1032 of file NavigatorInterface.cpp.

void fawkes::NavigatorInterface::PolarGotoMessage::set_orientation ( const float  new_orientation  ) 

Set orientation value.

The orientation of the robot at the target.

Parameters:
new_orientation new orientation value

Definition at line 1062 of file NavigatorInterface.cpp.

void fawkes::NavigatorInterface::PolarGotoMessage::set_phi ( const float  new_phi  ) 

Set phi value.

Angle between the robot's front and the target.

Parameters:
new_phi new phi value

Definition at line 1002 of file NavigatorInterface.cpp.


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