Decision Module  1.0
ICRA2020 AI Challenge Northwestern Polytechnical University Aoxiang Team Strategy Code
explore_move_strategy.h
Go to the documentation of this file.
1 //
2 // Created by lq on 2020/8/25.
3 //
4 
5 #ifndef ICRA_FIREFLY_ROBORTS_ROBORTS_DECISION_STRATEGY_MOVE_STRATEGYS_EXPLORE_MOVE_STRATEGY_H_
6 #define ICRA_FIREFLY_ROBORTS_ROBORTS_DECISION_STRATEGY_MOVE_STRATEGYS_EXPLORE_MOVE_STRATEGY_H_
7 
8 #include "../abstract_common_strategy.h"
9 
10 namespace roborts_decision {
11 
13 
14  public:
15  ExploreMoveStrategy(const std::shared_ptr<MyRobot> &p_my_robot, const std::shared_ptr<Blackboard> &p_blackboard)
16  : AbstractCommonStrategy(p_my_robot, p_blackboard) {}
17 
18  void run() override;
19 
20  StrategyID getID() override { return StrategyID::exploreMove; }
21 
22  bool CanExecuteMe() override { return true; }
23 
24  BehaviorState Update() override { return behavior_state_; }
25 
26  void Reset() override { behavior_state_ = BehaviorState::IDLE; }
27 };
28 
29 }
30 
31 
32 #endif //ICRA_FIREFLY_ROBORTS_ROBORTS_DECISION_STRATEGY_MOVE_STRATEGYS_EXPLORE_MOVE_STRATEGY_H_
roborts_decision::ExploreMoveStrategy
Definition: explore_move_strategy.h:12
roborts_decision::AbstractCommonStrategy
Definition: abstract_common_strategy.h:35
roborts_decision::BehaviorState::IDLE
@ IDLE
Idle state, state as default or after cancellation.
roborts_decision::StrategyID
StrategyID
Definition: abstract_common_strategy.h:17
roborts_decision::ExploreMoveStrategy::getID
StrategyID getID() override
Definition: explore_move_strategy.h:20
roborts_decision::ExploreMoveStrategy::Reset
void Reset() override
Definition: explore_move_strategy.h:26
roborts_decision::ExploreMoveStrategy::CanExecuteMe
bool CanExecuteMe() override
Definition: explore_move_strategy.h:22
roborts_decision
Definition: behavior_test_node.h:14
roborts_decision::ExploreMoveStrategy::ExploreMoveStrategy
ExploreMoveStrategy(const std::shared_ptr< MyRobot > &p_my_robot, const std::shared_ptr< Blackboard > &p_blackboard)
Definition: explore_move_strategy.h:15
roborts_decision::ExploreMoveStrategy::run
void run() override
Definition: explore_move_strategy.cpp:8
roborts_decision::ExploreMoveStrategy::Update
BehaviorState Update() override
Definition: explore_move_strategy.h:24
roborts_decision::AbstractCommonStrategy::behavior_state_
BehaviorState behavior_state_
Definition: abstract_common_strategy.h:57
roborts_decision::StrategyID::exploreMove
@ exploreMove
roborts_decision::BehaviorState
BehaviorState
Behavior state.
Definition: behavior_state.h:11