CARLA
Loading...
Searching...
No Matches
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

Referenced by operator!=(), and operator==().

◆ 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

◆ VehicleControl() [3/3]

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

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

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

◆ operator FVehicleControl()

◆ 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.

References VehicleControl().

Member Data Documentation

◆ brake

◆ gear

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

◆ hand_brake

◆ manual_gear_shift

◆ reverse

◆ steer

◆ throttle


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