Class LifecycleNode
Defined in File lifecycle_node.hpp
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public rclcpp_lifecycle::LifecycleNode
Class Documentation
A lifecycle node wrapper to enable common Nav2 needs such as manipulating parameters.
Public Functions
A lifecycle node constructor.
- Parameters:
node_name – Name for the node
namespace – Namespace for the node, if any
options – Node options
Declare a parameter that has no integer or floating point range constraints.
- Parameters:
node_name – Name of parameter
default_value – Default node value to add
description – Node description
additional_constraints – Any additional constraints on the parameters to list
read_only – Whether this param should be considered read only
Declare a parameter that has a floating point range constraint.
- Parameters:
node_name – Name of parameter
default_value – Default node value to add
fp_range – floating point range
description – Node description
additional_constraints – Any additional constraints on the parameters to list
read_only – Whether this param should be considered read only
Declare a parameter that has an integer range constraint.
- Parameters:
node_name – Name of parameter
default_value – Default node value to add
integer_range – Integer range
description – Node description
additional_constraints – Any additional constraints on the parameters to list
read_only – Whether this param should be considered read only
Get a shared pointer of this.
Abstracted on_error state transition callback, since unimplemented as of 2020 in the managed ROS2 node state machine.
- Parameters:
state – State prior to error transition
- Returns:
Return type for success or failed transition to error state
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.
Create bond connection to lifecycle manager.
Destroy bond connection to lifecycle manager.
Protected Functions
Print notifications for lifecycle node.
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.
Run some common cleanup steps shared between rcl preshutdown and destruction.
Protected Attributes
Public Members
Public Members