Decision Module  1.0
ICRA2020 AI Challenge Northwestern Polytechnical University Aoxiang Team Strategy Code
stop_shoot_strategy.h
Go to the documentation of this file.
1 //
2 // Created by lq on 2020/7/25.
3 //
4 
5 #ifndef ICRA_FIREFLY_ROBORTS_STOP_SHOOT_STRATEGY_H
6 #define ICRA_FIREFLY_ROBORTS_STOP_SHOOT_STRATEGY_H
7 
8 #include "../abstract_common_strategy.h"
9 
10 namespace roborts_decision {
11 
13  public:
14  StopShootStrategy(const std::shared_ptr<MyRobot> &pMyRobot,
15  const std::shared_ptr<Blackboard> &pBlackboard);
16 
17  void run() override;
18 
19  StrategyID getID() override { return StrategyID::stopShoot; }
20 
21  BehaviorState Update() override;
22 
23  void Reset() override;
24 
25  bool CanExecuteMe();
26 
27  private:
28 
30 
31  bool IsObstacleOntheTrack();
32 };
33 
34 } // namespace roborts_decision
35 
36 #endif // ICRA_FIREFLY_ROBORTS_STOP_SHOOT_STRATEGY_H
roborts_decision::StopShootStrategy::CanExecuteMe
bool CanExecuteMe()
Definition: stop_shoot_strategy.cpp:44
roborts_decision::StopShootStrategy::GetLongerDistanceFromTwoRobot
double GetLongerDistanceFromTwoRobot()
Definition: stop_shoot_strategy.cpp:57
roborts_decision::AbstractCommonStrategy
Definition: abstract_common_strategy.h:35
roborts_decision::StopShootStrategy::run
void run() override
Definition: stop_shoot_strategy.cpp:13
roborts_decision::StopShootStrategy::getID
StrategyID getID() override
Definition: stop_shoot_strategy.h:19
roborts_decision::StrategyID
StrategyID
Definition: abstract_common_strategy.h:17
roborts_decision::StrategyID::stopShoot
@ stopShoot
roborts_decision::StopShootStrategy::Update
BehaviorState Update() override
Definition: stop_shoot_strategy.cpp:23
roborts_decision::StopShootStrategy::IsObstacleOntheTrack
bool IsObstacleOntheTrack()
Definition: stop_shoot_strategy.cpp:71
roborts_decision::StopShootStrategy::Reset
void Reset() override
Definition: stop_shoot_strategy.cpp:39
roborts_decision::StopShootStrategy::StopShootStrategy
StopShootStrategy(const std::shared_ptr< MyRobot > &pMyRobot, const std::shared_ptr< Blackboard > &pBlackboard)
Definition: stop_shoot_strategy.cpp:7
roborts_decision
Definition: behavior_test_node.h:14
roborts_decision::StopShootStrategy
Definition: stop_shoot_strategy.h:12
roborts_decision::BehaviorState
BehaviorState
Behavior state.
Definition: behavior_state.h:11