Public Member Functions | Private Attributes | List of all members
carla::rss::RssRestrictor Class Reference

class implementing the RSS restrictions within CARLA More...

#include <RssRestrictor.h>

+ Collaboration diagram for carla::rss::RssRestrictor:

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

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 ( )


Definition at line 19 of file RssRestrictor.cpp.

References _logger, SetLogLevel(), and ~RssRestrictor().

+ Here is the call graph for this function:

◆ ~RssRestrictor()

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


Referenced by RssRestrictor().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

Member Data Documentation

◆ _logger

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

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: