update strat state

This commit is contained in:
acki
2026-01-28 12:12:24 +01:00
parent 849712a902
commit 5fe20cc1c9
3 changed files with 14 additions and 13 deletions

View File

@@ -1,12 +1,13 @@
int32 INIT=0
int32 WAIT_START=1
int32 SELECT_MISSION=2
int32 SELECT_GAME_ACTION=3
int32 DO_PREPARE_CONCERT=3
int32 DO_PROMOTION=4
int32 TAKE_MISSION=10
int32 FREE_MISSION=11
int32 DO_GO_HOME=5
int32 STOP=6
int32 DO_GO_HOME=20
int32 STOP=21
int32 state
string reason

View File

@@ -21,16 +21,16 @@ namespace Modelec
{
enum class State
{
INIT,
WAIT_START,
SELECT_MISSION,
SELECT_GAME_ACTION,
INIT = 0,
WAIT_START = 1,
SELECT_MISSION = 2,
SELECT_GAME_ACTION = 3,
TAKE_MISSION,
FREE_MISSION,
TAKE_MISSION = 10,
FREE_MISSION = 11,
DO_GO_HOME,
STOP
DO_GO_HOME = 20,
STOP = 21
};
class StratFMS : public rclcpp::Node

View File

@@ -70,7 +70,7 @@ namespace Modelec
game_action_sequence_.push(State::TAKE_MISSION);
game_action_sequence_.push(State::FREE_MISSION);
game_action_sequence_.push(State::FREE_MISSION);
static_strat_ = true;
static_strat_ = false;
}
void StratFMS::Init()