Position and orientation information. More...
#include <Pose.h>
Public Member Functions | |
const Orientation & | getOrientation () const |
Orientation value accessor (immutable). | |
Orientation & | getOrientation () |
Orientation value accessor. | |
const Position & | getPosition () const |
Position value accessor (immutable). | |
Position & | getPosition () |
Position value accessor. | |
Pose (const Position &position=Position(), const Orientation &orientation=Orientation()) | |
Create a new Pose. | |
Pose (const geometry_msgs::Pose &pose) | |
Create a new Pose. | |
Pose (const geometry_msgs::Transform &tf) | |
Create a new Pose. | |
Pose (const tf2::Transform &tf) | |
Create a new Pose. | |
void | setOrientation (const Orientation &orientation) |
Orientation value mutator. | |
void | setPosition (const Position &position) |
Position value mutator. | |
geometry_msgs::Pose | toROSPoseMessage () const |
geometry_msgs::Transform | toROSTransformMessage () const |
tf2::Transform | toTF2Transform () const |
Private Attributes | |
Orientation | orientation_ |
Position | position_ |
Position and orientation information.
A pose contains position and orientation information. This class is useful for internal data management within the worldlib library. Convenience functions are added for use with ROS messages.
Pose::Pose | ( | const Position & | position = Position() , |
const Orientation & | orientation = Orientation() |
||
) |
Pose::Pose | ( | const geometry_msgs::Pose & | pose | ) |
Pose::Pose | ( | const geometry_msgs::Transform & | tf | ) |
Pose::Pose | ( | const tf2::Transform & | tf | ) |
const Orientation & Pose::getOrientation | ( | ) | const |
Orientation value accessor (immutable).
Get the orientation value of this Pose.
const Position & Pose::getPosition | ( | ) | const |
Position & Pose::getPosition | ( | ) |
void Pose::setOrientation | ( | const Orientation & | orientation | ) |
Orientation value mutator.
Set the orientation value of this Pose.
orientation | The new orientation value. |
void Pose::setPosition | ( | const Position & | position | ) |
geometry_msgs::Pose Pose::toROSPoseMessage | ( | ) | const |
geometry_msgs::Transform rail::spatial_temporal_learning::worldlib::geometry::Pose::toROSTransformMessage | ( | ) | const |
Converts this Pose object into a ROS Transform message.
tf2::Transform Pose::toTF2Transform | ( | ) | const |
Orientation data.