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

ros getparam() question

asked 2014-04-26 22:18:07 -0600

Yantian_Zha gravatar image

updated 2014-04-26 22:21:43 -0600

Hi all,

In reading the tutorial "http://wiki.ros.org/roscpp/Overview/Parameter%20Server", I'm confused in understanding "nh.getParam("/global_name", global_name)". Should I interpret it as "get "/global_name" from the parameter server, and put it in "global_name""? And the "/" means what?

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-27 01:30:37 -0600

dornhege gravatar image

Yes. "/global_name" is the name of the variable on the parameter server. global_name is the variable in your code. The "/" is part of the variable name.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-26 22:18:07 -0600

Seen: 6,567 times

Last updated: Apr 27 '14