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

No transform from [base_link] to [/map]

asked 2011-07-28 11:28:22 -0500

Vinipsmaker gravatar image

I started to create my URDF robot model, using ros tutorials as reference. But when I try to visualize the model using rviz, an error happens:

.Global Options

.Global Status: warning + Fixed frame: No tf data. Actual error: Fixed Frame [/map] does not exist

  1. Grid (Grid)

  2. Robot Model (Robot Model):

  3. Status: Error
  4. base_link: No transform from [base_link] to [/map]

What am I missing here?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
13

answered 2011-07-28 12:06:39 -0500

updated 2011-07-29 04:44:44 -0500

I may not be considering this correctly, but it may be as simple as changing your "fixed frame" under ".Global Options" to "/", "/world", or some fixed frame that you do have a transform for. "/base_link"

edit flag offensive delete link more

Comments

2
According to the error message, I guess the fixed frame should be /base_link.
Lorenz gravatar image Lorenz  ( 2011-07-28 20:07:07 -0500 )edit

Nice. Thank you.

Clancy gravatar image Clancy  ( 2015-04-02 23:06:51 -0500 )edit
1

How do you change this? It appears to be a readonly field in RViz.

Cerin gravatar image Cerin  ( 2017-06-03 21:34:38 -0500 )edit

thanks! It worked for me.

roark gravatar image roark  ( 2017-06-11 00:34:37 -0500 )edit
9

answered 2011-07-28 21:52:50 -0500

Miguel Prada gravatar image

The rviz fixed frame is the frame that will act as the origin of coordinates on rviz. You can use whichever frame you want, as long as transforms exist between this frame and the rest of the frames published (e.g. robot frames: base_link, laser, etc.).

You've set the rviz fixed frame to /map, which is the frame that's usually used for navigation, but no node is publishing the transform between the map frame and the base_link frame on your robot. You should publish this transform if you really need to set /map as the fixed frame, or either change the fixed frame to some of the frames defined on your robot. This last option is the quickest if you only need to visualize the robot model.

edit flag offensive delete link more

Comments

That's true. But what if you want all in the /map frame? I have /map->/odom->base_footprint->base_link->wheel and the individual transforms between parent and child are all defined. But it still gives the above error for /map to /base_link? Does tf not compute the total tf from individual tfs?

2ROS0 gravatar image 2ROS0  ( 2014-07-02 17:26:30 -0500 )edit

Hello how do I exactly do that?

mgrallos gravatar image mgrallos  ( 2022-04-19 01:47:25 -0500 )edit
1

answered 2022-08-18 16:10:05 -0500

SantiagoD gravatar image

On the left-hand side of RViz will be your "Displays" tab. Under there, drop down "Global Options" (with the gear icon). Double click the area next to the right of "Fixed Frame", and a dropdown will appear with different frames. Select "base" and you should be good!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-28 11:28:22 -0500

Seen: 41,360 times

Last updated: Apr 25 '12