Ask Your Question
1

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

Hello!

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
1

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.

EDIT:

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:

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

Comments

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 imagewsAndy ( 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 imageChrissi ( 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

Stats

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

Seen: 213 times

Last updated: Jul 16 '16