Questions tagged [boost-msm]

Boost.MetaStateMachine is a C++ library allowing you to easily and quickly define state machines of very high performance.

Boost.MetaStateMachine is a C++ library allowing you to easily and quickly define state machines of very high performance.

70 questions
1
vote
1 answer

How to prevent orthogonal region transition for error handling

I want to create the following state machine, with Boost MSM: I would like to be able to prevent the Error event to trigger the AllOk + Error == InError transition if the orthogonal state is on "B". For example, specifying transition for all…
Hugal31
  • 1,610
  • 1
  • 14
  • 27
1
vote
1 answer

How to reach directly any state in a state-machine written with Boost MSM

I am currently using the Boost MSM library to write a state machine and I want to write unit tests to check transitions between its states. For each unit test, I need to write repetitive lines of code to reach the state from which I want to start.…
Romain D.
  • 310
  • 1
  • 2
  • 10
1
vote
1 answer

Why the boost msm calls the guard twice?

I'm implementing a state machine as the following diagram state machine diagram I trigger "event1" and "event2" to the state machine, when "event1" triggered, the state machine exit "state1" state, enter "state3" sub-state machine and stay at…
szh
  • 41
  • 2
1
vote
1 answer

How to use forward declaration with boost::msm to avoid circular dependency?

I am trying to implement a simple protocol with boost::msm. As packets arrive they are processed and dispatched to the State Machine (SM) to be handled accordingly. My pkt class (i.e. Pkt1) requires a handle to the fsm that would allow it to call…
1
vote
2 answers

Why boost::msm::front::state_machine can only support up to 10 states for its transition table?

I am trying to set up my own state machine with several states, guards and actions but when the number of states in the transition table exceeds 10 states, extensive error messages pops out but I still cannot infer the source of the error from them.…
Charly H.
  • 83
  • 5
1
vote
0 answers

boost statechart: Is it still maintained?

I currently use boost::state_chart in one of my projects. As the changelog [1] Shows the last activity in boost 1.46.0, is it still maintained or should i switch to…
schorsch_76
  • 794
  • 5
  • 19
1
vote
1 answer

Boost MSM parallel behavior with delayed self-transitions?

I am using Boost MSM (basic and functor front-ends) and am trying to implement the following state machine: In words: Enter state State1 Enter state A and execute action_A. After 2 seconds, print "Trying again..." and re-execute state A (i.e. call…
space_voyager
  • 1,984
  • 3
  • 20
  • 31
1
vote
1 answer

Boost Meta State Machine Infinite Loop Seg Fault

I am attempting to use Boost State Machine, but I have encountered a Segmentation Fault when running my machine in an infinite loop. Essentially I have the same example in the boost state machine functor example shown below: The only difference is…
user985030
  • 1,557
  • 1
  • 16
  • 32
1
vote
2 answers

How to dynamically create state machine

I have no idea yet how to create an FSM using boost msm dynamically, such as reading template XML-files, for instance, that describe the machine. Any idea how to address the problem? I want to use the functor approach with boost msm 1.61. I have…
gilgamash
  • 862
  • 10
  • 31
1
vote
2 answers

How do state machines deal with events that contain value(like floor number)?

I am playing around with http://boost-experimental.github.io/msm-lite/tutorial/index.html (tag is for boost-msm because there is not tag for msm-lite but similar question applies) and I have a question wrt designing state machines with many possible…
NoSenseEtAl
  • 28,205
  • 28
  • 128
  • 277
1
vote
1 answer

Boost msm Sub-Sub-Statemachine

i have some trouble implementing a sub-sub-statemachine with boost::msm. I'm trying to minimize my code here... Test.cpp: struct SM_ : StateMachineA {}; // Pick a back-end typedef boost::msm::back::state_machine SM; int main() { …
ARTcrime
  • 110
  • 3
  • 12
1
vote
1 answer

Jumping between sub SMs in boost::msm

I have two sub SMs inside my main SM. I want to be able to jump into either one from the main SM, but also jump from one sub SM to the other SM. But I can't. I'm able to jump from the main SM into the sub SMs and from one of the sub SM into the…
Kalle
  • 278
  • 4
  • 10
1
vote
1 answer

State machines without default constructors in boost:msm

In the documentation for boost::msm there is an example of a state machine without a default constructor. I can get it to work where I jump directly from a super-SM into a sub-SM. But when I jump from one sub-SM into another sub-SM the target SM is…
Kalle
  • 278
  • 4
  • 10
1
vote
1 answer

Boost::MSM: Transition Priority

I try to use boost::MSM to implement a simple state machine for testing purpose. There are several events which have to be processed in the right order, so i defer the other events, which are currently not allowed. I try to defer the events in the…
schorsch_76
  • 794
  • 5
  • 19
1
vote
1 answer

Boost MSM Pseudo Exit States

I'm creating a Boost MSM state machine where a few of the states have their own sub state machine. I created an orthogonal region, as per the Boost examples which allows an Error event to be posted from anywhere to terminate the state machine. …
dwxw
  • 1,089
  • 1
  • 10
  • 17