Skip to content

Add utility module for collision detection #1222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AtsushiSakai
Copy link
Owner

@AtsushiSakai AtsushiSakai commented May 25, 2025

Introduced collision_detection.py with helper functions and enums for calculating point orientation to line segments. This module facilitates collision detection tasks and enhances modularity in the codebase.

#1217

Reference issue

What does this implement/fix?

Additional information

CheckList

  • Did you add an unittest for your new example or defect fix?
  • Did you add documents for your new example?
  • All CIs are green? (You can check it after submitting)

Introduced `collision_detection.py` with helper functions and enums for calculating point orientation to line segments. This module facilitates collision detection tasks and enhances modularity in the codebase.
"""

from enum import Enum
import numpy as np

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'np' is not used.

Copilot Autofix

AI 4 days ago

To fix the issue, we will remove the unused numpy import from line 6. This will eliminate the unnecessary dependency and improve code readability. No other changes are required since the functionality of the code does not depend on numpy.

Suggested changeset 1
utils/collision_detection.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/utils/collision_detection.py b/utils/collision_detection.py
--- a/utils/collision_detection.py
+++ b/utils/collision_detection.py
@@ -5,3 +5,3 @@
 from enum import Enum
-import numpy as np
+
 
EOF
@@ -5,3 +5,3 @@
from enum import Enum
import numpy as np


Copilot is powered by AI and may make mistakes. Always verify output.
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.

1 participant