Ask Your Question

how to change the plugin's param in launch

asked 2016-07-14 01:50:03 -0500

wsAndy gravatar image

updated 2016-07-14 04:17:59 -0500

gvdhoorn gravatar image


I find that image_transport provides only one param (image_transport)for us to choose different compressed plugins. And if I set image_transport to compressed, I could change the param jpeg_quality with the help of rqt_reconfigure, but now, I want to change this param in launch file instead of rqt_reconfigure, how could I do?

Thanks first!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-15 16:17:08 -0500

Chrissi gravatar image

updated 2016-07-16 05:26:45 -0500

Reconfigure parameters can be used like all other parameters in a launch file.


Let's say you have a node called foo in the package foo_pkg and want to change the jpeg_quality of the compressed image to 50 then the launch file should look like this:

<node pkg="foo_pkg" type="foo" name="foo" >
    <param name="image/compressed/jpeg_quality" type="int" value="50"/>
edit flag offensive delete link more


Thanks for your answer. If the parameters were defined in the inheritance class, I could reconfigure them in lanch.But the problem is that they are defined in the base class. How could I reconfigure them in the launch file? The instance of this problem is the jpeg quality in the image_transport.

wsAndy gravatar image wsAndy  ( 2016-07-15 20:16:11 -0500 )edit

Edited my answer with the solution to the problem. You can just specify the relative params like in the answer. That will lead to the param /foo/image/compressed/jepg_quality to be set.

Chrissi gravatar image Chrissi  ( 2016-07-16 05:27:59 -0500 )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

1 follower


Asked: 2016-07-14 01:50:03 -0500

Seen: 376 times

Last updated: Jul 16 '16