How setting parameters of a ROS program through a GUI ?

asked 2016-06-30 00:05:21 -0500

Piero-31 gravatar image

updated 2016-07-04 22:24:40 -0500

Hi,

I am using ROS and I have a package controlling a robot. Now I would like to create a GUI which would enable me to modify the parameters of my code. How can I do that ? I would also like to design the GUI but that's ok I've made tutorial of Qtcreator.

I have already made researches about rqt, creating a rqt plugin, using Qtcreator, Qtdesigner... I have also look about Qt app template. I also found things about Dynamic reconfigure plugin but it's not what I want.

But the thing is that I can't find anywhere explanations to help me to do what I want. I don't know how the code on Qt could interact with the parameters of my package.

EDIT : My problem is quite similar with this one but there is no answer.

EDIT : Nobody can help me ?

edit retag flag offensive close merge delete

Comments

1

If Dynamic Reconfigure is not what you want, what are your functional requirements? The only thing that seems to be left is pre-setting parameters in a launch file and then launching that. But that won't let you change parameters during runtime.

gvdhoorn gravatar image gvdhoorn  ( 2016-06-30 03:34:28 -0500 )edit

I would like to design my own interface and not to use something already made like Dynamic Reconfigure. I would like to create cursors for example, to chose my parameters.

Piero-31 gravatar image Piero-31  ( 2016-06-30 16:37:04 -0500 )edit

Another solution, even though not the typical "ROS way" is to provide a service server in your code that allows you to set the parameters via a service client from the GUI. However, this requires changes in every node wherein you want to change parameters.

mgruhler gravatar image mgruhler  ( 2016-07-01 01:22:15 -0500 )edit

EDIT : Nobody can help me ?

I don't know of anything that already does what you want. If you don't want to use dynamic_reconfigure, you're going to have to create something yourself. dyn reconfig is all based on services, so you could see whether you could re-use those.

gvdhoorn gravatar image gvdhoorn  ( 2016-07-05 02:39:12 -0500 )edit

Yes what I want is to make myself a GUI interacting with my code. I know that it is not so complicated but there is no tutorial and no explanations anywhere.

Piero-31 gravatar image Piero-31  ( 2016-07-05 16:34:45 -0500 )edit

Piero-31: did you ever get your own GUI created? I also want to create my own GUI to interact with dynamic reconfigure parameters rather than using the rqt_reconfigure GUI.

Green01 gravatar image Green01  ( 2022-03-10 07:07:37 -0500 )edit