Function rclcpp::init_and_remove_ros_arguments

Function Documentation

std::vector<std::string> rclcpp::init_and_remove_ros_arguments(int argc, char const *const *argv, const InitOptions &init_options = InitOptions())

Initialize communications via the rmw implementation and set up a global signal handler.

Additionally removes ROS-specific arguments from the argument vector.

See also

rclcpp::Context::init() for more details on arguments and possible exceptions

Throws:

anything – remove_ros_arguments can throw

Returns:

Members of the argument vector that are not ROS arguments.