We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a5d6a commit 28e4b1bCopy full SHA for 28e4b1b
1 file changed
rclcpp/include/rclcpp/context.hpp
@@ -65,8 +65,11 @@ using PreShutdownCallbackHandle = ShutdownCallbackHandle;
65
/// Context which encapsulates shared state between nodes and other similar entities.
66
/**
67
* A context also represents the lifecycle between init and shutdown of rclcpp.
68
- * It is often used in conjunction with rclcpp::init, or rclcpp::init_local,
69
- * and rclcpp::shutdown.
+ * Nodes may be attached to a particular context by passing to the rclcpp::Node
+ * constructor a rclcpp::NodeOptions instance in which the Context is set via
70
+ * rclcpp::NodeOptions::context.
71
+ * Nodes will be automatically removed from the context when destructed.
72
+ * Contexts may be shutdown by calling rclcpp::shutdown.
73
*/
74
class Context : public std::enable_shared_from_this<Context>
75
{
0 commit comments