Record video from the camera
Use the image_view utility to record a video file from the camera topic.
To capture a video file from the camera stream, use the image_view package’s video_recorder utility. Specify the output filename using a ROS parameter.
bash
ros2 run image_view video_recorder --ros-args -p filename:=/tmp/robot_video.avi