Skip to content

Remove unused imports from defend_parameter.py#100

Merged
fred-huang122 merged 2 commits intofix/goalkeepingfrom
copilot/sub-pr-92-one-more-time
Jan 24, 2026
Merged

Remove unused imports from defend_parameter.py#100
fred-huang122 merged 2 commits intofix/goalkeepingfrom
copilot/sub-pr-92-one-more-time

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 24, 2026

Addresses code review feedback on PR #92 requesting removal of unused imports in defend_parameter.py.

Changes

  • Removed unused face_ball and move imports from utama_core.skills.src.utils.move_utils
# Before
from utama_core.skills.src.go_to_point import go_to_point
from utama_core.skills.src.utils.move_utils import face_ball, move

# After
from utama_core.skills.src.go_to_point import go_to_point

The function only uses go_to_point for movement control; face_ball and move were never referenced.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on fix/goalkeeping PR Remove unused imports from defend_parameter.py Jan 24, 2026
Copilot AI requested a review from NingchuanIC January 24, 2026 16:50
@fred-huang122 fred-huang122 marked this pull request as ready for review January 24, 2026 16:52
@fred-huang122 fred-huang122 merged commit ac6d7ca into fix/goalkeeping Jan 24, 2026
@fred-huang122 fred-huang122 deleted the copilot/sub-pr-92-one-more-time branch January 24, 2026 16:52
fred-huang122 added a commit that referenced this pull request Jan 24, 2026
* dribbling

* improved logic

* bug fix

* updates

* improvements

* typing

* optimizations to rsim

* Update utama_core/rsoccer_simulator/src/ssl/envs/standard_ssl.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* bug fixes + updates

* linting

* test bug fix

* test_fix

* undo

* undo

* reverted params

* bug fixes

* improved dribbler logic

* Update utama_core/team_controller/src/controllers/real/real_robot_controller.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* updates

* update fix

* updates

* updates

* fixes

* removed prints

* feat: change goalkeep

* feat: fix bug

* add change

* Fix: fix the bug run toward enemy

* Fix: add a barrier to the forbiden square

* Fix: goal keep

* simplification of similar codes

* simplification

* minor: improve in algo

* minor: improve in algo

* fix: algorithm problem

* Fix: write the algorithm that let goalkeeper go between predict line and other robo

* Feat: add the third defender

* Fix: better tribble defender

* chore: linting

* Update utama_core/skills/src/goalkeep.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update utama_core/skills/src/defend_parameter.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update utama_core/skills/src/defend_parameter.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Remove unused imports from defend_parameter.py (#100)

* Initial plan

* Remove unused imports face_ball and move

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Fix goalkeep to handle teams with more than 3 robots (#99)

* Initial plan

* Fix: handle cases with more than 3 friendly robots in goalkeep

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Remove dead code file goal_keep.py (#98)

* Initial plan

* Remove dead code file goal_keep.py

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Remove unused math import from standard_ssl.py (#97)

* Initial plan

* Remove unused math import from standard_ssl.py

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Fix hardcoded goal coordinates in defend_parameter.py for bidirectional play (#96)

* Initial plan

* Fix hardcoded goal x-coordinates in defend_parameter.py

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>
Co-authored-by: Fred Huang <60901360+fred-huang122@users.noreply.github.com>

---------

Co-authored-by: Fred Huang <fredhuang122106@gmail.com>
Co-authored-by: Fred Huang <60901360+fred-huang122@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Isaac Yong <72080621+isaac0804@users.noreply.github.com>
Co-authored-by: Yangping Li <lynfe@LAPTOP-JJF6AK12.localdomain>
Co-authored-by: Ningchaun <1311856651@qq.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>
valentinbruehl pushed a commit that referenced this pull request Feb 22, 2026
* dribbling

* improved logic

* bug fix

* updates

* improvements

* typing

* optimizations to rsim

* Update utama_core/rsoccer_simulator/src/ssl/envs/standard_ssl.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* bug fixes + updates

* linting

* test bug fix

* test_fix

* undo

* undo

* reverted params

* bug fixes

* improved dribbler logic

* Update utama_core/team_controller/src/controllers/real/real_robot_controller.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* updates

* update fix

* updates

* updates

* fixes

* removed prints

* feat: change goalkeep

* feat: fix bug

* add change

* Fix: fix the bug run toward enemy

* Fix: add a barrier to the forbiden square

* Fix: goal keep

* simplification of similar codes

* simplification

* minor: improve in algo

* minor: improve in algo

* fix: algorithm problem

* Fix: write the algorithm that let goalkeeper go between predict line and other robo

* Feat: add the third defender

* Fix: better tribble defender

* chore: linting

* Update utama_core/skills/src/goalkeep.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update utama_core/skills/src/defend_parameter.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update utama_core/skills/src/defend_parameter.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Remove unused imports from defend_parameter.py (#100)

* Initial plan

* Remove unused imports face_ball and move

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Fix goalkeep to handle teams with more than 3 robots (#99)

* Initial plan

* Fix: handle cases with more than 3 friendly robots in goalkeep

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Remove dead code file goal_keep.py (#98)

* Initial plan

* Remove dead code file goal_keep.py

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Remove unused math import from standard_ssl.py (#97)

* Initial plan

* Remove unused math import from standard_ssl.py

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

* Fix hardcoded goal coordinates in defend_parameter.py for bidirectional play (#96)

* Initial plan

* Fix hardcoded goal x-coordinates in defend_parameter.py

Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>
Co-authored-by: Fred Huang <60901360+fred-huang122@users.noreply.github.com>

---------

Co-authored-by: Fred Huang <fredhuang122106@gmail.com>
Co-authored-by: Fred Huang <60901360+fred-huang122@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Isaac Yong <72080621+isaac0804@users.noreply.github.com>
Co-authored-by: Yangping Li <lynfe@LAPTOP-JJF6AK12.localdomain>
Co-authored-by: Ningchaun <1311856651@qq.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NingchuanIC <212761386+NingchuanIC@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants