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

Markers: Sending Basic Shapes Tutorial (C++) needs updation

asked 2021-06-11 11:57:26 -0600

Speedracer1702 gravatar image

The tutorial ( needs to update the following line -

  47     marker.header.frame_id = "/my_frame";

I think tf2 does not accept the '/' in the front of a frame name. I got the following error which indicates this -

invalid argument passed to cantransform argument source_frame in tf2 frame_ids cannot start with a '/' like:

Any directions on how to submit a PR would be appreciated. Thanks!

I'm using ROS Noetic.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-02-14 11:33:05 -0600

WendaZ gravatar image


I just hit the same problem. Fortunately, changing "/my_frame" to "my_frame" resolves this issue.

edit flag offensive delete link more


This worked for me. Thanks a lot!

leekt gravatar image leekt  ( 2022-03-01 19:51:18 -0600 )edit

Question Tools



Asked: 2021-06-11 11:57:26 -0600

Seen: 376 times

Last updated: Jun 11 '21