Skip to content

Commit

Permalink
chore: pacify pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanElsner committed Feb 24, 2024
1 parent a759be1 commit 737207f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/garmi_parti/parti/haptic_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# world frame in plane frame
T_plane_0 = tr.hmat_inv(T_0_plane)

deadtime = 1.0
DEADTIME = 1.0


class TeleopAgent:
Expand Down Expand Up @@ -108,7 +108,7 @@ def _plane_callback(self, message: dict) -> None:

def _object_callback(self, message: dict) -> None:
# object in right arm base frame
T_right0_object = tr.pos_quat_to_hmat(
T_right0_object = tr.pos_quat_to_hmat( # pylint: disable=invalid-name
[
message["pose"]["position"]["x"],
message["pose"]["position"]["y"],
Expand All @@ -122,7 +122,7 @@ def _object_callback(self, message: dict) -> None:
],
)
# object in plane frame
T_plane_object = T_plane_0 @ T_0_right0 @ T_right0_object
T_plane_object = T_plane_0 @ T_0_right0 @ T_right0_object # pylint: disable=invalid-name

theta = spatialmath.SO3(T_plane_object[:3, :3]).rpy()
theta = theta[2]
Expand Down Expand Up @@ -188,7 +188,7 @@ def prefix(self) -> str:
return "scene"

def set_control(self, physics: mjcf.Physics, command: np.ndarray) -> None:
if physics.time() - self._deadtime < deadtime:
if physics.time() - self._deadtime < DEADTIME:
return
update = True
allowed_collision = ["plane", "side_a", "side_b", "side_c", "side_d"]
Expand Down

0 comments on commit 737207f

Please sign in to comment.