#include <VehiclePhysicsControl.h>
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< GearPhysicsControl > | forward_gears |
float | gear_switch_time = 0.5f |
float | mass = 1000.0f |
float | max_rpm = 5000.0f |
float | moi = 1.0f |
std::vector< geom::Vector2D > | steering_curve = {geom::Vector2D(0.0f, 1.0f), geom::Vector2D(10.0f, 0.5f)} |
std::vector< geom::Vector2D > | torque_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< WheelPhysicsControl > | wheels |
Definition at line 21 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
|
default |
|
inline |
Definition at line 26 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
|
inline |
Definition at line 64 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References forward_gears.
|
inline |
Definition at line 88 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References steering_curve.
|
inline |
Definition at line 80 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References torque_curve.
|
inline |
Definition at line 100 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References use_sweep_wheel_collision.
|
inline |
Definition at line 72 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References wheels.
carla::rpc::VehiclePhysicsControl::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 | |||
) |
|
inline |
Definition at line 126 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References center_of_mass, clutch_strength, damping_rate_full_throttle, damping_rate_zero_throttle_clutch_disengaged, damping_rate_zero_throttle_clutch_engaged, drag_coefficient, final_ratio, forward_gears, gear_switch_time, mass, max_rpm, moi, steering_curve, use_gear_autobox, use_sweep_wheel_collision, and wheels.
|
inline |
Definition at line 148 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References FVehiclePhysicsControl::bUseGearAutoBox, center_of_mass, FVehiclePhysicsControl::CenterOfMass, clutch_strength, FVehiclePhysicsControl::ClutchStrength, damping_rate_full_throttle, damping_rate_zero_throttle_clutch_disengaged, damping_rate_zero_throttle_clutch_engaged, FVehiclePhysicsControl::DampingRateFullThrottle, FVehiclePhysicsControl::DampingRateZeroThrottleClutchDisengaged, FVehiclePhysicsControl::DampingRateZeroThrottleClutchEngaged, drag_coefficient, FVehiclePhysicsControl::DragCoefficient, final_ratio, FVehiclePhysicsControl::FinalRatio, FVehiclePhysicsControl::ForwardGears, gear_switch_time, FVehiclePhysicsControl::GearSwitchTime, FVehiclePhysicsControl::Mass, mass, max_rpm, FVehiclePhysicsControl::MaxRPM, FVehiclePhysicsControl::MOI, moi, MSGPACK_DEFINE_ARRAY(), FVehiclePhysicsControl::SteeringCurve, FVehiclePhysicsControl::TorqueCurve, use_gear_autobox, use_sweep_wheel_collision, FVehiclePhysicsControl::UseSweepWheelCollision, VehiclePhysicsControl(), and FVehiclePhysicsControl::Wheels.
|
inline |
Definition at line 68 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References forward_gears.
|
inline |
Definition at line 92 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References steering_curve.
|
inline |
Definition at line 84 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References torque_curve.
|
inline |
Definition at line 96 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References use_sweep_wheel_collision.
|
inline |
Definition at line 76 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
References wheels.
geom::Location carla::rpc::VehiclePhysicsControl::center_of_mass |
Definition at line 119 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::clutch_strength = 10.0f |
Definition at line 113 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::damping_rate_full_throttle = 0.15f |
Definition at line 107 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::damping_rate_zero_throttle_clutch_disengaged = 0.35f |
Definition at line 109 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::damping_rate_zero_throttle_clutch_engaged = 2.0f |
Definition at line 108 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::drag_coefficient = 0.3f |
Definition at line 118 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::final_ratio = 4.0f |
Definition at line 114 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
std::vector<GearPhysicsControl> carla::rpc::VehiclePhysicsControl::forward_gears |
Definition at line 115 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by GetForwardGears(), operator!=(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), SetForwardGears(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::gear_switch_time = 0.5f |
Definition at line 112 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), and CarlaRecorderQuery::QueryInfo().
float carla::rpc::VehiclePhysicsControl::mass = 1000.0f |
Definition at line 117 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), carla::rss::RssRestrictor::RestrictVehicleControl(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::max_rpm = 5000.0f |
Definition at line 105 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
float carla::rpc::VehiclePhysicsControl::moi = 1.0f |
Definition at line 106 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
std::vector<geom::Vector2D> carla::rpc::VehiclePhysicsControl::steering_curve = {geom::Vector2D(0.0f, 1.0f), geom::Vector2D(10.0f, 0.5f)} |
Definition at line 121 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by GetSteeringCurve(), operator!=(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), SetSteeringCurve(), and CarlaRecorderPhysicsControl::Write().
std::vector<geom::Vector2D> carla::rpc::VehiclePhysicsControl::torque_curve = {geom::Vector2D(0.0f, 500.0f), geom::Vector2D(5000.0f, 500.0f)} |
Definition at line 104 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by GetTorqueCurve(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), SetTorqueCurve(), and CarlaRecorderPhysicsControl::Write().
bool carla::rpc::VehiclePhysicsControl::use_gear_autobox = true |
Definition at line 111 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by operator!=(), operator==(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), and CarlaRecorderPhysicsControl::Write().
bool carla::rpc::VehiclePhysicsControl::use_sweep_wheel_collision = false |
Definition at line 124 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by GetUseSweepWheelCollision(), operator!=(), operator==(), and SetUseSweepWheelCollision().
std::vector<WheelPhysicsControl> carla::rpc::VehiclePhysicsControl::wheels |
Definition at line 122 of file LibCarla/source/carla/rpc/VehiclePhysicsControl.h.
Referenced by GetWheels(), operator!=(), CarlaRecorderQuery::QueryInfo(), CarlaRecorderPhysicsControl::Read(), carla::rss::RssRestrictor::RestrictVehicleControl(), SetWheels(), and CarlaRecorderPhysicsControl::Write().