ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Loading rosparam in a remote computer

asked 2014-11-04 11:33:34 -0600

updated 2014-11-04 12:27:55 -0600

ahendrix gravatar image

Hi guys,

I'm trying to load a configuration file (.yaml) in a remote computer using rosparam as is shown in the following code:


    <!-- Machine -->
    <machine name="localhost" address="localhost" env-loader="/opt/ros/hydro/"/>
    <arg name="machine" default="localhost" />

    <arg name="parameters" default="hierarchical_planner"/>

    <node pkg="dwl_planners" type="hierarchical_planner_node" name="hierarchical_planner" output="screen" machine="$(arg machine)"
    launch-prefix="xterm -e gdb --args">
        <!-- load hierarchical planner configurations from YAML file to parameter server -->
        <rosparam file="$(find dwl_planners)/config/$(arg parameters).yaml" command="load"/>

        <remap from="reward_map" to="/reward_map" />
        <remap from="obstacle_map" to="/obstacle_map" />
        <!-- fixed map frame (set to 'map' if SLAM or localization running!) -->
        <param name="world_frame" type="string" value="odom" />
        <!-- Base frame of the robot -->
        <param name="base_frame" type="string" value="base_link" />


Nevertheless, this method isn't loading the configuration because is searching in the local machine. Moreover, there isn't a tag machine, like in the node, that allow us to search in a remote computer.

Is there a method for doing this? Or This is a limitation of rosparam.

Thank in advance

Carlos Mastalli

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-11-04 16:59:23 -0600

lebowski gravatar image

updated 2014-11-04 17:01:56 -0600

as far as i know there is no way to do this. $(find ... ) will always look on the machine you run the launchfile. i was looking for a solution for some time as well.

edit: this might be the same: link

edit flag offensive delete link more

answered 2014-11-04 12:29:13 -0600

ahendrix gravatar image

All of the ROS parameters are stored in the ROS master. Have you tried changing your ROS_MASTER_URI environment variable to point to the ROS master on a different computer?

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-11-04 11:33:34 -0600

Seen: 653 times

Last updated: Nov 04 '14