Commit bfce96b
committed
Declare parameters uninitialized (#1673)
* Declare parameters uninitialized
Fixes #1649
Allow declaring parameters without an initial value or override.
This was possible prior to Galactic, but was made impossible since we started enforcing the types of parameters in Galactic.
Signed-off-by: Jacob Perron <[email protected]>
* Remove assertion
Signed-off-by: Jacob Perron <[email protected]>
* Throw NoParameterOverrideProvided exception if accessed before initialized
Signed-off-by: Jacob Perron <[email protected]>
* Add test getting static parameter after it is set
Signed-off-by: Jacob Perron <[email protected]>
* Do not throw on access of uninitialized dynamically typed parameter
Signed-off-by: Jacob Perron <[email protected]>
* Rename exception type
Signed-off-by: Jacob Perron <[email protected]>
* Remove unused exception type
Signed-off-by: Jacob Perron <[email protected]>
* Uncrustify
Signed-off-by: Jacob Perron <[email protected]>1 parent e9313c3 commit bfce96b
File tree
3 files changed
+50
-20
lines changed- rclcpp
- include/rclcpp/exceptions
- src/rclcpp/node_interfaces
- test/rclcpp
3 files changed
+50
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
| 294 | + | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
352 | 367 | | |
353 | 368 | | |
354 | 369 | | |
| |||
413 | 428 | | |
414 | 429 | | |
415 | 430 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | 431 | | |
425 | 432 | | |
426 | 433 | | |
| |||
806 | 813 | | |
807 | 814 | | |
808 | 815 | | |
809 | | - | |
| 816 | + | |
810 | 817 | | |
811 | | - | |
812 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
813 | 825 | | |
814 | | - | |
815 | | - | |
| 826 | + | |
| 827 | + | |
816 | 828 | | |
| 829 | + | |
| 830 | + | |
817 | 831 | | |
818 | 832 | | |
819 | 833 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
336 | 337 | | |
337 | | - | |
| 338 | + | |
338 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
339 | 344 | | |
340 | 345 | | |
341 | 346 | | |
| |||
2761 | 2766 | | |
2762 | 2767 | | |
2763 | 2768 | | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
2764 | 2772 | | |
2765 | | - | |
2766 | | - | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
2767 | 2783 | | |
2768 | 2784 | | |
2769 | 2785 | | |
| |||
0 commit comments