Fix timestamp bug

Carla stamp is in ms thus we need to divide it by 1000 to go to seconds (and not the inverse)
This commit is contained in:
Laurent George 2018-06-08 16:49:17 +02:00
parent 587c7b36a0
commit 0502e607b7
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class CarlaRosBridge(object):
# handle time
self.carla_game_stamp = measurements.game_timestamp
self.cur_time = rospy.Time.from_sec(self.carla_game_stamp * 1000.0)
self.cur_time = rospy.Time.from_sec(self.carla_game_stamp * 1e-3)
self.compute_cur_time_msg()
# handle agents