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

How to change the frame_id from recorded bag files [bag_tools don't work]

asked 2018-03-10 05:25:04 -0500

Marcus Barnet gravatar image

Hi to all,

I need to change the frame_id of my imu/data topic from /base_imu to base_imu. I'm using Indigo. Unfortunately, I recorded several bag files without removing the slash character now I can't run them since I always get this error message:

Warning: Invalid argument "/base_imu" passed to canTransform argument source_frame in tf2 frame_ids cannot start with a '/' like: 
         at line 130 in /tmp/binarydeb/ros-indigo-tf2-0.5.15/src/buffer_core.cpp

I know that I can use bag_tools, but they do not work: if I try to install them from apt-get the package "change_frame_id" is not found, if I try to install them from source, catkin_make fails and do not build the package.

Is there any other way to change the frame_id? Can you help me, please?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-10 06:08:17 -0500

Marcus Barnet gravatar image

updated 2018-03-12 03:36:10 -0500

I solved the problem by copying the change_frame_id.py file inside the bag_tools folder located in /opt/ros/indigo/share/bag_tools.

Now it works.

I think the ros node installed by apt-get does not copy all the files inside the ros directory.

I opened a new issue on: https://github.com/srv/srv_tools/issu...

edit flag offensive delete link more

Comments

I think the ros node installed by apt-get does not copy all the files inside the ros directory.

have you reported this over at srv/srv_tools/issues?

gvdhoorn gravatar image gvdhoorn  ( 2018-03-11 04:04:08 -0500 )edit

I did it few minutes ago

Marcus Barnet gravatar image Marcus Barnet  ( 2018-03-11 15:15:45 -0500 )edit

And the link to the issue?

gvdhoorn gravatar image gvdhoorn  ( 2018-03-12 03:06:03 -0500 )edit

You can find it in "Issues" on "srv_tools" github.

Marcus Barnet gravatar image Marcus Barnet  ( 2018-03-12 03:31:53 -0500 )edit

Obviously, but as a service to future readers it would be nice if you can post the link here.

Also: if your issue gets closed/resolved, it would not be immediately clear to which issue you are referring.

That way we keep things connected.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-12 03:33:23 -0500 )edit

I edited the answer by adding the link to the issue.

Marcus Barnet gravatar image Marcus Barnet  ( 2018-03-12 03:36:40 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-10 05:25:04 -0500

Seen: 2,662 times

Last updated: Mar 12 '18