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

Is it possible to embed Gazebo simulator in your own GUI?

asked 2017-10-30 13:32:03 -0500

YusraAzhar gravatar image

Hi, I am working on a graphical user interface for ROS. I wanted to ask if it is possible to embed a simulator in your own gui i.e. its window opens inside your window?

Any constructive response would be appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-11-08 10:28:43 -0500

Yes, it is possible to embed Gazebo's client window into another Qt application, whether that uses ROS or not. Just like the RViz example mentioned on another answer, Gazebo can also be used as a library.

I just created a simple example program which does that:

Here's what it looks like:

image description

edit flag offensive delete link more


Have you ever tried doing this in Python?

YusraAzhar gravatar image YusraAzhar  ( 2017-11-21 05:45:04 -0500 )edit

I haven't, Gazebo's API is all in C++

chapulina gravatar image chapulina  ( 2017-11-21 10:57:14 -0500 )edit

answered 2017-10-30 13:40:34 -0500

bpinaya gravatar image

Hey there, talking about Gazebo, I am not quite sure since they separated from ROS and went onto building their own sim I think it would be pretty hard. However, depending on your application you could just use RVIZ inside your own gui window, for my application I found out that that was more suitable, maybe it helps you. You can read more here:

edit flag offensive delete link more


I'll check it out, Thanks :)

YusraAzhar gravatar image YusraAzhar  ( 2017-10-30 14:03:27 -0500 )edit

Note that Gazebo and RViz serve very different purposes. Gazebo simulates rigid body dynamics and sensor data, while RViz is useful for visualizing all sorts of data flowing through ROS topics.

chapulina gravatar image chapulina  ( 2017-11-08 10:30:13 -0500 )edit

Question Tools


Asked: 2017-10-30 13:32:03 -0500

Seen: 1,333 times

Last updated: Nov 08 '17