#include <interfaces/NavigatorInterface.h>
Inheritance diagram for fawkes::NavigatorInterface::PolarGotoMessage:
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 Message * | clone () const |
Clone this message. | |
Classes | |
struct | PolarGotoMessage_data_t |
Internal data storage, do NOT modify! |
Definition at line 176 of file NavigatorInterface.h.
fawkes::NavigatorInterface::PolarGotoMessage::PolarGotoMessage | ( | const float | ini_phi, | |
const float | ini_dist, | |||
const float | ini_orientation | |||
) |
Constructor with initial values.
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.
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.
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.
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.
Definition at line 1012 of file NavigatorInterface.cpp.
size_t fawkes::NavigatorInterface::PolarGotoMessage::maxlenof_dist | ( | ) | const |
Get maximum length of dist value.
Definition at line 1022 of file NavigatorInterface.cpp.
size_t fawkes::NavigatorInterface::PolarGotoMessage::maxlenof_orientation | ( | ) | const |
Get maximum length of orientation value.
Definition at line 1052 of file NavigatorInterface.cpp.
size_t fawkes::NavigatorInterface::PolarGotoMessage::maxlenof_phi | ( | ) | const |
Get maximum length of phi value.
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.
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.
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.
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.
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.
new_phi | new phi value |
Definition at line 1002 of file NavigatorInterface.cpp.