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

ros getparam() question

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

Yantian_Zha gravatar image

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

Hi all,

In reading the tutorial "", 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?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

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


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

Seen: 6,554 times

Last updated: Apr 27 '14