Ask Your Question
1

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 "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 -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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 6,293 times

Last updated: Apr 27 '14