Declares the vehicle parameters for the node and creates a VehicleConstants object.
It creates a rclcpp::SyncParametersClient
object to reach parameters of the vehicle_constants_manager_node
and attempts to retrieve all required parameters from the node.
- Exceptions
-
std::runtime_error | if VehicleConstants object fails to initialize |
rclcpp::exceptions::InvalidParameterTypeException | if declare_parameter gets a value with wrong type |
rclcpp::exceptions::InvalidParameterValueException | if initial value fails to be set. |
- Returns
- A VehicleConstants object containing vehicle constant parameters.