Bug: set_parameter
will ignore everything but the first parameter
#108
Labels
bug
Something isn't working
set_parameter
will ignore everything but the first parameter
#108
Some callbacks for parameter changes (registered via
rclcpp::Node::add_on_set_parameters_callback
) use short-circuit||
operators to chain multipleget_param
calls, e.g.:As soon as one of those parameters is found,
get_param
returnstrue
, thus stopping execution early (short-circuit operator).The correct operator to use would be the
|
operator, which does not short-circuit and thus allget_param
statements are executed:Functions exhibiting this behavior:
The text was updated successfully, but these errors were encountered: