When should you set use_sim_time to true
Hello all,
I am currently a little bit confused by when should I set the 'use_sim_time' parameter in my node to be true? Because from looking at the example in some projects, such as Nav2, all their node launch with 'use_sim_time' to be true.
But then, when I looked at other projects, such as nmea, and imu_filter, they did not have use_sim_time to be true initially.
Thus, I am wondering if my understanding below is correct? I should only turn on 'use_sim_time' to be true for any code that is not related to any physical hardware, such as GPS, IMU, .. And for those nodes involving interacting with the physical component of the robot, should I set 'use_sim_time' to false?
I guess my question is, for what kind of node should I set 'use_sim_time' to be false or true?
Thanks in advance!