File tree Expand file tree Collapse file tree 4 files changed +16
-9
lines changed
include/generate_parameter_library_example_external
parameter_traits/include/parameter_traits Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
- # Example:
1
+ # Using parameters defined in another package
2
+
3
+ This package is a minimal example demonstrating how the parameters defined in ` generate_parameter_library/example `
4
+ can be used in a different package (i.e. the current one : ` generate_parameter_library/example_external ` ).
5
+
6
+ In particular, check the ` CMakeLists.txt ` file and the ` #include ` instructions in the source files.
2
7
3
8
## Build the node
4
9
@@ -93,7 +98,8 @@ You should see:
93
98
use_sim_time
94
99
```
95
100
96
- All parameter are automatically declared and callbacks are setup by default. You can set a parameter by typing:
101
+ All parameters are automatically declared and callbacks are setup by default.
102
+ You can set a parameter by typing:
97
103
98
104
` ros2 param set /admittance_controller control.frame.id new_frame `
99
105
@@ -103,7 +109,8 @@ You should see:
103
109
104
110
Congratulations, you updated the parameter!
105
111
106
- If you try to set a parameter that is read only, you will get an error. Running the following
112
+ If you try to set a parameter that is read only, you will get an error.
113
+ Running the following
107
114
108
115
` ros2 param set /admittance_controller command_interfaces ["velocity"] `
109
116
Original file line number Diff line number Diff line change 1
- // Copyright 2022 PickNik Inc.
1
+ // Copyright 2025 Forssea Robotics
2
2
//
3
3
// Redistribution and use in source and binary forms, with or without
4
4
// modification, are permitted provided that the following conditions are met:
10
10
// notice, this list of conditions and the following disclaimer in the
11
11
// documentation and/or other materials provided with the distribution.
12
12
//
13
- // * Neither the name of the PickNik Inc. nor the names of its
13
+ // * Neither the name of Forssea Robotics nor the names of its
14
14
// contributors may be used to endorse or promote products derived from
15
15
// this software without specific prior written permission.
16
16
//
Original file line number Diff line number Diff line change 1
- // Copyright 2022 PickNik Inc.
1
+ // Copyright 2025 Forssea Robotics
2
2
//
3
3
// Redistribution and use in source and binary forms, with or without
4
4
// modification, are permitted provided that the following conditions are met:
10
10
// notice, this list of conditions and the following disclaimer in the
11
11
// documentation and/or other materials provided with the distribution.
12
12
//
13
- // * Neither the name of the PickNik Inc. nor the names of its
13
+ // * Neither the name of Forssea Robotics nor the names of its
14
14
// contributors may be used to endorse or promote products derived from
15
15
// this software without specific prior written permission.
16
16
//
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ template <typename... Args>
43
43
[[deprecated(
44
44
" When returning tl::expected<void, std::string> you can call fmt::format "
45
45
" directly." )]] auto
46
- ERROR (const std::string& format, Args... args)
47
- -> tl::expected<void , std::string> {
46
+ ERROR (const std::string& format,
47
+ Args... args) -> tl::expected<void , std::string> {
48
48
return tl::make_unexpected (fmt::format (format, args...));
49
49
}
50
50
You can’t perform that action at this time.
0 commit comments