pub const REFUSE_INIT_ARGS: &str = "nros::init_with_args / nros::Context::new was given a --ros-args \
argument nano-ros cannot honour. Proceeding would DISCARD it -- the \
'compiles and differs' the rule forbids. HONOURED inside --ros-args ... --: -r / --remap \
[node:]from:=to, applied as the FALLBACK beneath any remap the launch file projected for the same \
name (rcl's local-before-global), through Context::create_executor / \
create_executor_in; and, in an image with a parameter store, -p / --param [node:]name:=value and \
--params-file <path>, applied when a node declares the parameter. REFUSED: \
node-identity remaps (__node, __name, __ns), -e / --enclave, the log flags, any token that is not a \
ROS flag, and -p / --params-file in an image without a parameter store. A nros configure \
image does not read argv at all: its launch remaps and parameters are projected into the \
GENERATED ENTRY at BUILD time.";Expand description
The refusal init_with_args and Context::new emit for a ROS
argument nano-ros does not honour. Panics carry this text followed by the
refused argument. NROS_RCLCPP_REFUSE_INIT_ARGV is the C++ twin
(packages/api/nros-cpp/include/rclcpp/logging.hpp), and it
states the same honoured and refused sets, from the same parser.
The rule is the ROS 2 adoption rule; the remap fallback follows rcl’s local-before-global order, and the parameter application is the launch tree’s.