Separate forbidden ground from body collision and retain capture phase
This commit is contained in:
@@ -12,7 +12,7 @@ from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
|
||||
from episode_failure import consume_pipeline_failure
|
||||
from scheduling_policy import build_scheduling_policy
|
||||
from scheduling_policy import CaptureCadence, build_scheduling_policy
|
||||
from local_state import StateChannel, read_json, write_json
|
||||
from motion_control import RoverMotionControl
|
||||
from observer_camera import ObserverCamera, SmoothView
|
||||
@@ -187,6 +187,7 @@ def main():
|
||||
directory / "sensor-clock.json",
|
||||
{
|
||||
"requested_hz": SENSOR_HZ,
|
||||
"capture_cadence": "monotonic-deadline-latest-frame-no-catchup",
|
||||
"maximum_pending_inference_frames": 1,
|
||||
"frame_deadline_seconds": FRAME_DEADLINE_SECONDS,
|
||||
"ray_packet": "world-mounts-indexed-endpoints-organized-ranges-v2",
|
||||
@@ -345,7 +346,8 @@ def main():
|
||||
operator_camera = ObserverCamera()
|
||||
smooth_view = SmoothView()
|
||||
control = {"control": "pause", "control_sequence": 0, "camera": "follow"}
|
||||
start = last_report = last_sensor = last_control = time.monotonic()
|
||||
start = last_report = last_control = time.monotonic()
|
||||
capture_cadence = CaptureCadence(SENSOR_HZ, start)
|
||||
render_frames = sensor_frames = sequence = 0
|
||||
prior_metrics = (start, 0, 0, 0, baseline)
|
||||
speed = 0.0
|
||||
@@ -626,7 +628,7 @@ def main():
|
||||
physics_motion.flush()
|
||||
physics = SimulationManager.get_num_physics_steps()
|
||||
sim_ns = round((physics - baseline) * 1e9 / 60)
|
||||
if playing and captured_at - last_sensor >= 1 / SENSOR_HZ:
|
||||
if playing and capture_cadence.due(captured_at):
|
||||
mounted_observation = None
|
||||
if mounted:
|
||||
intent = getattr(mission, "perception_target", mission.orientation_target)()
|
||||
@@ -704,7 +706,6 @@ def main():
|
||||
challenge.submit(packet, time.monotonic(), ai.submit)
|
||||
else:
|
||||
ai.submit(*packet)
|
||||
last_sensor = captured_at
|
||||
if challenge:
|
||||
challenge_events.writelines(
|
||||
json.dumps(e, allow_nan=False) + "\n" for e in challenge.drain_events()
|
||||
|
||||
Reference in New Issue
Block a user