Skip to content

Commit

Permalink
Update Parameters.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marip8 committed Feb 26, 2019
1 parent 97a27d7 commit 0f9797d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gh_pages/_source/session2/Parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ So far we haven't used the request field, `base_frame`, for anything. In this ex
3. Create a temporary string object, `std::string base_frame;`, and then use the private node handle's [API](http://docs.ros.org/indigo/api/roscpp/html/classros_1_1NodeHandle.html) to load the parameter `"base_frame"`.
``` c++
std::string base_frame;
private_node_handle.param<std::string>("base_frame", base_frame, "world"); // parameter name, string object reference, default value
```
* _`base_frame` parameter should be read after the `private_node_handle` is declared, but before `app.start()` is called_
Expand Down

0 comments on commit 0f9797d

Please sign in to comment.