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

How to config.yaml file as parameter to node in eclipse IDE?

asked 2018-05-25 03:49:02 -0500

karthikk gravatar image

updated 2018-05-26 00:07:49 -0500

jayess gravatar image

As in the launch file where we pass parameter to node from config.yaml, how to replicate that from launching eclipse.

<node name= "husky" pkg ="husky_highlevel_controller" 
  type="husky_highlevel_controller"output="screen">
 <rosparam command="load" file="$(find husky_highlevel_controller)/config/config.yaml" />
</node>
edit retag flag offensive close merge delete

Comments

roslaunch is loading the yaml file into the parameter server; they're not passed directly to the node. You can probably do the same with rosparam load : http://wiki.ros.org/rosparam#rosparam...

ahendrix gravatar image ahendrix  ( 2018-05-26 02:51:46 -0500 )edit

Thank you for your insight, How to load ros param from cpp?

karthikk gravatar image karthikk  ( 2018-05-26 07:47:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-27 12:04:20 -0500

If I'm right, are you asking how to load a parameter from a c++ node which you are developing using the eclipse IDE?

If so there are some examples here that show you how to load parameters with a range of data types in a c++ node.

Does this help?

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-05-25 03:49:02 -0500

Seen: 254 times

Last updated: May 27 '18