-
Notifications
You must be signed in to change notification settings - Fork 993
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
Load Params for Ros2 launchfile? #1861
Comments
Unusure about python-launch. Check https://github.com/mavlink/mavros/blob/ros2/mavros/launch/ xml was recently upgraded for ros2. Also note that each plugin is a node, so check prefixes, e.g. in apm_config.yml |
Not sure if it solves the issue, but uou should not name both of the launch configurations to "config_dir" - you should use a unique name for each of the launch configurations. |
Can you try something like this :
|
@antonikaras this looks like something that will work, but you are missing the apm specific configuration and pluginlists files. Perhaps this could work?
|
Note that all these parameter files can easily be changed to LaunchConfiguration-parameters with default values to the ones used in the example above. |
Both of your suggestion worked ! Launch file
params.yaml
apm_config.yaml and apm_pluginlists.yaml is set from the default |
Issue details
_How to Load param file using ros2? The commented code below works, but when loading params using the yaml file, it doesn't work.
Is there a simple launch file that works? Following the issue #1564 , i've tried to implement the simple launch file but was unsuccessful in having the node read the params.
_
MAVROS version and platform
ROS: ?Humble?
Ubuntu: ?22.04?
Autopilot type and version
[ X ] ArduPilot
[ ] PX4
Ros2 launch.py code
The text was updated successfully, but these errors were encountered: