This is the discussion topic for the video and blog post linked above. Please keep all replies relevant to the content, otherwise create a new topic.
Discussion - Adding a Camera to our Robot (Making a Mobile Robot Pt 9)
Hi, thanks for the great tutorials. They have really made a difference. However, I have hit a problem I cant seem to resolve. Despite trying all over the holiday.
If I start a node publishing to an image topic at 10hz. I can see the publisher running well. But when I start the subscriber node. The publisher hangs. I have tried switching to cyclonedds, running the nodes with best_effort reliability to no avail.
Using image_tools cam2image to publish on my Pi and image_tools showimage to subscribe on my PC, it runs perfectly. Similarly with rviz2 on the PC. But as soon as I interrogate the topic with ros2 topic hz, it hangs.
I am running Humble on Ubuntu 22.04 on the Pi and PC. Everything I can see on the blogsphere says it goes away with cyclonedds, but not for me.
Hmm very odd… and switching RMW and QoS were going to be my first suggestions!
What resolution/size is the image? It’s possible that you’re running up against some buffer size issues somewhere internally? Can you try forcing a lower size and/or framerate to see if it works and then slowly step up?
Can you guide me how can i add raspberry Pi camera v3 to my robot in ros2 in ubuntu mate 20.04
Sorry for the late reply. I would be happy to help you with picamera 3. What variant pi do you have, are you planning to run ros2
I have both ros 2 humble and foxy on two different sd card but still i am not able to use new raspberry Pi camera v3 with IMX708 camera sensor. I think the camera is not supported in ubuntu please help me is there any way to run the v3 camera on ubuntu.
Hi, unfortunately I haven’t got the Pi camera 3 yet so am unable to help - I would have assumed the old driver would still work and that they would speak the same protocol but perhaps not?
Sorry I can’t be of more help but hopefully @jimmymcinerney has some suggestions?
I am feeling foolish, I recently bought a new pi camera, as I was ordering it I thought I clicked on the module3. But a v2 turned up, I didnt check it, simply popped it into the camera holder (I broke the previous one by dropping a screwdriver onto it). Away it went
The point of thiis long story is that I don’t have a picamera v3, so I cant really be of any help, sorry.
Perhaps you might consider amending your config.txt file and “replace start_x=1 with dtoverlay=imx708” https://community.octoprint.org/t/pi-camera-v3-imx-chipset-based-cameras-not-working/49022/7