Function as2_motion_controller_param_utils::readDoubleArray
Defined in File param_utils.hpp
Function Documentation
-
std::vector<double> as2_motion_controller_param_utils::readDoubleArray(rclcpp::Node *node, const std::string &name, std::size_t expected_size = 0)
Read a variable-size double array parameter.
If expected_size != 0, the size is validated and a mismatch is fatal (RCLCPP_FATAL + throw). When expected_size == 0, any size is accepted.
- Parameters:
node – Pointer to the ROS 2 node.
name – Fully-qualified parameter name.
expected_size – Expected number of elements, or 0 to skip the check.
- Returns:
Vector with the parameter values.