Skip to content

Commit dd6a0cf

Browse files
authored
Update cone_detection.py
1 parent d0b1cf6 commit dd6a0cf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

GEMstack/onboard/perception/cone_detection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ def update(self, vehicle: VehicleState) -> Dict[str, Obstacle]:
361361
outline=None,
362362
material=ObstacleMaterialEnum.TRAFFIC_CONE,
363363
state=state,
364+
collidable=True
364365
)
365366
else:
366367
updated_obstacle = old_state
@@ -375,6 +376,7 @@ def update(self, vehicle: VehicleState) -> Dict[str, Obstacle]:
375376
outline=None,
376377
material=ObstacleMaterialEnum.TRAFFIC_CONE,
377378
state=state,
379+
collidable=True
378380
)
379381
obstacles[obstacle_id] = new_obstacle
380382
self.tracked_obstacles[obstacle_id] = new_obstacle
@@ -387,6 +389,7 @@ def update(self, vehicle: VehicleState) -> Dict[str, Obstacle]:
387389
outline=None,
388390
material=ObstacleMaterialEnum.TRAFFIC_CONE,
389391
state=state,
392+
collidable = True
390393
)
391394
obstacles[obstacle_id] = new_obstacle
392395

@@ -499,7 +502,7 @@ def box_to_fake_obstacle(box):
499502
pose = ObjectPose(t=0, x=x + w / 2, y=y + h / 2, z=0, yaw=0, pitch=0, roll=0, frame=ObjectFrameEnum.CURRENT)
500503
dims = (w, h, 0)
501504
return Obstacle(pose=pose, dimensions=dims, outline=None,
502-
material=ObstacleMaterialEnum.TRAFFIC_CONE, state=ObstacleStateEnum.STANDING)
505+
material=ObstacleMaterialEnum.TRAFFIC_CONE, state=ObstacleStateEnum.STANDING, collidable=True)
503506

504507

505508
if __name__ == '__main__':

0 commit comments

Comments
 (0)