26#pragma warning(disable:4583)
27#pragma warning(disable:4582)
28#include <boost/variant2/variant.hpp>
31#include <boost/variant2/variant.hpp>
36namespace traffic_manager {
50 return Command{*
static_cast<const T *
>(
this)};
MSGPACK_DEFINE_ARRAY(command)
boost::variant2::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 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
MSGPACK_DEFINE_ARRAY(description, transform, parent, attachment_type, socket_name, do_after)
geom::Transform transform
SpawnActor(ActorDescription description, const geom::Transform &transform, ActorId parent)
AttachmentType attachment_type
ActorDescription description
SpawnActor(ActorDescription description, const geom::Transform &transform, ActorId parent, AttachmentType attachment_type, const std::string &bone)
SpawnActor(ActorDescription description, const geom::Transform &transform)
std::vector< Command > do_after
boost::optional< ActorId > parent