Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear State Sequence Example is broken #47

Open
bdenoun opened this issue Aug 28, 2019 · 1 comment
Open

Linear State Sequence Example is broken #47

bdenoun opened this issue Aug 28, 2019 · 1 comment

Comments

@bdenoun
Copy link

bdenoun commented Aug 28, 2019

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.

@tgaspar
Copy link
Contributor

tgaspar commented Sep 26, 2019

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants