23#pragma warning(disable:4583)
24#pragma warning(disable:4582)
37namespace ctm = carla::traffic_manager;
47 return Command{*
static_cast<const T *
>(
this)};
MSGPACK_DEFINE_ARRAY(command)
std::variant< SpawnActor, DestroyActor, ApplyVehicleControl, ApplyVehicleAckermannControl, ApplyWalkerControl, ApplyVehiclePhysicsControl, ApplyTransform, ApplyWalkerState, ApplyTargetVelocity, ApplyTargetAngularVelocity, ApplyImpulse, ApplyForce, ApplyAngularImpulse, ApplyTorque, SetSimulatePhysics, SetEnableGravity, SetAutopilot, ShowDebugTelemetry, SetVehicleLightState, ApplyLocation, ConsoleCommand, SetTrafficLightState > CommandType
This class integrates all the various stages of the traffic manager appropriately using messengers.
This file contains definitions of common data structures used in traffic manager.
ApplyAngularImpulse(ActorId id, const geom::Vector3D &value)
MSGPACK_DEFINE_ARRAY(actor, impulse)
ApplyAngularImpulse()=default
ApplyForce(ActorId id, const geom::Vector3D &value)
MSGPACK_DEFINE_ARRAY(actor, force)
MSGPACK_DEFINE_ARRAY(actor, impulse)
ApplyImpulse(ActorId id, const geom::Vector3D &value)
MSGPACK_DEFINE_ARRAY(actor, location)
ApplyLocation(ActorId id, const geom::Location &value)
geom::Vector3D angular_velocity
MSGPACK_DEFINE_ARRAY(actor, angular_velocity)
ApplyTargetAngularVelocity()=default
ApplyTargetAngularVelocity(ActorId id, const geom::Vector3D &value)
MSGPACK_DEFINE_ARRAY(actor, velocity)
ApplyTargetVelocity()=default
ApplyTargetVelocity(ActorId id, const geom::Vector3D &value)
ApplyTorque(ActorId id, const geom::Vector3D &value)
MSGPACK_DEFINE_ARRAY(actor, torque)
VehicleAckermannControl control
ApplyVehicleAckermannControl()=default
ApplyVehicleAckermannControl(ActorId id, const VehicleAckermannControl &value)
MSGPACK_DEFINE_ARRAY(actor, control)
MSGPACK_DEFINE_ARRAY(actor, control)
ApplyVehicleControl(ActorId id, const VehicleControl &value)
ApplyVehicleControl()=default
MSGPACK_DEFINE_ARRAY(actor, physics_control)
ApplyVehiclePhysicsControl(ActorId id, const VehiclePhysicsControl &value)
VehiclePhysicsControl physics_control
ApplyVehiclePhysicsControl()=default
MSGPACK_DEFINE_ARRAY(actor, control)
ApplyWalkerControl()=default
ApplyWalkerControl(ActorId id, const WalkerControl &value)
geom::Transform transform
ApplyWalkerState(ActorId id, const geom::Transform &value, const float speed)
ApplyWalkerState()=default
MSGPACK_DEFINE_ARRAY(actor, transform, speed)
MSGPACK_DEFINE_ARRAY(cmd)
ConsoleCommand(std::string cmd)
MSGPACK_DEFINE_ARRAY(actor)
MSGPACK_DEFINE_ARRAY(actor, enabled)
SetAutopilot(ActorId id, bool value, uint16_t tm_port)
SetEnableGravity()=default
MSGPACK_DEFINE_ARRAY(actor, enabled)
SetEnableGravity(ActorId id, bool value)
SetSimulatePhysics()=default
SetSimulatePhysics(ActorId id, bool value)
MSGPACK_DEFINE_ARRAY(actor, enabled)
MSGPACK_DEFINE_ARRAY(actor, traffic_light_state)
rpc::TrafficLightState traffic_light_state
SetTrafficLightState()=default
SetTrafficLightState(ActorId id, rpc::TrafficLightState state)
SetVehicleLightState()=default
VehicleLightState::flag_type light_state
SetVehicleLightState(ActorId id, VehicleLightState::flag_type value)
MSGPACK_DEFINE_ARRAY(actor, light_state)
MSGPACK_DEFINE_ARRAY(actor, enabled)
ShowDebugTelemetry(ActorId id, bool value)
ShowDebugTelemetry()=default
std::optional< ActorId > parent
geom::Transform transform
MSGPACK_DEFINE_ARRAY(description, transform, parent, do_after)
SpawnActor(ActorDescription description, const geom::Transform &transform, ActorId parent)
ActorDescription description
SpawnActor(ActorDescription description, const geom::Transform &transform)
std::vector< Command > do_after