mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-10-01 03:43:42 +08:00
@@ -19,4 +19,4 @@ class CarlaBridge(SimulatorBridge):
|
||||
client.set_timeout(5)
|
||||
|
||||
return CarlaWorld(client, high_quality=self.high_quality, dual_camera=self.dual_camera,
|
||||
num_selected_spawn_point=self.num_selected_spawn_point, town=self.town)
|
||||
num_selected_spawn_point=self.num_selected_spawn_point, town=self.town)
|
||||
|
||||
@@ -96,4 +96,4 @@ def metadrive_process(dual_camera: bool, config: dict, camera_array, controls_re
|
||||
# wide_road_image = get_cam_as_rgb("rgb_wide")
|
||||
road_image[...] = get_cam_as_rgb("rgb_road")
|
||||
|
||||
rk.keep_time()
|
||||
rk.keep_time()
|
||||
|
||||
@@ -67,4 +67,4 @@ class Camerad:
|
||||
0.0, 0.0, 1.0]
|
||||
}
|
||||
setattr(dat, pub_type, msg)
|
||||
self.pm.send(pub_type, dat)
|
||||
self.pm.send(pub_type, dat)
|
||||
|
||||
@@ -91,4 +91,4 @@ class World(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def reset(self):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -116,4 +116,4 @@ class SimulatedCar:
|
||||
if self.idx % 50 == 0: # only send panda states at 2hz
|
||||
self.send_panda_state(simulator_state)
|
||||
|
||||
self.idx += 1
|
||||
self.idx += 1
|
||||
|
||||
@@ -122,4 +122,4 @@ class SimulatedSensors:
|
||||
|
||||
if (now - self.last_perp_update) > 0.25:
|
||||
self.send_peripheral_state()
|
||||
self.last_perp_update = now
|
||||
self.last_perp_update = now
|
||||
|
||||
Reference in New Issue
Block a user