How to change the frame_id from recorded bag files [bag_tools don't work]
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?