MCPcopy Create free account
hub / github.com/dotchen/LearningByCheating / is_within_distance_ahead

Function is_within_distance_ahead

PythonAPI/agents/tools/misc.py:62–86  ·  view source on GitHub ↗

Check if a target object is within a certain distance in front of a reference object. :param target_location: location of the target object :param current_location: location of the reference object :param orientation: orientation of the reference object :param max_distance: max

(target_location, current_location, orientation, max_distance, degree=60)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

_is_walker_hazardMethod · 0.90
_is_vehicle_hazardMethod · 0.90

Calls 2

normMethod · 0.80
dotMethod · 0.80

Tested by

no test coverage detected