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:
parent
587c7b36a0
commit
0502e607b7
|
@ -142,7 +142,7 @@ class CarlaRosBridge(object):
|
||||||
|
|
||||||
# handle time
|
# handle time
|
||||||
self.carla_game_stamp = measurements.game_timestamp
|
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()
|
self.compute_cur_time_msg()
|
||||||
|
|
||||||
# handle agents
|
# handle agents
|
||||||
|
|
Loading…
Reference in New Issue