Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
ApproachingObjectState.h
Go to the documentation of this file.
1
11#ifndef APPROACHING_OBJECT_STATE_H
12#define APPROACHING_OBJECT_STATE_H
13
14#include "../interfaces/State.hpp"
15#include "../util/GeospatialOperations.hpp"
16#include "../util/logging/PathTracer2D.hpp"
17#include "../util/states/StuckDetection.hpp"
18#include "../util/vision/ObjectDetectionUtility.hpp"
19#include "../vision/objects/ObjectDetector.h"
20
21
27namespace statemachine
28{
29
37 {
38 private:
39 std::vector<std::shared_ptr<ObjectDetector>> m_vObjectDetectors;
41 States m_eTriggeringState;
42 bool m_bInitialized;
43 geoops::Waypoint m_stGoalWaypoint;
44 std::unique_ptr<logging::graphing::PathTracer> m_pRoverPathPlot;
45
46 protected:
47 void Start() override;
48 void Exit() override;
49
50 public:
52 void Run() override;
53 States TriggerEvent(Event eEvent) override;
54 };
55} // namespace statemachine
56
57#endif // APPROACHINGOBJECTSTATE_H
The ApproachingObjectState class implements the Approaching Object state for the Autonomy State Machi...
Definition ApproachingObjectState.h:37
void Exit() override
This method is called when the state is exited. It is used to clean up the state.
Definition ApproachingObjectState.cpp:60
void Start() override
This method is called when the state is first started. It is used to initialize the state.
Definition ApproachingObjectState.cpp:33
States TriggerEvent(Event eEvent) override
Trigger an event in the state machine. Returns the next state.
Definition ApproachingObjectState.cpp:274
ApproachingObjectState()
Construct a new State object.
Definition ApproachingObjectState.cpp:73
void Run() override
Run the state machine. Returns the next state.
Definition ApproachingObjectState.cpp:98
The abstract state class. All states inherit from this class.
Definition State.hpp:115
This class should be instantiated within another state to be used for detection of if the rover is st...
Definition StuckDetection.hpp:43
Namespace containing all state machine related classes.
Definition State.hpp:23
Event
The events that can be triggered in the state machine.
Definition State.hpp:54
States
The states that the state machine can be in.
Definition State.hpp:31
This struct is used by the WaypointHandler class to store location, size, and type information about ...
Definition GeospatialOperations.hpp:392