smacha icon indicating copy to clipboard operation
smacha copied to clipboard

Linear State Sequence Example is broken

Open bdenoun opened this issue 6 years ago • 1 comments

Hi guys,

Following your documentation, I tried to run the Linear State Sequence Example, and the version on the master branch seems broken. This the message error I get when trying to execute the generated python file: smach.exceptions.InvalidTransitionError: Specified outcome 'outcome_a' on state 'FOO_0', which only has available registered outcomes: ('a', 'c', 'e', 'm', 'o', 'u', 't', '_') I think it comes from the FooParam template. The version shown in the tutorial differs with the one in the current repository.

bdenoun avatar Aug 28 '19 14:08 bdenoun

Hi,

thank you for reporting the issue.

I tried to generate the Python script myself by copy-pasting the script in the documentation. However, I could not reproduce the error.

From the looks of it, it seems like a bad translation of the provided ParamFoo.tpl.py template. If I get that right ('a', 'c', 'e', 'm', 'o', 'u', 't', '_') is just an organized array of characters that could spell out outcome_a.

So I would like to ask if you could post the Python file that is generated.

Perhaps the information on which versions of the Jinja2 and ruamel.yaml Pyhon modules are installed could also be useful: pip list | grep 'ruamel.yaml\|Jinja2'

tgaspar avatar Sep 26 '19 10:09 tgaspar