class implementing the RSS restrictions within CARLA 更多...
#include <RssRestrictor.h>
Public 成员函数 | |
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 属性 | |
std::shared_ptr< spdlog::logger > | _logger |
the logger instance | |
class implementing the RSS restrictions within CARLA
在文件 RssRestrictor.h 第 35 行定义.
carla::rss::RssRestrictor::RssRestrictor | ( | ) |
|
default |
destructor
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
在文件 RssRestrictor.cpp 第 38 行定义.
引用了 _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, 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 , 以及 carla::rpc::VehiclePhysicsControl::wheels.
void carla::rss::RssRestrictor::SetLogLevel | ( | const uint8_t | log_level | ) |
|
private |
the logger instance
在文件 RssRestrictor.h 第 57 行定义.
被这些函数引用 RestrictVehicleControl(), RssRestrictor() , 以及 SetLogLevel().