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

[ros2lifecycle] get --transitions raises an exception #175

Closed
hidmic opened this issue Dec 12, 2018 · 2 comments
Closed

[ros2lifecycle] get --transitions raises an exception #175

hidmic opened this issue Dec 12, 2018 · 2 comments

Comments

@hidmic
Copy link
Contributor

hidmic commented Dec 12, 2018

Bug report

Required Info:

  • Operating System:
  • Installation type:
    • Binary (debs)
  • Version or commit hash:
    • Crystal pre-release.
  • DDS implementation:
    • ADLink OpenSplice 6.9
  • Client library (if applicable):
    • N/A

Steps to reproduce issue

Start a managed talker node:

ros2 run lifecycle lifecycle_talker

Now attempt to get the current lifecycle state plus possible transitions:

ros2 lifecycle get /lc_talker --transitions

Expected behavior

Current state is shown along with the possible transitions, as documented.

Actual behavior

It throws an AttributeError exception and no transition is listed.

Traceback (most recent call last):
  File "/opt/ros/crystal/bin/ros2", line 11, in <module>
    load_entry_point('ros2cli==0.6.1', 'console_scripts', 'ros2')()
  File "/opt/ros/crystal/lib/python3.6/site-packages/ros2cli/cli.py", line 69, in main
    rc = extension.main(parser=parser, args=args)
  File "/opt/ros/crystal/lib/python3.6/site-packages/ros2lifecycle/command/lifecycle.py", line 40
, in main
    return extension.main(args=args)
  File "/opt/ros/crystal/lib/python3.6/site-packages/ros2lifecycle/verb/get.py", line 93, in main
    .format_map(locals()))
AttributeError: 'TransitionDescription' object has no attribute 'label'
@sloretz
Copy link
Contributor

sloretz commented Dec 12, 2018

Duplicate of #170 fixed by #174

@hidmic
Copy link
Contributor Author

hidmic commented Dec 12, 2018

Argh! I checked opened ones, not closed ones. Thanks @sloretz !

@hidmic hidmic closed this as completed Dec 12, 2018
esteve pushed a commit to esteve/ros2cli that referenced this issue Dec 16, 2022
* Address security bug in yaml loading

Curate bug similar to ros/actionlib#171.
Connected with aliasrobotics/RVD#2401.

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>

* revert one of the changes

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>

Co-authored-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
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