Advance passed advisory route joints from observed body progress
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
"""Current observed body support for an intent transition, never a drive goal."""
|
||||
import math
|
||||
|
||||
import numpy as np
|
||||
|
||||
|
||||
@@ -11,9 +9,11 @@ def route_support(monitor, observed, value, inputs):
|
||||
pose = np.asarray(value["pose"], dtype=float)
|
||||
target = np.asarray(target, dtype=float)
|
||||
if (target.shape != (2,) or not np.isfinite(target).all()
|
||||
or math.dist(pose[:2], target) > 3.5
|
||||
or value["execution_inputs_sha256"] != inputs["sha256"]):
|
||||
raise ValueError("Invalid route transition observation")
|
||||
# The target binds the receipt to an itinerary joint; no terrain near that
|
||||
# target is queried or admitted. Assess only the actual observed body here.
|
||||
# Ordered longitudinal progress belongs to RoutedMission, not this sensor.
|
||||
support = observed["permitted_terrain"]
|
||||
receipt = monitor.assess_pose(observed["terrain"], pose,
|
||||
value["body_contact_height_m"], support_terrain=support)
|
||||
|
||||
Reference in New Issue
Block a user