RoboJackets / robocup-software

Georgia Tech RoboJackets Software for the RoboCup Small Size League
Apache License 2.0
183 stars 187 forks source link

Ball placement obstacle with Stadium Shape on their ball placement #2294

Open shourikb opened 1 month ago

shourikb commented 1 month ago

Description

Ensure rules compliance during their ball placement by staying out of the restricted area which is a stadium shape. We create a new geometry shape that represents this stadium shape. The stadium shape is composed of 2 circles and a rectangle. To create the shape, it takes in 2 points (that represent the centers of the circles) and a radius.

Associated / Resolved Issue

https://app.clickup.com/t/86b1vty49

Steps to Test

Test Case 1

  1. Run external ref
  2. Modify robot_factory_position such that update_position always returns SmartIdle
  3. Run ball placement for blue team (yellow team should be Robojackets)
  4. Place the ball somewhere in the field
  5. Move a robot into the stadium shape drawn

Expected result: Robot will move out of stadium shape drawn

Key Files to Review

Stadium Shape

Plan Request

Drawer

Review Checklist

(Optional) Sub-issues (for drafts)

Note: if you find yourself breaking this PR into many smaller features, it may make sense to break up the PR into logical units based on these features.