Ask Your Question
0

Probleme with parameter queue_size in image_proc node

asked 2017-07-18 10:43:24 -0500

lettuce gravatar image

updated 2017-07-24 04:25:30 -0500

Hello everyone,

I try to change the size of the message queue in image_proc by raising the parameter ~queue_size in a roslaunch file:

<launch>
     .
     .
     .
  <node name="image_proc" pkg="image_proc" type="image_proc" ns="camera_pi"  output="screen" >
     <param name="queue_size" value="1" />
  </node>
</launch>

The parameter is raising correctly, it appears in rosparm list under the name : /camera_pi/image_proc/queue_size (seem correct to me ?). But this as no effect on the queue size of the node who remaining at the default size (5).

Any idea ?

Thanks

Edit : the image_proc node documentation, see the section 3.0.1 Parameters, and the source code can be found here

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-07-21 21:59:59 -0500

Ed Venator gravatar image

updated 2017-07-21 22:02:12 -0500

The ~ character in the parameter in the documentation on the wiki isn't part of the parameter name. It just indicates that the parameter is private. In roslaunch, you specify a private parameter by putting the <param> tag inside of the <node> tag.

Your launch should look like this:

<launch>
     .
     .
     .
  <node name="image_proc" pkg="image_proc" type="image_proc" ns="camera_pi"  output="screen" >
     <param name="queue_size" value="1" />
  </node>
</launch>

For more information on parameter namespaces, see the wiki page on Names.

edit flag offensive delete link more

Comments

Thank for the answer and the info, but i already tried without the ~ and i got the same result...

lettuce gravatar image lettuce  ( 2017-07-24 03:46:41 -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: 2017-07-18 10:43:24 -0500

Seen: 246 times

Last updated: Jul 24 '17