Skip to content

Commit 6d88bc2

Browse files
authored
Update accessing mapped parameters in README (#234)
1 parent 4e92cc4 commit 6d88bc2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,19 @@ cpp_name_space:
350350
type: double_array
351351
```
352352

353-
The generated parameter value for the nested map example can then be accessed with `params.gain.joints_map.at("joint1").interfaces_map.at("position").value`.
353+
The generated parameter value for the nested map example can then be accessed with:
354+
355+
**C++**
356+
357+
```c++
358+
params.gain.joints_map.at("joint1").interfaces_map.at("position").value
359+
```
360+
361+
**Python**
362+
363+
```python
364+
params.gain.get_entry("joint1").get_entry("position").value
365+
```
354366

355367
### Use generated struct in Cpp
356368
The generated header file is named based on the target library name you passed as the first argument to the cmake function.

0 commit comments

Comments
 (0)