Ask Your Question
0

rviz2 does not display an urdf file

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

jarain78 gravatar image

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

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
1

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

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
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 140 times

Last updated: Aug 12 '21