pose_utilities.cpp File Reference
#include "ensenso_camera/pose_utilities.h"
#include <string>
Include dependency graph for pose_utilities.cpp:

Go to the source code of this file.


tf2::Transform fromMsg (geometry_msgs::Transform const &t)
tf2::Transform fromMsg (geometry_msgs::Pose const &p)
tf2::Transform fromStampedMessage (geometry_msgs::TransformStamped const &tStamped)
tf2::Transform fromStampedMessage (geometry_msgs::PoseStamped const &pStamped)
geometry_msgs::TransformStamped fromTfTransform (tf2::Transform const &transform, std::string parentFrame, std::string childFrame)
tf2::Transform getLatestTransform (tf2_ros::Buffer const &tfBuffer, std::string const &cameraFrame, std::string const &targetFrame)
bool isValid (tf2::Transform const &pose)
bool isValid (tf2::Vector3 const &vector)
bool isValid (geometry_msgs::Transform const &pose)
tf2::Transform poseFromNxLib (NxLibItem const &node)
geometry_msgs::TransformStamped poseFromNxLib (NxLibItem const &node, std::string const &parentFrame, std::string const &childFrame)
geometry_msgs::Pose poseFromTransform (tf2::Transform const &transform)
geometry_msgs::PoseStamped stampedPoseFromTransform (geometry_msgs::TransformStamped const &transform)
geometry_msgs::TransformStamped transformFromPose (geometry_msgs::PoseStamped const &pose, std::string const &childFrame)
void writePoseToNxLib (tf2::Transform const &pose, NxLibItem const &node)

Function Documentation

tf2::Transform fromMsg ( geometry_msgs::Transform const &  transform)

Creates a tf2::Transform out of pose or transform message type.

Definition at line 163 of file pose_utilities.cpp.

tf2::Transform fromMsg ( geometry_msgs::Pose const &  p)

Definition at line 176 of file pose_utilities.cpp.

tf2::Transform fromStampedMessage ( geometry_msgs::TransformStamped const &  tStamped)

Definition at line 137 of file pose_utilities.cpp.

tf2::Transform fromStampedMessage ( geometry_msgs::PoseStamped const &  pStamped)

Definition at line 150 of file pose_utilities.cpp.

geometry_msgs::TransformStamped fromTfTransform ( tf2::Transform const &  transform,
std::string  parentFrame,
std::string  childFrame 

Definition at line 200 of file pose_utilities.cpp.

tf2::Transform getLatestTransform ( tf2_ros::Buffer const &  tfBuffer,
std::string const &  cameraFrame,
std::string const &  targetFrame 

Definition at line 213 of file pose_utilities.cpp.

bool isValid ( tf2::Transform const &  pose)

Check whether the given pose is valid, that is, whether it does not contain NaNs.

For example, such an invalid pose is produced by converting an uninitialized geometry_msgs/Pose to a TF pose.

Definition at line 5 of file pose_utilities.cpp.

bool isValid ( tf2::Vector3 const &  vector)

Definition at line 23 of file pose_utilities.cpp.

bool isValid ( geometry_msgs::Transform const &  pose)

Definition at line 28 of file pose_utilities.cpp.

tf2::Transform poseFromNxLib ( NxLibItem const &  node)

Convert the given NxLib transformation node to a TF pose.

Definition at line 72 of file pose_utilities.cpp.

geometry_msgs::TransformStamped poseFromNxLib ( NxLibItem const &  node,
std::string const &  parentFrame,
std::string const &  childFrame 

Creates a stamped transformation from frame to child frame with given link described in the node.

Definition at line 93 of file pose_utilities.cpp.

geometry_msgs::Pose poseFromTransform ( tf2::Transform const &  transform)

Definition at line 189 of file pose_utilities.cpp.

geometry_msgs::PoseStamped stampedPoseFromTransform ( geometry_msgs::TransformStamped const &  transform)

Get a geometry pose from a transform, where pose has the same rotation and translation as the transform.

Definition at line 122 of file pose_utilities.cpp.

geometry_msgs::TransformStamped transformFromPose ( geometry_msgs::PoseStamped const &  pose,
std::string const &  childFrame 

Get a TF transformation that defines the child frame at the position of the given pose.

Definition at line 106 of file pose_utilities.cpp.

void writePoseToNxLib ( tf2::Transform const &  pose,
NxLibItem const &  node 

Convert the given TF pose to an NxLib transformation and write it into the given NxLib node.

Definition at line 33 of file pose_utilities.cpp.

Author(s): Ensenso
autogenerated on Sat Jul 27 2019 03:51:24