perf(simulation): push current previews and streamline native sensor startup
This commit is contained in:
@@ -100,10 +100,18 @@ def test_uncertain_path_is_not_a_persistent_obstacle_but_cannot_supply_a_goal():
|
||||
adapter.segmenter_id = "simulation-segformer-ade"
|
||||
adapter.models = SimpleNamespace(labels={})
|
||||
adapter.mission = WaypointMission([[2, 0]])
|
||||
from k1link.simulation.ai_polygon.robots import select_robot
|
||||
from k1link.simulation.ai_polygon.run_inputs import sensor_rig
|
||||
from k1link.simulation.ai_polygon.source_projection import PinholeSource
|
||||
robot = select_robot("dcd006-v020")
|
||||
adapter.geometry = robot["physics"]
|
||||
adapter.source = PinholeSource(sensor_rig(robot, 0.8))
|
||||
labels = np.full((512, 512), 13, dtype=np.uint8)
|
||||
labels[:, :100] = 9 # A lawn is still an explicit profile exclusion.
|
||||
output = adapter.plan_mission(
|
||||
{
|
||||
"navigation.route": None,
|
||||
"segmentation.known": np.zeros_like(labels, dtype=bool),
|
||||
"segmentation.labels": labels,
|
||||
"segmentation.surface": np.zeros_like(labels, dtype=bool),
|
||||
"source.lidar": np.array([[x, y, 0] for x in [1.5, 2, 2.5] for y in [-0.2, 0, 0.2]]),
|
||||
|
||||
Reference in New Issue
Block a user