Autoware.Auto
autoware::common::vehicle_constants_manager Namespace Reference

Classes

struct  VehicleConstants
 A struct that holds vehicle specific parameters that don't change over time. More...
 

Typedefs

using float64_t = VehicleConstants::float64_t
 

Functions

VEHICLE_CONSTANTS_MANAGER_PUBLIC VehicleConstants declare_and_get_vehicle_constants (rclcpp::Node &node)
 Declares the vehicle parameters for the node and creates a VehicleConstants object. More...
 

Typedef Documentation

◆ float64_t

Function Documentation

◆ declare_and_get_vehicle_constants()

VehicleConstants autoware::common::vehicle_constants_manager::declare_and_get_vehicle_constants ( rclcpp::Node &  node)

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_errorif VehicleConstants object fails to initialize
rclcpp::exceptions::InvalidParameterTypeExceptionif declare_parameter gets a value with wrong type
rclcpp::exceptions::InvalidParameterValueExceptionif initial value fails to be set.
Returns
A VehicleConstants object containing vehicle constant parameters.