Skip to content

Commit 05d05b3

Browse files
Fix hardcoded resolution_meters in project_pose_to_lane (nutonomy#685)
1 parent 864d0a2 commit 05d05b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-sdk/nuscenes/map_expansion/arcline_path_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def project_pose_to_lane(pose: Pose, lane: List[ArcLinePath], resolution_meters:
235235
closest_pose_index = np.linalg.norm(xy_points - pose[:2], axis=1).argmin()
236236

237237
closest_pose = discretized_lane[closest_pose_index]
238-
distance_along_lane = closest_pose_index * 0.5
238+
distance_along_lane = closest_pose_index * resolution_meters
239239
return closest_pose, distance_along_lane
240240

241241

0 commit comments

Comments
 (0)