... | ... | @@ -3,10 +3,26 @@ |
|
|
This is a brief overview about what must be done before using the Easpberry Pi Camera V2 with a Raspberry Pi 4 and Ubuntu 20.04.
|
|
|
|
|
|
1. Navigate to the file boot/firmware/config.txt and add OR edit at the end of the file without quotes: "start_x=1". This says ubuntu to include the Camara via the specific Hardware Port.
|
|
|
2. Test the camera with installing and then using e.g. "sudo raspistill -o Desktop/image3.jpg"
|
|
|
|
|
|
2. Test the camera with installing and then using e.g.
|
|
|
|
|
|
'''bash
|
|
|
sudo raspistill -o Desktop/image3.jpg
|
|
|
'''
|
|
|
|
|
|
Referring to https://larrylisky.com/2016/11/24/enabling-raspberry-pi-camera-v2-under-ubuntu-mate/ . Unfortunately, RasPi Config can't be installed on 20.04 (?)
|
|
|
|
|
|
3. Read module at https://gitlab.com/boldhearts/ros2_v4l2_camera, run nodes with ros2 run v4l2_camera v4l2_camera_node (so far only the raw image works!)
|
|
|
3. Read module at https://gitlab.com/boldhearts/ros2_v4l2_camera, run nodes with (so far only the raw image works!)
|
|
|
|
|
|
'''bash
|
|
|
ros2 run v4l2_camera v4l2_camera_node
|
|
|
'''
|
|
|
|
|
|
4. To view the image data simply run ros2 topic echo /image/raw or use the ros2 viewer ros2 run rqt_image_view rqt_image_view |
|
|
\ No newline at end of file |
|
|
4. To view the image data simply run
|
|
|
'''bash
|
|
|
ros2 topic echo /image/raw
|
|
|
'''
|
|
|
or use the ros2 viewer
|
|
|
'''bash
|
|
|
ros2 run rqt_image_view rqt_image_view
|
|
|
''' |
|
|
\ No newline at end of file |