ad_rss
RssSituationChecking.hpp
Go to the documentation of this file.
1 // ----------------- BEGIN LICENSE BLOCK ---------------------------------
2 //
3 // Copyright (C) 2018-2021 Intel Corporation
4 //
5 // SPDX-License-Identifier: LGPL-2.1-only
6 //
7 // ----------------- END LICENSE BLOCK -----------------------------------
12 #pragma once
13 
14 #include <memory>
17 
21 namespace ad {
25 namespace rss {
29 namespace situation {
30 class RssStructuredSceneIntersectionChecker;
31 class RssStructuredSceneNonIntersectionChecker;
32 class RssUnstructuredSceneChecker;
33 } // namespace situation
34 
38 namespace core {
39 
46 {
47 public:
52 
57 
66  bool checkSituations(situation::SituationSnapshot const &situationSnapshot,
67  state::RssStateSnapshot &rssStateSnapshot);
68 
69 private:
78  bool checkSituationInputRangeChecked(situation::Situation const &situation,
79  state::RssStateSnapshot &rssStateSnapshot);
80 
88  bool checkTimeIncreasingConsistently(world::TimeIndex const &nextTimeIndex);
89 
90  std::unique_ptr<ad::rss::situation::RssStructuredSceneIntersectionChecker> mIntersectionChecker;
91  std::unique_ptr<ad::rss::situation::RssStructuredSceneNonIntersectionChecker> mNonIntersectionChecker;
92  std::unique_ptr<ad::rss::situation::RssUnstructuredSceneChecker> mUnstructuredSceneChecker;
93  world::TimeIndex mCurrentTimeIndex{0u};
94 };
95 } // namespace core
96 } // namespace rss
97 } // namespace ad
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::situation::Situation
DataType Situation.
Definition: Situation.hpp:53
ad::rss::world::TimeIndex
uint64_t TimeIndex
DataType TimeIndex.
Definition: TimeIndex.hpp:39
ad::rss::core::RssSituationChecking::~RssSituationChecking
~RssSituationChecking()
destructor
RssStateSnapshot.hpp
SituationSnapshot.hpp
ad::rss::situation::SituationSnapshot
DataType SituationSnapshot.
Definition: SituationSnapshot.hpp:45
ad::rss::core::RssSituationChecking
class RssSituationChecking
Definition: RssSituationChecking.hpp:45
ad::rss::core::RssSituationChecking::RssSituationChecking
RssSituationChecking()
constructor
ad::rss::state::RssStateSnapshot
DataType RssStateSnapshot.
Definition: RssStateSnapshot.hpp:46
ad::rss::core::RssSituationChecking::checkSituations
bool checkSituations(situation::SituationSnapshot const &situationSnapshot, state::RssStateSnapshot &rssStateSnapshot)
Checks if the current situations are safe.