Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
Loading...
Searching...
No Matches
icarus::PhaseConfig Struct Reference

Configuration for phase management. More...

#include <PhaseManager.hpp>

Public Member Functions

std::optional< int32_t > GetPhaseValue (const std::string &name) const
 Get phase integer from name, or nullopt if not found.
std::string GetPhaseName (int32_t value) const
 Get phase name from integer, or empty string if not found.

Public Attributes

std::map< std::string, int32_t > definitions
 Phase name to integer mapping (e.g., {"GROUND": 0, "BOOST": 1, ...}).
std::string initial_phase
 Initial phase name.
std::vector< PhaseTransitiontransitions
 Transition rules.
std::string entity_prefix
 Entity prefix for phase signal (e.g., "Vehicle" -> "Vehicle.phase").

Detailed Description

Configuration for phase management.

Member Function Documentation

◆ GetPhaseName()

std::string icarus::PhaseConfig::GetPhaseName ( int32_t value) const
inlinenodiscard

Get phase name from integer, or empty string if not found.

◆ GetPhaseValue()

std::optional< int32_t > icarus::PhaseConfig::GetPhaseValue ( const std::string & name) const
inlinenodiscard

Get phase integer from name, or nullopt if not found.

Member Data Documentation

◆ definitions

std::map<std::string, int32_t> icarus::PhaseConfig::definitions

Phase name to integer mapping (e.g., {"GROUND": 0, "BOOST": 1, ...}).

◆ entity_prefix

std::string icarus::PhaseConfig::entity_prefix

Entity prefix for phase signal (e.g., "Vehicle" -> "Vehicle.phase").

◆ initial_phase

std::string icarus::PhaseConfig::initial_phase

Initial phase name.

◆ transitions

std::vector<PhaseTransition> icarus::PhaseConfig::transitions

Transition rules.


The documentation for this struct was generated from the following file: