0
$\begingroup$

Rosanswers logo

Hey there,

I just would like to know if it is possible to load a gazebo world or parts of it (Gazebo Models) into rviz directly?

Without loading and spawning the robots (robot_descriptions) in launch files before hand?

I am currently using Indigo and Gazebo 2. I guess there is no fast way to do that as gazebo only publishes these topics:

/gazebo/link_states
/gazebo/model_states
/gazebo/parameter_descriptions
/gazebo/parameter_updates
/gazebo/set_link_state
/gazebo/set_model_state

Best, Markus


Originally posted by Markus on ROS Answers with karma: 311 on 2018-05-09

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

The typical answer to this is "no", as RViz does not support loading .sdf files.

However, there is at least one package (that I know of) that implements a 'trick': gazebo2rviz. From the packages wiki page:

This package contains nodes to automatically import all entities simulated in a ROS-enabled Gazebo instance into rviz through the TF and Marker plugin.

I'm not sure how well supported it still is (or which specific versions of Gazebo are supported), but it would seem to do what you ask for.

I just would like to know if it is possible to load a gazebo world or parts of it (Gazebo Models) into rviz directly?

Note that technically this is not an answer (as the answer is really "no"), but gazebo2rviz provides a convenient work-around (if it still works).


Originally posted by gvdhoorn with karma: 86574 on 2018-05-09

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by gvdhoorn on 2018-05-09:
Related question: #q217324.

Comment by Markus on 2018-05-11:
Thanks I check that gazebo2rviz package

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.