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
IdleState.h
Go to the documentation of this file.
1
11#ifndef IDLE_STATE_H
12#define IDLE_STATE_H
13
14#include "../interfaces/State.hpp"
15#include "../util/GeospatialOperations.hpp"
16
18#include <tuple>
19
21
22
28namespace statemachine
29{
30
37 class IdleState : public State
38 {
39 private:
40 time_t m_tIdleTime;
41 bool m_bRealigned;
42 geoops::RoverPose m_stStartRoverPose;
43 std::vector<std::tuple<double, double>> m_vRoverPosition;
44 int m_nMaxDataPoints;
45 bool m_bInitialized;
46
47 protected:
48 void Start() override;
49 void Exit() override;
50
51 public:
52 IdleState();
53 void Run() override;
54 States TriggerEvent(Event eEvent) override;
55 };
56} // namespace statemachine
57
58#endif // IDLESTATE_H
The IdleState class implements the Idle state for the Autonomy State Machine.
Definition IdleState.h:38
void Exit() override
This method is called when the state is exited. It is used to clean up the state.
Definition IdleState.cpp:52
void Start() override
This method is called when the state is first started. It is used to initialize the state.
Definition IdleState.cpp:30
void Run() override
Run the state machine. Returns the next state.
Definition IdleState.cpp:87
States TriggerEvent(Event eEvent) override
Trigger an event in the state machine. Returns the next state.
Definition IdleState.cpp:132
IdleState()
Construct a new State object.
Definition IdleState.cpp:68
The abstract state class. All states inherit from this class.
Definition State.hpp:115
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 to provide an easy way to store all pose data about the ro...
Definition GeospatialOperations.hpp:674