Port _KNodeOfObstacle to Scala