lag/delay simulation
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.