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

Revision history [back]

Hey @bastien, here is an example you can include launch file from another package:

IncludeLaunchDescription( PythonLaunchDescriptionSource( os.path.join(get_package_share_directory('another_package'), 'launch', 'gzserver.launch.py') ), launch_arguments={ 'world': 'PATH', 'verbose': 'true' }.items() )

Your approach to pass multiple arguments seems to be correct.

Hey @bastien, here is an example you can include launch file from another package:

 IncludeLaunchDescription(
            PythonLaunchDescriptionSource(
                os.path.join(get_package_share_directory('another_package'), 'launch', 'gzserver.launch.py')
            ),
            launch_arguments={
                'world': 'PATH',
                'verbose': 'true'
            }.items()
    )

)

Your approach to pass multiple arguments seems to be correct.