Questions tagged [boost-sml]

7 questions
2
votes
1 answer

SML requires C++14 support

I am starting out with Adruino and wanted to use the boost sml library on it. I downloaded the sml.hpp file and added it to arduino project using the library manager. But when i try to run the file I get the following error message: error: #error…
orfvl
  • 111
  • 5
2
votes
1 answer

How to get current state from multiple nested transition tables using boost::sml library?

I have edited my post by adding an example. You can find the header, source, and main on this link. Minimized: #include #include using namespace boost::sml; struct Start {}; struct GoNested {}; struct Ts3 { auto…
adr1611
  • 31
  • 2
2
votes
1 answer

Calling Substate machine constructor using boost-ext::sml

I was wondering if its possible to initialize a substate machine by using a non-default constructor. I know one can do: sub = sml::state; And use the sub I.e: auto sub = sml::state; return make_transition_table( *"init"_s +…
Calle
  • 51
  • 3
1
vote
1 answer

How to reduce repetition of similar transitions in finite state machine transition table?

I am creating a state machine with the Boost::Ext SML library. I have a number of states (A, B, C, D...) and in most cases, states will transition to another subject to common events. For instance, if in state A or B or C and the event "GoToD" is…
jlev
  • 21
  • 2
1
vote
1 answer

Boost SML: respond to determination made in action

I am trying to use a Boost SML state machine to implement a "receiver". As an example, lets say the SM receives ints and is "done" when it gets to a certain number: An "idle" state moves to a "reading" state on a "receive" event, accumulate the…
Inductiveload
  • 6,094
  • 4
  • 29
  • 55
0
votes
0 answers

Why doesn't is() -- the boost state machine API -- recognize a struct?

We use boost sml library to implement a state machine in our production system. There is a thread that sends various events into the state machine for processing. From another thread, I need to read the current state. I cannot get a piece of code…
softwarelover
  • 1,009
  • 1
  • 10
  • 22
0
votes
0 answers

Boost SML is there equvivalent for exit one SM into another by using pseudo exit state

I'm trying to convert my boost MSM state machine to SML. My MSM state machine can be seen here: Boost MSM process_event doesn't transit between SM states After I looked on SML documentation it seems that it doesn't support pseudo states (exit/entry…
ms_stud
  • 361
  • 4
  • 18