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

Not able to spawn basic shapes in rviz

asked 2016-01-06 10:15:46 -0500

arttp2 gravatar image

updated 2016-01-06 10:19:40 -0500

I am following the tutorial on rviz here

But i am not able to correct the TF global issue as in the screenshot. rviz

edit retag flag offensive close merge delete

Comments

I tried changing the rviz 'Global Options' 'Fixed Frame' to my_frame. but nothing happened. I tried to run the command below too, but nothing changed too

rosrun tf static_transform_publisher 0 0 0 0 0 0 1 /map /my_frame 10

the terminal doesn't show any other error.

CHIN gravatar image CHIN  ( 2021-11-02 22:01:40 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2016-01-06 11:18:01 -0500

fsteinhardt gravatar image

updated 2016-01-06 13:29:46 -0500

Try changing the rviz 'Global Options' 'Fixed Frame' to my_frame.

In the tutorial you are sending the markers position in the frame my_frame, but rviz is set to display map, and if you have not set any transforms to connect the frame map to my_frame rviz can't calculate the markers position in the map frame.

And you need to add a markers display to rviz (maybe you have already done this, but i can't see it in your screenshot). Just follow the Tutorials Point '5. Viewing the Markers'.

To change the Fixed Frame: Open rviz, klick on map (on the text next to Fixed Frame) and just type the new frame name my_frame. I thought i could choose the frame from a list, but i just built the tutorial program and tried it, but i had to type the name my_frame.

Rviz is often hiding (or it is not recognizable) that you can edit a parameter like Fixed Frame.

I think you are trying to change the Fixed Frame in Global Status, where you get the warning message. Try changing the Fixed Frame under Global Options.

edit flag offensive delete link more

Comments

Marker Status is OK. Marker Topic is visualization_marker . But I don't understand how to modify Global Status-Fixed Frame to my_frame.

arttp2 gravatar image arttp2  ( 2016-01-06 11:59:57 -0500 )edit

As soon as i type my_frame and press enter, the text goes back to No tf data. Actual error: Fixed Frame [map] does not exist

arttp2 gravatar image arttp2  ( 2016-01-06 12:59:32 -0500 )edit

Thanks a lot!

arttp2 gravatar image arttp2  ( 2016-01-06 13:53:20 -0500 )edit
0

answered 2021-10-29 11:36:16 -0500

Souvik Basak gravatar image
rosrun tf static_transform_publisher 0 0 0 0 0 0 1 /map /my_frame 10

Type this in another terminal to state the relation btw my_frame and map

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-01-06 10:15:46 -0500

Seen: 558 times

Last updated: Nov 02 '21