ros2 / ros2cli

ROS 2 command line interface tools
Apache License 2.0
173 stars 161 forks source link

ros2 param dump UnboundLocalError #930

Open reinzor opened 1 week ago

reinzor commented 1 week ago
$ ros2 param dump /kalman_filter_map 
Traceback (most recent call last):
  File "/opt/ros/jazzy/bin/ros2", line 33, in <module>
    sys.exit(load_entry_point('ros2cli==0.32.1', 'console_scripts', 'ros2')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/ros/jazzy/lib/python3.12/site-packages/ros2cli/cli.py", line 91, in main
    rc = extension.main(parser=parser, args=args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/ros/jazzy/lib/python3.12/site-packages/ros2param/command/param.py", line 39, in main
    return extension.main(args=args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/ros/jazzy/lib/python3.12/site-packages/ros2param/verb/dump.py", line 103, in main
    f"'{node_name.full_name}': {e}", file=sys.stderr)
                                ^
UnboundLocalError: cannot access local variable 'e' where it is not associated with a value
reinzor commented 4 days ago

@fujitatomoya this issue can be reproduces by the scenario described in https://github.com/cra-ros-pkg/robot_localization/issues/903 . This discussion might be out of scope for this issue but just a friendly FYI as you are the maintainer of this repo :) .