Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.isort]
profile = "black"
profile = "black"

[tool.black]
line-length = 128
12 changes: 3 additions & 9 deletions src/example/xterrabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ def __init__(self) -> None:
self._logger = logging.getLogger(__name__)
# b is the mobile base
# d is the camera
self._T_d_b = np.array(
[[0, 0, -1, 250], [0, -1, 0, -150], [-1, 0, 0, 200], [0, 0, 0, 1]]
)
self._T_d_b = np.array([[0, 0, -1, 250], [0, -1, 0, -150], [-1, 0, 0, 200], [0, 0, 0, 1]])

self._T_d_e = np.array(
[[0, 0, -1, 300], [0, -1, 0, 100], [-1, 0, 0, 120], [0, 0, 0, 1]]
) # e is the object
self._T_d_e = np.array([[0, 0, -1, 300], [0, -1, 0, 100], [-1, 0, 0, 120], [0, 0, 0, 1]]) # e is the object
self._T_b_c = np.array(
[
[0, -1 / np.sqrt(2), -1 / np.sqrt(2), 30],
Expand All @@ -28,9 +24,7 @@ def __init__(self) -> None:
[0, 0, 0, 1],
]
) # c is the joint of the gripper
self._T_a_d = np.array(
[[0, 0, -1, 400], [0, -1, 0, 50], [-1, 0, 0, 300], [0, 0, 0, 1]]
) # a is the root
self._T_a_d = np.array([[0, 0, -1, 400], [0, -1, 0, 50], [-1, 0, 0, 300], [0, 0, 0, 1]]) # a is the root

def get_object_in_gripper_frame(self) -> npt.NDArray[np.float64]:
T_c_e = (
Expand Down