Template Function rclcpp::copy_all_parameter_values

Function Documentation

template<typename NodeT1, typename NodeT2>
void rclcpp::copy_all_parameter_values(const NodeT1 &source, const NodeT2 &destination, const bool override_existing_params = false)

Copy all parameters from one source node to another destination node. May throw exceptions if parameters from source are uninitialized or undeclared.

Parameters:
  • sourceNode to copy parameters from

  • destinationNode to copy parameters to

  • override_existing_params – Default false. Whether to override existing destination params if both the source and destination contain the same parameter.