Ask Your Question

themightyoarfish's profile - activity

2019-05-20 02:29:30 -0600 marked best answer How can I load a yaml rosparam file for a nodelet?

Usually, when writing a launch file and wanting to set many rosparams at once, one would place them in a YAML file which is then loaded for the node like this:

   <node
        name="$(arg node_name)"
        pkg="pylon_camera"
        type="pylon_camera_node"
        output="screen"
        respawn="$(arg respawn)"
        launch-prefix="$(arg launch_prefix)" >
        <param name="camera_frame" value="$(arg node_name)" type="string" />
        <rosparam command="load" file="$(arg config_file)" />
    </node>

Now, the same does not seem to work in a nodelet.

<node if="$(arg start_pylon_driver)"
    pkg="nodelet"
    type="nodelet"
    name="PylonNodelet"
    args="load pylon_camera/PylonNodelet $(arg manager_name)"
    output="screen"
    respawn="false">
      <param name="camera_frame" value="pylon_camera" type="string" />
      <rosparam command="load" file="$(arg config_file)" />
</node>

The nodelet loads and runs, but the parameters are all default values, not the ones set in the config.yaml. How can this be accomplished?

2018-11-12 18:11:56 -0600 received badge  Student (source)
2018-07-09 15:26:24 -0600 received badge  Famous Question (source)
2018-05-30 18:45:48 -0600 received badge  Famous Question (source)
2018-05-30 18:45:48 -0600 received badge  Notable Question (source)
2018-03-27 15:35:32 -0600 received badge  Famous Question (source)
2017-12-06 14:53:54 -0600 received badge  Notable Question (source)
2017-10-07 03:29:47 -0600 received badge  Popular Question (source)
2017-09-09 11:21:59 -0600 received badge  Notable Question (source)
2017-09-01 04:36:31 -0600 answered a question rosparam load yaml file from another package

Turns out placing the rosparam tag inside a node tag body leads to the above behaviour, but loading the yaml outside wor

2017-08-31 09:15:05 -0600 edited question rosparam load yaml file from another package

rosparam load yaml file from another package I have a yaml file in a nother package with this content: camera_frame: py

2017-08-31 09:15:05 -0600 received badge  Editor (source)
2017-08-31 08:52:32 -0600 edited question rosparam load yaml file from another package

rosparam load yaml file from another package I have one package which has a config file with parameters pylon_camera/con

2017-08-31 08:52:01 -0600 asked a question rosparam load yaml file from another package

rosparam load yaml file from another package I have one package which has a config file with parameters pylon_camera/con

2017-08-22 15:13:40 -0600 received badge  Popular Question (source)
2017-08-15 11:13:55 -0600 commented answer How can I load a yaml rosparam file for a nodelet?

These two code snippets look as if they were doing the same thing. isn't "~" a private namespace?

2017-08-15 11:12:37 -0600 commented question How can I load a yaml rosparam file for a nodelet?

What do you mean it doesn't support nodelets? I simply made the required additions to the codebase, it's basically as si

2017-08-15 05:29:53 -0600 asked a question How can I load a yaml rosparam file for a nodelet?

How can I load a yaml rosparam file for a nodelet? Usually, when writing a launch file and wanting to set many rosparams

2017-07-23 08:35:14 -0600 received badge  Enthusiast
2017-07-13 13:15:32 -0600 received badge  Supporter (source)
2017-07-13 13:13:58 -0600 received badge  Popular Question (source)
2017-07-12 11:24:35 -0600 asked a question How can I react to node/nodelet shutdown?

How can I react to node/nodelet shutdown? I would like to have my node save some data before it is shut down, i.e, when

2017-07-12 11:24:35 -0600 asked a question Loading nodelets and nodes in the same launch file causes LibraryUnloadException

Loading nodelets and nodes in the same launch file causes LibraryUnloadException I have made a launch file that loads th