-
Notifications
You must be signed in to change notification settings - Fork 144
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
Low image publishing rate #59
Comments
I don't think this is the expected rate. in my experience the rate is usually something slightly above 8Hz. You can check the default rates that the driver uses in https://github.com/clearpathrobotics/spot_ros/blob/master/spot_driver/config/spot_ros.yaml, but note that in practice the actual rate that you will get is lower. The main loop is also limited to 50Hz so you cannot receive messages faster than that https://github.com/clearpathrobotics/spot_ros/blob/master/spot_driver/src/spot_driver/spot_ros.py#L492, but this is an easy change. |
8Hz does seem excessively low. |
The ROS master and main nodes are running in a Docker container on a separate PC, communicating with the Spot over a wireless network. However, I've been able to get enough bandwidth with the same setup to stream the cameras using the Spot SDK at a much higher frame rate than 2 Hz. I've tried setting the publish rate up to 50 in |
If you change the rate of the main loop at does that help at all? |
This may actually be contributing to the problem. Rather than running |
I am having a similar issue, I am only getting ~2.5 FPS on the cameras, but I am running the ROS node on a PC connected to the Ethernet port on the back of the spot. The network usage is about 7 MB/s. I have also tried modifying the config yaml and the main loop rate with no improvement. Any suggestions? |
Were you able to find any solution for this issue? |
@heuristicus I'm using the humble release and I'm also facing the same problem of 2.5Hz rates. I noticed that after commenting out some "time.sleep" the rate improved slightly, which confirms that the problem is in the main loop, but not exactly where you define its rate. Can you advice? |
If you're using ros2, I recommend that you use the ros2 driver at https://github.com/bdaiinstitute/spot_ros2. That driver implements the image publishing in a separate node, which apparently improves performance. I hope to implement a similar approach in the ros1 driver soon as well. |
I have the Spot connected to our lab's WiFi network with the ROS driver running in a Docker container, but the publisher for all camera topics is only publishing at about 2 Hz. This is much lower than when I use the Spot Python SDK to retrieve the camera feed with the same setup, indicating that it's not a network bandwidth issue. Using the SDK isn't really an option for me, since I need a subscriber written in C# for Unity.
Could this be an error in the setup, or is this publishing rate for camera topics expected?
The text was updated successfully, but these errors were encountered: