Skip to content

Commit

Permalink
Removed RobotModel.dim(). (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisenp authored Apr 12, 2022
1 parent 8b0b04d commit 8b11074
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion theseus/embodied/collision/collision.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def _copy_impl(self, new_name: Optional[str] = None) -> "Collision2D":
)

def dim(self) -> int:
return self.robot.dim()
return 1
2 changes: 1 addition & 1 deletion theseus/embodied/collision/eff_obj_contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ def _copy_impl(
)

def dim(self) -> int:
return self.robot.dim()
return 1
7 changes: 0 additions & 7 deletions theseus/embodied/kinematics/robot_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ def __init__(self):
def forward_kinematics(self, robot_pose: RobotModelInput) -> Dict[str, LieGroup]:
pass

@abc.abstractmethod
def dim(self) -> int:
pass


class IdentityModel(RobotModel):
def __init__(self):
Expand All @@ -37,6 +33,3 @@ def forward_kinematics(self, robot_pose: RobotModelInput) -> Dict[str, LieGroup]
raise NotImplementedError(
f"IdentityModel not implemented for pose with type {type(robot_pose)}."
)

def dim(self) -> int:
return 1

0 comments on commit 8b11074

Please sign in to comment.