lag/delay simulation

asked 2021-08-01 11:01:54 -0500

lxg gravatar image

updated 2022-05-15 08:28:20 -0500

lucasw gravatar image

Hello. I have some simulated sensors, hector gazebo ros for gps/imu and some others for camera ... My question is, how best can I simulate lag/delay of messages published by any of these sensors to another node that is subscribing to their topics? Furthermore, is there a way to make this delay/lag random? say randomly between 0 and 5 seconds or so. Thanks alot.

edit retag flag offensive close merge delete