I have a node that creates a grid map with obstacles from a pointcloud input. After testing, I've realized that the grid map is being published at 2 Hz in real tests while in simulation (gazebo) its frequency is 10 Hz.
I've already compared both cases using pointclouds with the same number of points but the difference is still there. For clarity, robot's computer is more powerful than the one used in simulation.
Thanks in advance. Let me know if you need part of the code to help me.
EDIT: I'm using ROS melodic. The rate of the input topic (pointcloud) is 10 Hz for both. Sim time is set during simulations.