CARLA
Public Member Functions | Public Attributes | List of all members
carla::rpc::VehiclePhysicsControl Class Reference

#include <VehiclePhysicsControl.h>

+ Collaboration diagram for carla::rpc::VehiclePhysicsControl:

Public Member Functions

const std::vector< GearPhysicsControl > & GetForwardGears () const
 
const std::vector< geom::Vector2D > & GetSteeringCurve () const
 
const std::vector< geom::Vector2D > & GetTorqueCurve () const
 
bool GetUseSweepWheelCollision ()
 
const std::vector< WheelPhysicsControl > & GetWheels () const
 
 MSGPACK_DEFINE_ARRAY (torque_curve, max_rpm, moi, damping_rate_full_throttle, damping_rate_zero_throttle_clutch_engaged, damping_rate_zero_throttle_clutch_disengaged, use_gear_autobox, gear_switch_time, clutch_strength, final_ratio, forward_gears, mass, drag_coefficient, center_of_mass, steering_curve, wheels, use_sweep_wheel_collision)
 
bool operator!= (const VehiclePhysicsControl &rhs) const
 
bool operator== (const VehiclePhysicsControl &rhs) const
 
void SetForwardGears (std::vector< GearPhysicsControl > &in_forward_gears)
 
void SetSteeringCurve (std::vector< geom::Vector2D > &in_steering_curve)
 
void SetTorqueCurve (std::vector< geom::Vector2D > &in_torque_curve)
 
void SetUseSweepWheelCollision (bool in_sweep)
 
void SetWheels (std::vector< WheelPhysicsControl > &in_wheels)
 
 VehiclePhysicsControl ()=default
 
 VehiclePhysicsControl (const std::vector< carla::geom::Vector2D > &in_torque_curve, float in_max_rpm, float in_moi, float in_damping_rate_full_throttle, float in_damping_rate_zero_throttle_clutch_engaged, float in_damping_rate_zero_throttle_clutch_disengaged, bool in_use_gear_autobox, float in_gear_switch_time, float in_clutch_strength, float in_final_ratio, std::vector< GearPhysicsControl > &in_forward_gears, float in_mass, float in_drag_coefficient, geom::Location in_center_of_mass, const std::vector< carla::geom::Vector2D > &in_steering_curve, std::vector< WheelPhysicsControl > &in_wheels, bool in_use_sweep_wheel_collision)
 

Public Attributes

geom::Location center_of_mass
 
float clutch_strength = 10.0f
 
float damping_rate_full_throttle = 0.15f
 
float damping_rate_zero_throttle_clutch_disengaged = 0.35f
 
float damping_rate_zero_throttle_clutch_engaged = 2.0f
 
float drag_coefficient = 0.3f
 
float final_ratio = 4.0f
 
std::vector< GearPhysicsControlforward_gears
 
float gear_switch_time = 0.5f
 
float mass = 1000.0f
 
float max_rpm = 5000.0f
 
float moi = 1.0f
 
std::vector< geom::Vector2Dsteering_curve = {geom::Vector2D(0.0f, 1.0f), geom::Vector2D(10.0f, 0.5f)}
 
std::vector< geom::Vector2Dtorque_curve = {geom::Vector2D(0.0f, 500.0f), geom::Vector2D(5000.0f, 500.0f)}
 
bool use_gear_autobox = true
 
bool use_sweep_wheel_collision = false
 
std::vector< WheelPhysicsControlwheels
 

Detailed Description

Definition at line 21 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

Constructor & Destructor Documentation

◆ VehiclePhysicsControl() [1/2]

carla::rpc::VehiclePhysicsControl::VehiclePhysicsControl ( )
default

Referenced by operator==().

+ Here is the caller graph for this function:

◆ VehiclePhysicsControl() [2/2]

carla::rpc::VehiclePhysicsControl::VehiclePhysicsControl ( const std::vector< carla::geom::Vector2D > &  in_torque_curve,
float  in_max_rpm,
float  in_moi,
float  in_damping_rate_full_throttle,
float  in_damping_rate_zero_throttle_clutch_engaged,
float  in_damping_rate_zero_throttle_clutch_disengaged,
bool  in_use_gear_autobox,
float  in_gear_switch_time,
float  in_clutch_strength,
float  in_final_ratio,
std::vector< GearPhysicsControl > &  in_forward_gears,
float  in_mass,
float  in_drag_coefficient,
geom::Location  in_center_of_mass,
const std::vector< carla::geom::Vector2D > &  in_steering_curve,
std::vector< WheelPhysicsControl > &  in_wheels,
bool  in_use_sweep_wheel_collision 
)
inline

Member Function Documentation

◆ GetForwardGears()

const std::vector<GearPhysicsControl>& carla::rpc::VehiclePhysicsControl::GetForwardGears ( ) const
inline

Definition at line 64 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References forward_gears.

◆ GetSteeringCurve()

const std::vector<geom::Vector2D>& carla::rpc::VehiclePhysicsControl::GetSteeringCurve ( ) const
inline

Definition at line 88 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References steering_curve.

◆ GetTorqueCurve()

const std::vector<geom::Vector2D>& carla::rpc::VehiclePhysicsControl::GetTorqueCurve ( ) const
inline

Definition at line 80 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References torque_curve.

◆ GetUseSweepWheelCollision()

bool carla::rpc::VehiclePhysicsControl::GetUseSweepWheelCollision ( )
inline

◆ GetWheels()

const std::vector<WheelPhysicsControl>& carla::rpc::VehiclePhysicsControl::GetWheels ( ) const
inline

Definition at line 72 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References wheels.

◆ MSGPACK_DEFINE_ARRAY()

Referenced by operator==().

+ Here is the caller graph for this function:

◆ operator!=()

bool carla::rpc::VehiclePhysicsControl::operator!= ( const VehiclePhysicsControl rhs) const
inline

◆ operator==()

bool carla::rpc::VehiclePhysicsControl::operator== ( const VehiclePhysicsControl rhs) const
inline

◆ SetForwardGears()

void carla::rpc::VehiclePhysicsControl::SetForwardGears ( std::vector< GearPhysicsControl > &  in_forward_gears)
inline

Definition at line 68 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References forward_gears.

◆ SetSteeringCurve()

void carla::rpc::VehiclePhysicsControl::SetSteeringCurve ( std::vector< geom::Vector2D > &  in_steering_curve)
inline

Definition at line 92 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References steering_curve.

◆ SetTorqueCurve()

void carla::rpc::VehiclePhysicsControl::SetTorqueCurve ( std::vector< geom::Vector2D > &  in_torque_curve)
inline

Definition at line 84 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References torque_curve.

◆ SetUseSweepWheelCollision()

void carla::rpc::VehiclePhysicsControl::SetUseSweepWheelCollision ( bool  in_sweep)
inline

◆ SetWheels()

void carla::rpc::VehiclePhysicsControl::SetWheels ( std::vector< WheelPhysicsControl > &  in_wheels)
inline

Definition at line 76 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.

References wheels.

Member Data Documentation

◆ center_of_mass

geom::Location carla::rpc::VehiclePhysicsControl::center_of_mass

◆ clutch_strength

float carla::rpc::VehiclePhysicsControl::clutch_strength = 10.0f

◆ damping_rate_full_throttle

float carla::rpc::VehiclePhysicsControl::damping_rate_full_throttle = 0.15f

◆ damping_rate_zero_throttle_clutch_disengaged

float carla::rpc::VehiclePhysicsControl::damping_rate_zero_throttle_clutch_disengaged = 0.35f

◆ damping_rate_zero_throttle_clutch_engaged

float carla::rpc::VehiclePhysicsControl::damping_rate_zero_throttle_clutch_engaged = 2.0f

◆ drag_coefficient

float carla::rpc::VehiclePhysicsControl::drag_coefficient = 0.3f

◆ final_ratio

float carla::rpc::VehiclePhysicsControl::final_ratio = 4.0f

◆ forward_gears

std::vector<GearPhysicsControl> carla::rpc::VehiclePhysicsControl::forward_gears

◆ gear_switch_time

float carla::rpc::VehiclePhysicsControl::gear_switch_time = 0.5f

◆ mass

float carla::rpc::VehiclePhysicsControl::mass = 1000.0f

◆ max_rpm

float carla::rpc::VehiclePhysicsControl::max_rpm = 5000.0f

◆ moi

float carla::rpc::VehiclePhysicsControl::moi = 1.0f

◆ steering_curve

std::vector<geom::Vector2D> carla::rpc::VehiclePhysicsControl::steering_curve = {geom::Vector2D(0.0f, 1.0f), geom::Vector2D(10.0f, 0.5f)}

◆ torque_curve

std::vector<geom::Vector2D> carla::rpc::VehiclePhysicsControl::torque_curve = {geom::Vector2D(0.0f, 500.0f), geom::Vector2D(5000.0f, 500.0f)}

◆ use_gear_autobox

bool carla::rpc::VehiclePhysicsControl::use_gear_autobox = true

◆ use_sweep_wheel_collision

bool carla::rpc::VehiclePhysicsControl::use_sweep_wheel_collision = false

◆ wheels

std::vector<WheelPhysicsControl> carla::rpc::VehiclePhysicsControl::wheels

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