CARLA
Loading...
Searching...
No Matches
carla::rss::RssRestrictor Class Reference

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
 RssRestrictor ()
 constructor
void SetLogLevel (const uint8_t log_level)
 ~RssRestrictor ()
 destructor

Private Attributes

std::shared_ptr< spdlog::logger > _logger
 the logger instance

Detailed Description

class implementing the RSS restrictions within CARLA

Definition at line 35 of file RssRestrictor.h.

Constructor & Destructor Documentation

◆ RssRestrictor()

carla::rss::RssRestrictor::RssRestrictor ( )

constructor

Definition at line 19 of file RssRestrictor.cpp.

References _logger, and SetLogLevel().

◆ ~RssRestrictor()

carla::rss::RssRestrictor::~RssRestrictor ( )
default

destructor

References RestrictVehicleControl(), and SetLogLevel().

Member Function Documentation

◆ RestrictVehicleControl()

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 )

◆ SetLogLevel()

void carla::rss::RssRestrictor::SetLogLevel ( const uint8_t log_level)

Definition at line 31 of file RssRestrictor.cpp.

References _logger.

Referenced by RssRestrictor(), and ~RssRestrictor().

Member Data Documentation

◆ _logger

std::shared_ptr<spdlog::logger> carla::rss::RssRestrictor::_logger
private

the logger instance

Definition at line 57 of file RssRestrictor.h.

Referenced by RestrictVehicleControl(), RssRestrictor(), and SetLogLevel().


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