CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
carla::rpc::VehicleControl Class Reference

#include <VehicleControl.h>

Public Member Functions

 MSGPACK_DEFINE_ARRAY (throttle, steer, brake, hand_brake, reverse, manual_gear_shift, gear)
 
 operator FVehicleControl () const
 
bool operator!= (const VehicleControl &rhs) const
 
bool operator== (const VehicleControl &rhs) const
 
 VehicleControl ()=default
 
 VehicleControl (const FVehicleControl &Control)
 
 VehicleControl (float in_throttle, float in_steer, float in_brake, bool in_hand_brake, bool in_reverse, bool in_manual_gear_shift, int32_t in_gear)
 

Public Attributes

float brake = 0.0f
 
int32_t gear = 0
 
bool hand_brake = false
 
bool manual_gear_shift = false
 
bool reverse = false
 
float steer = 0.0f
 
float throttle = 0.0f
 

Detailed Description

Definition at line 20 of file LibCarla/source/carla/rpc/VehicleControl.h.

Constructor & Destructor Documentation

◆ VehicleControl() [1/3]

carla::rpc::VehicleControl::VehicleControl ( )
default

◆ VehicleControl() [2/3]

carla::rpc::VehicleControl::VehicleControl ( float  in_throttle,
float  in_steer,
float  in_brake,
bool  in_hand_brake,
bool  in_reverse,
bool  in_manual_gear_shift,
int32_t  in_gear 
)
inline

Definition at line 25 of file LibCarla/source/carla/rpc/VehicleControl.h.

◆ VehicleControl() [3/3]

carla::rpc::VehicleControl::VehicleControl ( const FVehicleControl &  Control)
inline

Definition at line 51 of file LibCarla/source/carla/rpc/VehicleControl.h.

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

carla::rpc::VehicleControl::MSGPACK_DEFINE_ARRAY ( throttle  ,
steer  ,
brake  ,
hand_brake  ,
reverse  ,
manual_gear_shift  ,
gear   
)

◆ operator FVehicleControl()

carla::rpc::VehicleControl::operator FVehicleControl ( ) const
inline

◆ operator!=()

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

◆ operator==()

bool carla::rpc::VehicleControl::operator== ( const VehicleControl &  rhs) const
inline

Definition at line 85 of file LibCarla/source/carla/rpc/VehicleControl.h.

Member Data Documentation

◆ brake

float carla::rpc::VehicleControl::brake = 0.0f

◆ gear

int32_t carla::rpc::VehicleControl::gear = 0

◆ hand_brake

bool carla::rpc::VehicleControl::hand_brake = false

◆ manual_gear_shift

bool carla::rpc::VehicleControl::manual_gear_shift = false

◆ reverse

bool carla::rpc::VehicleControl::reverse = false

◆ steer

float carla::rpc::VehicleControl::steer = 0.0f

◆ throttle

float carla::rpc::VehicleControl::throttle = 0.0f

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