Convert PoseWithCovariance to Transform
Is it possible to convert geometry_msgs/PoseWithCovariance to geometry_msgs/Transform and how?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Is it possible to convert geometry_msgs/PoseWithCovariance to geometry_msgs/Transform and how?
If covariance is not important:
geometry_msgs::PoseWithCovariance poseWithCovarianceMsg;
tf::Transform transform;
transform.setRotation(tf::Quaternion(poseWithCovarianceMsg.pose.orientation.x,
poseWithCovarianceMsg.pose.orientation.y,
poseWithCovarianceMsg.pose.orientation.z,
poseWithCovarianceMsg.pose.orientation.w));
transform.setOrigin(tf::Vector3(poseWithCovarianceMsg.pose.position.x,
poseWithCovarianceMsg.pose.position.y,
poseWithCovarianceMsg.pose.position.z));
geometry_msgs::Transform transformMsg;
tf::transformTFToMsg(transform, transformMsg);
Asked: 2017-09-15 07:27:28 -0500
Seen: 753 times
Last updated: Sep 15 '17
TF of URDF is not showing from robot state publisher
Given a vector of Pose samples, how do I compute the PoseWithCovariance?
How to use a callback only once in python
Retrieving goal from RVIZ through python script
Calculating the quaternion increments in geometry_msgs/Transform
How to invert a geometry_msgs::Transform in C++?
Transform Stamped wrench from one frame to another
Inaccurate result from tf2 transform