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
ReversingState.h
Go to the documentation of this file.
1
11#ifndef REVERSING_STATE_H
12#define REVERSING_STATE_H
13
14#include "../interfaces/State.hpp"
15#include "../util/GeospatialOperations.hpp"
16
18#include <chrono>
19
21
22
28namespace statemachine
29{
30
37 class ReversingState : public State
38 {
39 private:
40 geoops::RoverPose m_stStartRoverPose;
41 std::chrono::system_clock::time_point m_tmStartReversingTime;
42 std::chrono::system_clock::time_point m_tmTimeSinceLastMeter;
43 bool m_bInitialized;
44
45 protected:
46 void Start() override;
47 void Exit() override;
48
49 public:
51 void Run() override;
52 States TriggerEvent(Event eEvent) override;
53 };
54} // namespace statemachine
55
56#endif // REVERSINGSTATE_H
The ReversingState class implements the Reversing state for the Autonomy State Machine.
Definition ReversingState.h:38
void Run() override
Run the state machine. Returns the next state.
Definition ReversingState.cpp:85
States TriggerEvent(Event eEvent) override
Trigger an event in the state machine. Returns the next state.
Definition ReversingState.cpp:174
void Exit() override
This method is called when the state is exited. It is used to clean up the state.
Definition ReversingState.cpp:52
void Start() override
This method is called when the state is first started. It is used to initialize the state.
Definition ReversingState.cpp:31
ReversingState()
Construct a new State object.
Definition ReversingState.cpp:65
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