Ask Your Question
1

Accessing float/double list using rosparam

asked 2013-07-03 03:07:16 -0500

Subhasis gravatar image

updated 2013-07-03 03:08:00 -0500

Hi All,

I am having a problem to access a float array using rosparam.

I have my parameters inside a lunch file as given below.

<launch> <node name="target_follow" pkg="target_follow" type="target_follow" respawn="false" output="screen" required="true"> <rosparam> max_height: 1 min_height: 0.4 debug_windows: false debug_messages: false camera_param: [543.848868, 0.0, 297.599352,297.599352, 0.0, 543.745831, 240.206525, 0.0, 0.0, 1.0] </rosparam> </node> </launch>

I am able to access all my parameters by following way.

    ros::param::getCached("/target_follow/max_height", maxHeight);
    ros::param::getCached("/target_follow/min_height", minHeight);
    ros::param::getCached("/target_follow/debug_windows", showDebugWindows);
    ros::param::getCached("/target_follow/debug_messages", showDebugMessages);

can someone suggest me how can I access the list without a nodehandle object;

Regards, Subhasis

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-07-03 05:39:17 -0500

dornhege gravatar image

You'll need to do that as described here.

edit flag offensive delete link more

Comments

Thanks. It works fine now.

Subhasis gravatar imageSubhasis ( 2013-07-04 23:36:49 -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

Stats

Asked: 2013-07-03 03:07:16 -0500

Seen: 4,639 times

Last updated: Jul 03 '13