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

[ros2] Fix parameter loading in launch files (VLP16, VLP32C, VLS128)Fix launch file params #556

Open
wants to merge 3 commits into
base: ros2
Choose a base branch
from

Conversation

JVALPASS
Copy link

This PR addresses a bug where the Velodyne driver node was incorrectly passing
the entire YAML path to the parameters argument rather than loading the
dictionary of parameters.

Changes:

  • Updated velodyne_driver_node-VLP16-launch.py to load YAML using yaml.safe_load.
  • Updated velodyne_driver_node-VLP32C-launch.py similarly.
  • Updated velodyne_driver_node-VLS128-launch.py similarly.
  • Verified that parameters are now loaded correctly under velodyne_driver_node.ros__parameters.

Tests:

  • Launched each file in a ROS2 workspace and confirmed correct parameter loading.

* Switched from passing the path to the YAML file
  to properly parsing it with yaml.safe_load(...)
* This ensures that the parameters are loaded
  under 'velodyne_driver_node.ros__parameters'.
* Switched from passing the path to the YAML file
  to properly parsing it with yaml.safe_load(...)
* This ensures that the parameters are loaded
  under 'velodyne_driver_node.ros__parameters'.
* Switched from passing the path to the YAML file
  to properly parsing it with yaml.safe_load(...)
* This ensures that the parameters are loaded
  under 'velodyne_driver_node.ros__parameters'.
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

Successfully merging this pull request may close these issues.

1 participant