ad_rss
RssCheck.hpp
Go to the documentation of this file.
1 // ----------------- BEGIN LICENSE BLOCK ---------------------------------
2 //
3 // Copyright (C) 2018-2022 Intel Corporation
4 //
5 // SPDX-License-Identifier: LGPL-2.1-only
6 //
7 // ----------------- END LICENSE BLOCK -----------------------------------
12 #pragma once
13 
14 #include <memory>
18 
22 namespace ad {
26 namespace rss {
27 
31 namespace core {
32 
40 class RssCheck
41 {
42 public:
46  typedef std::shared_ptr<RssCheck> Ptr;
47 
51  typedef std::shared_ptr<RssCheck const> ConstPtr;
52 
56  RssCheck() = default;
57 
61  RssCheck(RssCheck const &other) = default;
62 
66  ~RssCheck() = default;
67 
71  RssCheck &operator=(RssCheck const &other) = default;
72 
81  bool calculateProperResponse(world::WorldModel const &worldModel, state::ProperResponse &properResponse);
82 
94  RssSituationSnapshot &situationSnapshot,
95  state::RssStateSnapshot &rssStateSnapshot,
96  state::ProperResponse &properResponse);
97 
105  world::ObjectType objectType,
107  calculateTrajectorySetsCallback);
108 
116  void dropObjectHistory(world::ObjectId const &object_id);
117 
130 };
131 
132 } // namespace core
133 } // namespace rss
134 } // namespace ad
RssCheck.
Definition: RssCheck.hpp:41
RssResponseResolving mResponseResolving
RssResponseResolving member.
Definition: RssCheck.hpp:121
RssSituationChecking mSituationChecking
RssSituationChecking member.
Definition: RssCheck.hpp:125
RssCheck & operator=(RssCheck const &other)=default
default assignment operator
bool calculateProperResponse(world::WorldModel const &worldModel, state::ProperResponse &properResponse)
calculateProperResponse
RssCheck()=default
constructor
RssCheck(RssCheck const &other)=default
default copy constructor
bool calculateProperResponse(world::WorldModel const &worldModel, RssSituationSnapshot &situationSnapshot, state::RssStateSnapshot &rssStateSnapshot, state::ProperResponse &properResponse)
calculateProperResponse
std::shared_ptr< RssCheck const > ConstPtr
Smart pointer on constant RssCheck.
Definition: RssCheck.hpp:51
RssSituationExtraction mSituationExtraction
RssSituationExtraction member.
Definition: RssCheck.hpp:129
~RssCheck()=default
destructor
void dropObjectHistory(world::ObjectId const &object_id)
drop the history associated with a given object_id
std::shared_ptr< RssCheck > Ptr
Smart pointer on RssCheck.
Definition: RssCheck.hpp:46
void registerCalculateTrajectorySetsCallback(world::ObjectType objectType, unstructured::RssUnstructuredConstellationChecker::CalculateTrajectorySetsCallbackFunctionType calculateTrajectorySetsCallback)
Register a callback for unstructured trajectory set calculation.
RssResponseResolving.
Definition: RssResponseResolving.hpp:40
class RssSituationChecking
Definition: RssSituationChecking.hpp:39
class RssSituationExtraction
Definition: RssSituationExtraction.hpp:38
std::function< bool(::ad::rss::core::RelativeConstellation const &constellation, ::ad::rss::world::ObjectId const &objectId, ::ad::rss::core::RelativeObjectState const &vehicleState, ::ad::geometry::Polygon &brakePolygon, ::ad::geometry::Polygon &continueForwardPolygon)> CalculateTrajectorySetsCallbackFunctionType
Function callback type for unstructured trajectory set calculation.
Definition: RssUnstructuredConstellationChecker.hpp:116
ObjectType
DataType ObjectType.
Definition: ObjectType.hpp:44
uint64_t ObjectId
DataType ObjectId.
Definition: ObjectId.hpp:39
namespace ad
Definition: LateralRelativePosition.hpp:28
DataType RssSituationSnapshot.
Definition: RssSituationSnapshot.hpp:46
DataType ProperResponse.
Definition: ProperResponse.hpp:50
DataType RssStateSnapshot.
Definition: RssStateSnapshot.hpp:47
DataType WorldModel.
Definition: WorldModel.hpp:47