Ask Your Question
2

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

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

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
2

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

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:

https://bitbucket.org/osrf/gazebo/pul...

Here's what it looks like:

image description

edit flag offensive delete link more

Comments

Have you ever tried doing this in Python?

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

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

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

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

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: http://docs.ros.org/indigo/api/librvi...

edit flag offensive delete link more

Comments

I'll check it out, Thanks :)

YusraAzhar gravatar image YusraAzhar  ( 2017-10-30 14:03:27 -0600 )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 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 846 times

Last updated: Nov 08 '17