class implementing the RSS restrictions within CARLA More...
#include <RssRestrictor.h>
Public Member Functions | |
carla::rpc::VehicleControl | RestrictVehicleControl (const carla::rpc::VehicleControl &vehicle_control, const ::ad::rss::state::ProperResponse &proper_response, const carla::rss::EgoDynamicsOnRoute &ego_dynamics_on_route, const carla::rpc::VehiclePhysicsControl &vehicle_physics) |
the actual function to restrict the given vehicle control input to mimick RSS conform behavior by braking Lateral braking is achieved by counter-steering, so is only a very rough solution More... | |
RssRestrictor () | |
constructor More... | |
void | SetLogLevel (const uint8_t log_level) |
~RssRestrictor () | |
destructor More... | |
Private Attributes | |
std::shared_ptr< spdlog::logger > | _logger |
the logger instance More... | |
class implementing the RSS restrictions within CARLA
Definition at line 35 of file RssRestrictor.h.
carla::rss::RssRestrictor::RssRestrictor | ( | ) |
constructor
Definition at line 19 of file RssRestrictor.cpp.
References _logger, SetLogLevel(), and ~RssRestrictor().
|
default |
carla::rpc::VehicleControl carla::rss::RssRestrictor::RestrictVehicleControl | ( | const carla::rpc::VehicleControl & | vehicle_control, |
const ::ad::rss::state::ProperResponse & | proper_response, | ||
const carla::rss::EgoDynamicsOnRoute & | ego_dynamics_on_route, | ||
const carla::rpc::VehiclePhysicsControl & | vehicle_physics | ||
) |
the actual function to restrict the given vehicle control input to mimick RSS conform behavior by braking Lateral braking is achieved by counter-steering, so is only a very rough solution
Definition at line 38 of file RssRestrictor.cpp.
References _logger, carla::rss::EgoDynamicsOnRoute::avg_route_accel_lat, carla::rpc::VehicleControl::brake, carla::rss::EgoDynamicsOnRoute::crossing_border, carla::rss::EgoDynamicsOnRoute::ego_heading, carla::rpc::VehiclePhysicsControl::mass, min(), carla::rpc::VehicleControl::reverse, carla::rss::EgoDynamicsOnRoute::route_accel_lat, carla::rss::EgoDynamicsOnRoute::route_speed_lat, carla::rss::EgoDynamicsOnRoute::route_speed_lon, carla::rpc::VehicleControl::steer, carla::rpc::VehicleControl::throttle, and carla::rpc::VehiclePhysicsControl::wheels.
void carla::rss::RssRestrictor::SetLogLevel | ( | const uint8_t | log_level | ) |
Definition at line 31 of file RssRestrictor.cpp.
References _logger.
Referenced by RssRestrictor().
|
private |
the logger instance
Definition at line 57 of file RssRestrictor.h.
Referenced by RestrictVehicleControl(), RssRestrictor(), and SetLogLevel().