Skip to content

Commit 3901d24

Browse files
committed
(refactor) Updates motion models names
1 parent 35a0ae4 commit 3901d24

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ license = { text = "MIT" }
2020
keywords = ["robotics", "gpgpu", "navigation", "control", "planning", "mapping"]
2121

2222
dependencies = [
23-
"numpy<=1.26.4",
23+
"numpy",
2424
"toml",
2525
"attrs>=23.2.0",
2626
"pyyaml",

src/kompass_core/models.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,9 +1108,9 @@ def init_zero(cls, **kwargs):
11081108
class RobotType(Enum):
11091109
"""RobotType."""
11101110

1111-
ACKERMANN = "ACKERMANN_ROBOT"
1112-
DIFFERENTIAL_DRIVE = "DIFFERENTIAL_DRIVE_ROBOT"
1113-
OMNI = "OMNI_ROBOT"
1111+
ACKERMANN = "ACKERMANN"
1112+
DIFFERENTIAL_DRIVE = "DIFFERENTIAL_DRIVE"
1113+
OMNI = "OMNI"
11141114

11151115
@classmethod
11161116
def values(cls) -> List[str]:
@@ -1148,17 +1148,17 @@ def to_kompass_cpp_lib(cls, value: str) -> kompass_cpp.control.ControlType:
11481148
:return: Robot Type
11491149
:rtype: kompass_cpp.control_types
11501150
"""
1151-
if value == "ACKERMANN_ROBOT":
1151+
if value == "ACKERMANN":
11521152
return kompass_cpp.control.ControlType.ACKERMANN
1153-
if value == "DIFFERENTIAL_DRIVE_ROBOT":
1153+
if value == "DIFFERENTIAL_DRIVE":
11541154
return kompass_cpp.control.ControlType.DIFFERENTIAL_DRIVE
11551155
return kompass_cpp.control.ControlType.OMNI
11561156

11571157

11581158
control_types = {
1159-
"ACKERMANN_ROBOT": AckermannControl,
1160-
"DIFFERENTIAL_DRIVE_ROBOT": DifferentialDriveControl,
1161-
"OMNI_ROBOT": OmniDirectionalControl,
1159+
"ACKERMANN": AckermannControl,
1160+
"DIFFERENTIAL_DRIVE": DifferentialDriveControl,
1161+
"OMNI": OmniDirectionalControl,
11621162
}
11631163

11641164

0 commit comments

Comments
 (0)