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

No tf data.Fixed Frame my_frame does not exist

asked 2014-02-27 12:09:44 -0500

Neothera gravatar image

updated 2014-02-27 12:10:01 -0500

Hi, I'm following the rviz tutorial basic shapes. I change the cpp file and set both fixed and target frame to "my_frame" not "/my_frame" because when i typed it automatically change to "my_frame". But when i star rivz, it still said Fixed Frame my_frame does not exist. is there something i missed? thank you.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2014-02-27 14:09:00 -0500

karthik gravatar image


I believe there is no tf frame being published with /my_frame name. That tutorial just talks about an arbitrary frame called /my_frame and if you have set of tf already being published then you could map your markers to one of the frame and get it working for your project. To know how to create a tf please check the

Hope it helps!

edit flag offensive delete link more

answered 2022-07-22 02:28:01 -0500

kushal gravatar image

Since you are following your tutorial from :

Just remove the slash('/') in my_frame, i.e, change this in your src/basic_shapes.cpp

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

changed to

47     marker.header.frame_id = "my_frame";

This fixed the issue for me. Hope it does for you too.

edit flag offensive delete link more


It works for me. Thank U!

Schrodingers_Tiger gravatar image Schrodingers_Tiger  ( 2022-12-05 14:27:55 -0500 )edit

answered 2017-07-27 09:50:36 -0500

maxgitt gravatar image

updated 2017-07-27 10:10:18 -0500

I had the same issue. Simply add to your display a Marker to receive the topic messages sent by basic_shapes.cpp.

You can do this by clicking: Add > By display type > Marker

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-02-27 12:09:44 -0500

Seen: 10,595 times

Last updated: Jul 27 '17