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

Best way of implementing a GUI

asked 2018-11-16 12:40:12 -0600

th6262 gravatar image

updated 2018-11-16 17:15:10 -0600

Hey everyone,

I've spent the better part of last week trying something with no success, so I've figured I'd ask the experts:

Currently I'm working with a roof-mounted laser scanner. I've managed to extract all the relevant moving objects (non-wall and non-ground) and assign them to individual clusters.

After that I wrote a function which tells me whether or not two clusters are TOO close or not. Now what I'm trying to do is create my own "GUI", which on the on hand incorporates what I'm seeing in RVIZ right now ( all the markers, the pointcloud, etc)

but also some sort off Button that lights up green or red, depending on whether two objects are in fact too close to each other or not. It's a simple introduction to a more complex problem I'm tackling.

Now my question is, is there a way to do it with rqt_gui, or would it be more feasible to do so in with qtcreator? I'm struggling to find the right approach. Rqt_gui has an nice way of implementing rviz, but I can't figure out how to add my "custom" plugin ( the light-button).

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-16 13:41:18 -0600

I think you're best bet would be writing a dockable panel plugin for RVIZ. There is a good tutorial here with source code that should compile and run out of the box. I used this a few months ago to extend RVIZ myself, it's fairly straightforward to make quite powerful add-ons.

You don't have to go through the pain of building a new GUI from scratch and you can link it in to the other tools in RVIZ.

edit flag offensive delete link more


perfect, thank you! will get into it. was hoping for someone who already did it to reply, thanks for that ! :)

th6262 gravatar image th6262  ( 2018-11-16 13:45:53 -0600 )edit

Question Tools

1 follower


Asked: 2018-11-16 12:40:12 -0600

Seen: 285 times

Last updated: Nov 16 '18