Autoware.Auto
autoware::motion::planning::parking_planner::VehicleCommand< T > Class Template Reference

Class to represent the inputs of a vehicle. More...

#include <parking_planner_types.hpp>

Public Member Functions

 VehicleCommand () noexcept
 
 VehicleCommand (T steering_rate, T throttle) noexcept
 
std::vector< T > serialize (void) const
 Turn the object into flat vector of doubles (for use with numerical code) More...
 
get_steering_rate () const noexcept
 
get_throttle () const noexcept
 
void set_steering_rate (T steering_rate) noexcept
 
void set_throttle (T throttle) noexcept
 

Static Public Member Functions

static VehicleCommand deserialize (std::vector< T > serialized_commands)
 Turn a previously serialized command vector back into a VehicleCommand object. More...
 
static constexpr std::size_t get_serialized_length () noexcept
 Get number of scalars a serialized version of this object has. More...
 

Detailed Description

template<typename T>
class autoware::motion::planning::parking_planner::VehicleCommand< T >

Class to represent the inputs of a vehicle.

Constructor & Destructor Documentation

◆ VehicleCommand() [1/2]

template<typename T>
autoware::motion::planning::parking_planner::VehicleCommand< T >::VehicleCommand ( )
inlinenoexcept

◆ VehicleCommand() [2/2]

template<typename T>
autoware::motion::planning::parking_planner::VehicleCommand< T >::VehicleCommand ( steering_rate,
throttle 
)
inlinenoexcept

Member Function Documentation

◆ deserialize()

template<typename T>
static VehicleCommand autoware::motion::planning::parking_planner::VehicleCommand< T >::deserialize ( std::vector< T >  serialized_commands)
inlinestatic

Turn a previously serialized command vector back into a VehicleCommand object.

◆ get_serialized_length()

template<typename T>
static constexpr std::size_t autoware::motion::planning::parking_planner::VehicleCommand< T >::get_serialized_length ( )
inlinestaticnoexcept

Get number of scalars a serialized version of this object has.

◆ get_steering_rate()

template<typename T>
T autoware::motion::planning::parking_planner::VehicleCommand< T >::get_steering_rate ( ) const
inlinenoexcept

◆ get_throttle()

template<typename T>
T autoware::motion::planning::parking_planner::VehicleCommand< T >::get_throttle ( ) const
inlinenoexcept

◆ serialize()

template<typename T>
std::vector<T> autoware::motion::planning::parking_planner::VehicleCommand< T >::serialize ( void  ) const
inline

Turn the object into flat vector of doubles (for use with numerical code)

◆ set_steering_rate()

template<typename T>
void autoware::motion::planning::parking_planner::VehicleCommand< T >::set_steering_rate ( steering_rate)
inlinenoexcept

◆ set_throttle()

template<typename T>
void autoware::motion::planning::parking_planner::VehicleCommand< T >::set_throttle ( throttle)
inlinenoexcept

The documentation for this class was generated from the following file: