CARLA
 
载入中...
搜索中...
未找到
RssRestrictor.h
浏览该文件的文档.
1// Copyright (c) 2019-2020 Intel Corporation
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include <spdlog/spdlog.h>
9#include <memory>
10
11namespace ad {
12namespace rss {
13namespace state {
14
15/// @brief forward declararion for the RSS proper response
16struct ProperResponse;
17
18} // namespace world
19} // namespace rss
20} // namespace ad
21
22namespace carla {
23namespace rpc {
24class VehicleControl;
25class VehiclePhysicsControl;
26} // namespace rpc
27
28namespace rss {
29
30/// @brief forward declararion for ego vehicles current dynamics in respect to
31/// the current route
32struct EgoDynamicsOnRoute;
33
34/// @brief class implementing the RSS restrictions within CARLA
36public:
37 /// @brief constructor
39
40 /// @brief destructor
42
43 /// @brief the actual function to restrict the given vehicle control input to
44 /// mimick
45 /// RSS conform behavior by braking
46 /// Lateral braking is achieved by counter-steering, so is only a very
47 /// rough solution
49 const ::ad::rss::state::ProperResponse &proper_response,
50 const carla::rss::EgoDynamicsOnRoute &ego_dynamics_on_route,
51 const carla::rpc::VehiclePhysicsControl &vehicle_physics);
52
53 void SetLogLevel(const uint8_t log_level);
54
55private:
56 /// @brief the logger instance
57 std::shared_ptr<spdlog::logger> _logger;
58};
59
60} // namespace rss
61} // namespace carla
class implementing the RSS restrictions within CARLA
std::shared_ptr< spdlog::logger > _logger
the logger instance
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 bra...
void SetLogLevel(const uint8_t log_level)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133
struct defining the ego vehicles current dynamics in respect to the current route
Definition RssCheck.h:40