Class LifecycleManager
Defined in File lifecycle_manager.hpp
Inheritance Relationships
Base Type
public rclcpp::Node
Class Documentation
Implements service interface to transition the lifecycle nodes of Nav2 stack. It receives transition request and then uses lifecycle interface to change lifecycle node’s state.
Public Functions
A constructor for nav2_lifecycle_manager::LifecycleManager.
- Parameters:
options – Additional options to control creation of the node.
A destructor for nav2_lifecycle_manager::LifecycleManager.
Protected Functions
Lifecycle node manager callback function.
- Parameters:
request_header – Header of the service request
request – Service request
reponse – Service response
Trigger callback function checks if the managed nodes are in active state.
- Parameters:
request_header – Header of the request
request – Service request
reponse – Service response
Start up managed nodes.
- Returns:
true or false
Configures the managed nodes.
- Returns:
true or false
Cleanups the managed nodes.
- Returns:
true or false
Deactivate, clean up and shut down all the managed nodes.
- Returns:
true or false
Reset all the managed nodes.
- Returns:
true or false
Pause all the managed nodes.
- Returns:
true or false
Resume all the managed nodes.
- Returns:
true or false
Perform preshutdown activities before our Context is shutdown. Note that this is related to our Context’s shutdown sequence, not the lifecycle node state machine or shutdown().
Support function for creating service clients.
Support function for shutdown.
Destroy all the lifecycle service clients.
Support function for creating bond timer.
Support function for creating bond connections.
Support function for killing bond connections.
@ brief Support function for checking on bond connections will take down system if there’s something non-responsive
@ brief Support function for checking on bond connections will bring back the system if something goes from non-responsive to responsive
For a node, transition to the new target state.
For each node in the map, transition to the new target state.
Helper function to highlight the output on the console.
function to check the state of Nav2 nodes
Register our preshutdown callback for this Node’s rcl Context. The callback fires before this Node’s Context is shutdown. Note this is not directly related to the lifecycle state machine or the shutdown() instance function.
function to check if managed nodes are active
Protected Attributes