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

rviz2 does not display an urdf file

asked 2021-08-08 17:55:56 -0500

jarain78 gravatar image

updated 2021-08-12 15:37:23 -0500

Hello everyone, I have a question related to rviz2. I am trying to display an urdf and rviz2 show this:

image description

I got the tf but I can't represent the 3D models.

Thank you

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2021-08-12 17:13:29 -0500

ijnek gravatar image

Assuming you're using the robot_state_publisher package to publish your TFs, it also publishes the contents of the URDF file of the robot you're using to a topic robot_description.

In RViz, in the Displays panel, open up RobotModel, and change Description Topic to /robot_description. (This makes the RobotModel visualization in RViz listen to the model of the robot from the robot_state_publisher).

Also, make sure Visual Enabled is ticked under Robot Model.

You should be able to see your own robot, like below (or whatever robot you're using)

image description

edit flag offensive delete link more


Hello ijnek, I also have the same problem and I tried as you mentioned above but still no robot showed up do you have any idea where I might be wrong

Abubakar gravatar image Abubakar  ( 2022-07-13 06:48:51 -0500 )edit

@Abubakar Would you be able to post a new question (with more details) in ROS Answers and post a link here?

ijnek gravatar image ijnek  ( 2022-07-14 07:27:15 -0500 )edit

It's ok ijnek the problem was solved the robot did show up but it was very small that i couldn't spot initially

Abubakar gravatar image Abubakar  ( 2022-07-14 11:51:12 -0500 )edit

answered 2021-08-12 18:24:18 -0500

jarain78 gravatar image

Hi ijnek's, I don't know why I didn't see this.... buff. I had other bugs that I have already fixed and I didn't see this error.

Thank you.

edit flag offensive delete link more

Question Tools



Asked: 2021-08-08 17:55:56 -0500

Seen: 1,190 times

Last updated: Aug 12 '21