ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This line:
https://github.com/ros-planning/navigation2/blob/e5c2e71ca75c8bf8db6df833f6a91dd2dd4f56a4/nav2_bringup/launch/tb3_simulation_launch.py#L154
And this:
https://github.com/ros-planning/navigation2/blob/e5c2e71ca75c8bf8db6df833f6a91dd2dd4f56a4/nav2_bringup/launch/tb3_simulation_launch.py#L192
Show what you wanted, I think - how to invoke a Python script from a launch file.
I would rethink your use case though, as @christophebedard commented. What do you want is really similar to the role of launch files.