BCLab-UNM / SC2

Swarmathon Team Code for the NASA Space Challenge 2 Competition
MIT License
2 stars 0 forks source link

Accumulated obstacle #96

Closed Carter90 closed 3 years ago

Carter90 commented 4 years ago

ObstacleException should now contain the accumulated obstacles You should be able to use the bit-wise & and Obstacles.LIDAR_LEFT & Obstacles.LIDAR_RIGHT and others in Obstacles.msg to figure out where the obstacle is, this can be used in bug0 and such.

try:
    scoot.drive(20)
except Exception as e:
    print(e.obstacle)

Resolved #93

Carter90 commented 4 years ago

Forgot the go back to master so I have an extra commit for src/obstacle/msg/Obstacles.msg, VISION_* like CENTER these changes are not implemented yet but can be implemented in bug0 in advance.

abbypribis commented 4 years ago

Tested e.obstacle message - looks good! Have not tested vision yet.