Open BryanBetancur opened 4 months ago
I was subscribing as Reliable and the frames were accumulating, changing the qos to Best Effort solves the delay, however the problem of the fps reduction continues to occur.
We were seeing delays with the ros1 version having a .5 second delay. ultimately we reverted to 0.3.7 to fix the issue.
@BryanBetancur @kodie-artner so I'd ask here to stay focused on one issue at a time per issue 😅
@BryanBetancur glad adjusting the QoS settings helped you. If you are looking to optimize your system and go for performance at high resolution then I'd recommend checking out the work the ROS 2 realtime working group does, as well as looking into enabling zero copy if you can.
Hello, thanks for your useful package, I'm having a problem with the publishing frames delay.
Hardware: Nvidia Jetson Orin AGX 64GB
Package Branch: 0.8.0
This is the command that I'm using:
ros2 run usb_cam usb_cam_node_exe --remap __ns:=/gary_camera_chest --ros-args -p camera_info_url:=file:///opt/raya_os/ur_dev/ros_pkgs/gary_robot/usb_cam/config/camera_info.yaml -p image_width:=1920 -p image_height:=1080 -p pixel_format:=mjpeg2rgb -p av_device_format:=YUV422P -p framerate:=15.0 -p video_device:=/dev/video12 -p io_method:=mmap
Here is the output that I received:
Measurements:
CPU usage: ~51-54%
Movement delay is about 9 seconds, to get that time I did a movement in front of the camera and I took the time until the movement appear in camera. (This is my main problem)
When the CPU average is about 5% of usage (anything running except usb_cam) the delay is about 1 second (what is good for me).
I appreciate your help.