ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

"Failed to transform from frame [/velodyne] to frame [velodyne]"

asked 2020-07-28 11:58:00 -0500

jacki gravatar image

updated 2020-07-28 14:48:38 -0500

when i display a topic from bag,rviz reports an error Failed to transform from frame [/velodyne] to frame [velodyne],the frame_id of the topic is /velodyne,so i think i should change the value of fix_frame in rviz,just need to add "/",but rviz always change my typing"/velodyne" into "velodyne",and thus i have some trouble showing this topic,what should i do

ros env:

ROS_VERSION=1
ROS_PYTHON_VERSION=3
ROS_PACKAGE_PATH=/opt/ros/noetic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_ETC_DIR=/opt/ros/noetic/etc/ros
ROS_MASTER_URI=http://localhost:11311
ROS_ROOT=/opt/ros/noetic/share/ros
ROS_DISTRO=noetic
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-28 14:54:01 -0500

updated 2020-07-28 14:57:46 -0500

If you are sure that the frame_id of the topic you are trying to display is in fact /velodyne, I'd work on correcting that. Is it possible that the bag file is quite old? When the tf2 migration happened support for frames with leading / was dropped -- read more here. In other words, that bag file should probably not have the leading slash if you want to use it with any recent ROS versions.

You could use something like bag_tools to change the frame_id of the bag you are trying to visualize.

edit flag offensive delete link more

Comments

thanks for helping! the bag file is from "kinetic".but when i work on installing bag_tools,it hints me to install srv_tools,but the newest version i can find is only "kinetic",

jacki gravatar image jacki  ( 2020-08-03 10:03:50 -0500 )edit
1

You could install from source or you could investigate using the version bundled with autoware

jarvisschultz gravatar image jarvisschultz  ( 2020-08-03 10:13:06 -0500 )edit

You could likely also just copy the Python script. Doesn't seem like it has many dependencies: https://github.com/srv/srv_tools/blob...

jarvisschultz gravatar image jarvisschultz  ( 2020-08-03 10:18:17 -0500 )edit

i've tried the methods above and i stiil encounter problems.The python script needs some dependencies that i can't solve,and i can't find the proper source for noetic version. HOWEVER,I OCCASIONALLY SOLVE IT BY TYPING TWO "/"(//velodyne)!! it just drop one / and it truly works! thank you for answering me!

jacki gravatar image jacki  ( 2020-08-07 02:22:43 -0500 )edit

Glad that works!

jarvisschultz gravatar image jarvisschultz  ( 2020-08-07 10:54:07 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-07-28 11:58:00 -0500

Seen: 1,504 times

Last updated: Jul 28 '20