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

No tf data.Fixed Frame my_frame does not exist

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

Neothera gravatar image

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

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
0

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

karthik gravatar image

Hi,

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 http://wiki.ros.org/tf/Tutorials

Hope it helps!

edit flag offensive delete link more
1

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

kushal gravatar image

Since you are following your tutorial from : http://wiki.ros.org/rviz/Tutorials/Markers%3A%20Basic%20Shapes

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

Comments

It works for me. Thank U!

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

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

maxgitt gravatar image

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

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

Stats

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

Seen: 10,665 times

Last updated: Jul 27 '17