CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
carla::rpc::VehiclePhysicsControl类 参考

#include <VehiclePhysicsControl.h>

+ carla::rpc::VehiclePhysicsControl 的协作图:

Public 成员函数

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)
 
 operator FVehiclePhysicsControl () const
 
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 FVehiclePhysicsControl &Control)
 
 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 属性

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
 

详细描述

在文件 LibCarla/source/carla/rpc/VehiclePhysicsControl.h21 行定义.

构造及析构函数说明

◆ VehiclePhysicsControl() [1/3]

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

◆ VehiclePhysicsControl() [2/3]

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

◆ VehiclePhysicsControl() [3/3]

carla::rpc::VehiclePhysicsControl::VehiclePhysicsControl ( const FVehiclePhysicsControl & Control)
inline

成员函数说明

◆ GetForwardGears()

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

◆ GetSteeringCurve()

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

◆ GetTorqueCurve()

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

◆ GetUseSweepWheelCollision()

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

◆ GetWheels()

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

在文件 LibCarla/source/carla/rpc/VehiclePhysicsControl.h72 行定义.

引用了 wheels.

◆ MSGPACK_DEFINE_ARRAY()

◆ operator FVehiclePhysicsControl()

carla::rpc::VehiclePhysicsControl::operator FVehiclePhysicsControl ( ) const
inline

◆ 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

◆ SetSteeringCurve()

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

◆ SetTorqueCurve()

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

◆ SetUseSweepWheelCollision()

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

◆ SetWheels()

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

在文件 LibCarla/source/carla/rpc/VehiclePhysicsControl.h76 行定义.

引用了 wheels.

类成员变量说明

◆ 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

该类的文档由以下文件生成: