ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Apparently, specifying a launch file can be a bit easier.

You can use

from ament_index_python.packages import get_package_share_directory
from pathlib import Path

parameters_file_path = Path(get_package_share_directory('the_package'), 'config', 'example_param.yaml')

and pass that to the Node as described above.