-
Notifications
You must be signed in to change notification settings - Fork 166
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
ros2 param dump does not work if a node has declared parameters without a value #936
Comments
No, it will not fix this behavior. It will only ensure that no UnboundLocalError is raised. Instead it will return an empty yaml. However, this is not correct. |
so i tested with your example and #933 applied. ### your sample
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 run prover_rclpy ros2cli_936
### dumping parameters
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 param dump /test
/test:
ros__parameters: {}
it works as expected we have talked in #933 (comment)? |
…ut a value Ref: ros2/ros2cli#936 Signed-off-by: Tomoya Fujita <[email protected]>
Yes but this issue describes another problem.
Gives an empty output; but,
returns
So the problem is here that if we have one parameter without a value defined, the |
Ah, yeah that is right. my expectation was wrong there... So the thing is not related to I think we can proceed this behavior change with ros2/rclcpp#2512 (follow up needs to be done with |
@fujitatomoya thanks for referring to that issue. Didn't know of its existence. Lets continue there! |
Bug report
Required Info:
Ubuntu 24.04
Debian package
Cyclone
Steps to reproduce issue
Expected behavior
Correct yaml file
Actual behavior
UnboundLocalError: cannot access local variable 'e' where it is not associated with a value, should be fixed with #933 but then it will return an empty yaml file.
Additional information
Follow up of cra-ros-pkg/robot_localization#903, related to #930
The text was updated successfully, but these errors were encountered: