stereolabs / zed-ros-wrapper

ROS wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros/
MIT License
441 stars 389 forks source link

Very low framerate if publish_urdf is set to false #927

Closed BenjaminKrummenacher closed 8 months ago

BenjaminKrummenacher commented 8 months ago

Preliminary Checks

Description

When i launch the Zed2i with the default launchfile and set 'publish_urdf' to false, the images are only published with a frequency of ~1 HZ, instead of 15 HZ. With just the default launchfile, it runs normally with 15 HZ.

Steps to Reproduce

  1. set 'publish_urdf' to false in launchfile
  2. roslaunch the changed launchfile

Expected Result

I would expect that the URDF is not published, but the frequency would stay the same.

Actual Result

The frequency drops drastically (to ~1 HZ).

ZED Camera model

ZED2i

Environment

Ubuntu 20.04
Nvidia Jetson Orin AGX
ZED SDK version: 4.0.6
ROS Noetic

Anything else?

No response

Myzhar commented 8 months ago

That's expected if you do not provide the correct TF tree elsewhere. Internally the ZED Wrapper waits for the TFs to be available with a timeout that slows down the operations if the TFs are not ready: https://www.stereolabs.com/docs/ros/zed-node/#transform-frames