Skip to content

Commit

Permalink
delete rpr
Browse files Browse the repository at this point in the history
  • Loading branch information
kharitonov-ivan committed Oct 28, 2023
1 parent 122d6be commit 56b7d1b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/motion_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ def Q(self, dt: float) -> np.ndarray:
"""Represents motion noise covariance"""
raise NotImplementedError

def __repr__(self) -> str:
raise NotImplementedError


class ConstantVelocityMotionModel(MotionModel):
def __init__(self, random_state: int, sigma_q: float, *args, **kwargs):
Expand All @@ -42,9 +39,6 @@ def Q(self, dt: float) -> np.ndarray:
]
)

def __repr__(self) -> str:
return f"Constant velocity motion model with sigma = {self.sigma}"


class CoordinateTurnMotionModel(MotionModel):
def __init__(self, random_state: int, sigma_v: float, sigma_omega: float, *args, **kwargs):
Expand All @@ -69,9 +63,6 @@ def Q(self, dt: float) -> np.ndarray:
"""Motion noise covariance for coordinate turn model"""
return np.diag([0, 0, self.sigma_v**2, 0, self.sigma_omega**2])

def __repr__(self) -> str:
return self.__class__.__name__ + (f"(d={self.d}, " f"dt={self.dt}, " f"sigma_v={self.sigma_v}, " f"sigma_omega={self.sigma_omega}, ")


class ConstantAccelerationMotionModel(MotionModel):
def __init__(self, random_state: int, sigma_a: float, *args, **kwargs):
Expand Down Expand Up @@ -110,6 +101,3 @@ def Q(self, dt: float) -> np.ndarray:
)
* sigma_a2
)

def __repr__(self) -> str:
return f"Constant acceleration motion model with dt = {self.dt} sigma_a = {self.sigma_a}"

0 comments on commit 56b7d1b

Please sign in to comment.