Skip to content

Commit

Permalink
testing handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxiaohua1011 committed Nov 18, 2021
1 parent 694a9e8 commit 9a393f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions ROAR/agent_module/forward_only_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(self, vehicle: Vehicle, agent_settings: AgentConfig, **kwargs):
def run_step(self, sensors_data: SensorsData, vehicle: Vehicle) -> VehicleControl:
super().run_step(sensors_data=sensors_data, vehicle=vehicle)
steering = 0

return VehicleControl(brake=True)
# if self.time_counter > 50:
# return VehicleControl(throttle=0, steering=steering, brake=True)
Expand Down
2 changes: 1 addition & 1 deletion ROAR_iOS
7 changes: 7 additions & 0 deletions handshake_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import socket
from ROAR.utilities_module.utilities import get_ip

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((get_ip(), 8008))
s.send(b'data')
print("sent")

0 comments on commit 9a393f9

Please sign in to comment.