Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 844

tf::TransformListener::transformPose [exception] target_frame does not exist

$
0
0
Hi, I am trying to transform `geometry_msgs::PoseStamped` in one frame to other. I am using `tf::TransformListener::transformPose` here is my code snippet. tf::TransformListener listener; geometry_msgs::PoseStamped pose_map; try{ listener.transformPose("map",pose_world,pose_map); // pose_world is in world frame } catch( tf::TransformException ex) { ROS_ERROR("transfrom exception : %s",ex.what()); } i am getting below exception. [ERROR] [1410527449.677789054, 1410185755.142016150]: transfrom exception : "map" passed to lookupTransform argument target_frame does not exist. But i can see tf between /world and /map from `rosrun tf view_frames` and also from `rosrun tf tf_echo world map` **Edit:** After adding wait for transform i am getting below exception. But /map to /world is publishing at 25hz from launch file. I am using bag file for tf data with --clock and use_sim_time true [ERROR] [1410539110.856303453, 1410185780.612246601]: transfrompose exception : Lookup would require extrapolation into the past. Requested time 1410185779.600078575 but the earliest data is at time 1410185779.862480216, when looking up transform from frame [world] to frame [map] Thank you.

Viewing all articles
Browse latest Browse all 844

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>