added timestamp to target_velocity.py
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import datetime
|
||||
import pickle
|
||||
import sys
|
||||
from random import randrange
|
||||
@@ -69,7 +70,8 @@ class Orchestrator:
|
||||
target_vel = randrange(0, 130)
|
||||
print('Target velocity: {}'.format(target_vel))
|
||||
response_channel.send(pickle.dumps(
|
||||
TargetVelocity(vin=received_daf_object.vehicle_identification_number, target_velocity=target_vel)))
|
||||
TargetVelocity(vin=received_daf_object.vehicle_identification_number, target_velocity=target_vel,
|
||||
timestamp=datetime.datetime.now())))
|
||||
|
||||
def handle_tl_state_receive(self, msg):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user