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: 740 times
Last updated: Sep 15 '17
Given a vector of Pose samples, how do I compute the PoseWithCovariance?
Retrieving goal from RVIZ through python script
Inaccurate result from tf2 transform
transform angular velocity between differents tf
Structure from motion with covariance in ROS
Subscribe to geometry_msgs/Pose2D message for arduino application
How to transform tf::Vector3 with tf::TransformListener::transformVector?