In src/svea_core/src/svea/simulators/sim_lidar.py rospy.Time.now() is only called once in initialization. For me this lead to issues with tf transforms with the /scan topic (as all messages had the same, and wrong, timestamp).
I added self._scan_msg.header.stamp = rospy.Time.now() to the publish_scan function which made it work for me. Not sure if that is a good fix or not.
@kaarmu and @frankjjiang is that a good fix or will that affect other parts of the script?
In
src/svea_core/src/svea/simulators/sim_lidar.pyrospy.Time.now()is only called once in initialization. For me this lead to issues with tf transforms with the/scantopic (as all messages had the same, and wrong, timestamp).I added
self._scan_msg.header.stamp = rospy.Time.now()to thepublish_scanfunction which made it work for me. Not sure if that is a good fix or not.@kaarmu and @frankjjiang is that a good fix or will that affect other parts of the script?