Skip to content

Inconsistent publishing rate for sensors #166

@alonsollorente

Description

@alonsollorente

Hi everyone!

I hope you can help me with this problem that I'm having. I'm trying to broadcast sensory data in ROS2 and going through some difficulties.

Thank you in advance for helping me out! I let you with a brief description of my problem.

Description of the bug
There is an inconsistency in the publishing frequency of sensor data between ROS2 and Unity when using ros_tcp_endpoint. Despite setting the publishing rate to 10Hz for one LiDAR sensor and 100Hz for an IMU, the actual publishing rate observed is significantly lower and inconsistent, being in the case of the IMU around 35Hz. The ros2 topic hz /imu output can be seen:

image

To Reproduce
Steps to reproduce the behavior:

  • I'm using the set of sensors from UnitySensor, which uses ROS_TCP_Connector.
  • Setting from IMU and LiDAR:

image
image

Environment set up:

  • Unity Version: 2023.2.20f1
  • Ubuntu 22.04, ROS2 Humble

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions