<!-# [ROS2] How to play a bag file with python format launch->
Describes how to play a bag file with launch.py of ROS2.
import launch
def generate_launch_description():
return launch.LaunchDescription([
launch.actions.ExecuteProcess(
cmd=['ros2', 'bag', 'play', 'your_bag_dir'],
output='screen'
)
])
-[ROS2] How to describe remap and parameters in python format launch