Commit 3bed8ed
Add support for enable_lifecycle_services parameter using nav2 utilities
Expose the enable_communication_interface parameter from rclcpp_lifecycle::LifecycleNode
through nav2's LifecycleNode wrapper using proper nav2 utilities:
- Use nav2::declare_parameter_if_not_declared() with default value true
- Use get_parameter() for value retrieval
- Create temporary node in static helper to properly access nav2 utilities
- Declare parameter in constructor body for future use
This allows users to disable lifecycle communication interfaces when manually
managing node lifecycle transitions by setting the parameter via:
- NodeOptions parameter overrides
- ROS parameter files
- Launch file parameters
Fixes #5305
Co-authored-by: Steve Macenski <SteveMacenski@users.noreply.github.com>1 parent ce87527 commit 3bed8ed
File tree
1 file changed
+26
-1
lines changed1 file changed
+26
-1
lines changedLines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
338 | 342 | | |
339 | 343 | | |
340 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
341 | 366 | | |
342 | 367 | | |
343 | 368 | | |
| |||
0 commit comments