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: 747 times
Last updated: Sep 15 '17
Given a vector of Pose samples, how do I compute the PoseWithCovariance?
How to convert from geometry_msgs PoseWithCovariance to nav_msgs Odometry?
transform angular velocity between differents tf
Retrieving goal from RVIZ through python script
Calculating the quaternion increments in geometry_msgs/Transform
rosserial arduino - wrong checksum for topic id and msg
TF of URDF is not showing from robot state publisher
Visualizing classified objects/clusters of laserscan in rviz