Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Latency of 3-4 seconds and is it possible to have a raw video/images instead of compressed? #118

Open
astronaut71 opened this issue Aug 19, 2021 · 6 comments

Comments

@astronaut71
Copy link

Hi Im using raspberry Pi 4 B and Camera Module V2 , so Im able to compile and run it but even the law resolution and 30fps launch file has a Video Latency of 3-4 seconds. Is it possible to reduce it and have in some how real time? Is that because is compressed video/image or? Can i display as a raw video/image, would that help to reduce the Video Latency?

Thanks

@alvgaona
Copy link

alvgaona commented Sep 1, 2021

Hi @astronaut71, I've tested this on a Raspberry Pi 4 with a Raspberry Pi Camera Module v2.1. I was able to run the kinetic branch on a ROS Noetic distro, and I had no problem whatsoever with latency. The node is publishing at ~80 Hz for a 640x480 resolution. And, by the way, you can enable a raw image topic by setting the enable_raw:=true parameter.

@astronaut71
Copy link
Author

can you tell me what have you done to run it without any latency?

@alvgaona
Copy link

alvgaona commented Sep 3, 2021

Nothing out of the ordinary @astronaut71. My set-up is Raspberry Pi 4 with a Raspberry Pi Camera Module v2.1 on Ubuntu Mate 20.04 with ROS Noetic. Let me correct myself on my last comment. This node only performs at ~45 Hz for a 640x480 resolution.

To allow my camera to work, I first had to install a few libraries by running:

sudo apt install libraspberrypi-dev

One question though. When you refer to latency, is this something related to low FPS? Or is it just a fixed delay?

@astronaut71
Copy link
Author

oh. Im not using Ubuntu mate. ROS melodic on Raspbian. I refer to a delay. At the delay is not fixed. Its increase with the time. FPS is fixed, its 30

@alvgaona
Copy link

alvgaona commented Sep 7, 2021

Why don't you try an arm64 architecture OS? Raspian OS is 32 bit. Also, I believe ROS works much better with Debian based distros.

@anfederman
Copy link

anfederman commented Sep 7, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants