Problem with leading '/' when running tf2::MessageFilter tutorial
Hi guys,
I am following the tf2::MessageFilter tutorial and when I run the message_filter.cpp
code I get the following error:
Warning: Invalid argument "/world" passed to canTransform argument source_frame in tf2 frame_ids cannot start with a '/' like:
at line 134 in /tmp/binarydeb/ros-melodic-tf2-0.6.5/src/buffer_core.cpp
[ WARN] [1598479161.890484911]: Failure Invalid argument "/world" passed to lookupTransform argument source_frame in tf2 frame_ids cannot start with a '/' like
I understand that this is something related to the change from tf to tf2. I know what the error is. But I don't know where I need to remove the "/" from the frame name.
Any help please? Thanks!
Remove any slash before any frame anywhere for TF2
@stevemacenski thanks for the reply. I know that that is what I need to do. The problem was that I did not have access to the source code generating the frames. I figured which script was doing it, and coded it myself and solved the problem.