Skip to content

Commit 4427dd0

Browse files
EricBoiseLGSVLdmitry.zelenkovsky
authored andcommitted
update raycast layer with obstacle
1 parent f19340c commit 4427dd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickstart/03-raycast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
# 9 - EGO vehicles
3131
# 10 - NPC vehicles
3232
# 11 - Pedestrian
33-
# TODO: obstacle layer
33+
# 12 - Obstacle
3434

3535
# Included layers can be hit by the rays. Otherwise the ray will go through the layer
3636
layer_mask = 0
37-
for bit in [0, 10, 11]: # do not put 9 here, to not hit EGO vehicle itself
37+
for bit in [0, 10, 11, 12]: # do not put 9 here, to not hit EGO vehicle itself
3838
layer_mask |= 1 << bit
3939

4040
# raycast returns None if the ray doesn't collide with anything

0 commit comments

Comments
 (0)