nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
Loading...
Searching...
No Matches
init

Library initialisation, the global session, and rclcpp::ok().

Library initialisation, the global session, and rclcpp::ok().

rclcpp::init_in() boots the transport; rclcpp::shutdown_in() tears it down. rclcpp::ok() reports whether the global session is alive (false after shutdown or after a fatal transport error).

RCLCPP_TRY(rclcpp::init_in("tcp/127.0.0.1:7447"));
Result shutdown_in()
Definition node.hpp:2945
Result init_in(const char *locator=nullptr, uint8_t domain_id=0)
Definition node.hpp:2785
Result spin_once(int32_t timeout_ms=10)
Definition rclcpp.hpp:97
bool ok()
Definition node.hpp:3031
#define RCLCPP_TRY(expr)
Definition result.hpp:258
See also
node, Getting Started