计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
road-vehicle-dynamics【效率与协作】Use HighwayEnv road, lane, vehicle, object, and custom-environment APIs to build and troubleshoot lower-level driving scenarios.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an agent needs to build or inspect HighwayEnv road networks, lanes, vehicles, road objects, connected-lane neighbour detection, controller/behaviour classes, or a custom environment class.
gym.make, registration/import fixes, reset/step/render loops, vectorization, multi-agent wrappers, finite-MDP helpers), read ../simulation-environments/SKILL.md.info["rewards"], goal observations, or action-space mismatches, read ../observations-actions-rewards/SKILL.md.../training-and-evaluation/SKILL.md.references/road-vehicle-api.md when constructing RoadNetwork graphs, converting lane coordinates, adding vehicles/objects, choosing vehicle classes, or diagnosing Road.neighbour_vehicles results across connected lane segments.references/custom-environments.md when implementing a new AbstractEnv subclass, overriding scene/reward/termination methods, registering an environment ID, or checking the custom-environment lifecycle.references/troubleshooting.md when vehicles spawn off-lane, lane indexes are wrong, neighbour detection misses vehicles near segment boundaries, controller actions do not change speed/lane, collisions behave unexpectedly, custom environments fail during reset/step, or interpolation/spline checks fail.scripts/check_spline_interp.py as a tiny deterministic smoke check for HighwayEnv's SciPy-free numpy_interp1d helper before relying on PolyLane/LinearSpline2D geometry in a custom scenario.RoadNetwork first, using node names plus lane IDs as stable LaneIndex tuples such as ("a", "b", 0).lane.position(longitudinal, lateral), lane.local_coordinates(position), lane.heading_at(longitudinal), and lane.on_lane(position, ...) before spawning vehicles.Road(network=net, np_random=env.np_random, record_history=..., neighbour_vehicles_connected_lanes=...), then append vehicles to road.vehicles and obstacles/landmarks to road.objects.self.action_type.vehicle_class for controlled ego vehicles inside custom environments; use other_vehicles_type/utils.class_from_path(...) only for non-controlled traffic.neighbour_vehicles_connected_lanes=True intentionally and document whether old *-v0 legacy behaviour must be reproduced.default_config, _reset, road creation, vehicle creation, _reward, optional _rewards, _is_terminated, and _is_truncated; then run one bounded reset/step smoke test.A successful use of this sub-skill should produce one or more of: