Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geodude robot configuration #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
37 changes: 37 additions & 0 deletions pymoveit2/robots/geodude_left.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from typing import List

MOVE_GROUP_ARM: str = "left_arm"
MOVE_GROUP_GRIPPER: str = "left_hand"

OPEN_GRIPPER_JOINT_POSITIONS: List[float] = [0.0, 0.0, 0.0, 0.0]
CLOSED_GRIPPER_JOINT_POSITIONS: List[float] = [1.04, 1.04, 1.04, 0.00]


def joint_names(prefix: str = "left_") -> List[str]:
return [
prefix + "j1",
prefix + "j2",
prefix + "j3",
prefix + "j4",
prefix + "j5",
prefix + "j6",
prefix + "j7",
]


def base_link_name(prefix: str = "left_") -> str:
return prefix + "wam_base"


def end_effector_name(prefix: str = "left_") -> str:
return prefix + "hand_tcp"


def gripper_joint_names(prefix: str = "left_") -> List[str]:
return [
prefix + "j01",
prefix + "j11",
prefix + "j21",
prefix + "j00"]


35 changes: 35 additions & 0 deletions pymoveit2/robots/geodude_right.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from typing import List

MOVE_GROUP_ARM: str = "right_arm"
MOVE_GROUP_GRIPPER: str = "right_hand"

OPEN_GRIPPER_JOINT_POSITIONS: List[float] = [0.02, 0.02, 0.02, 0.0]
CLOSED_GRIPPER_JOINT_POSITIONS: List[float] = [1.5, 1.5, 1.5, 0.0]


def joint_names(prefix: str = "right_") -> List[str]:
return [
prefix + "j1",
prefix + "j2",
prefix + "j3",
prefix + "j4",
prefix + "j5",
prefix + "j6",
prefix + "j7",
]


def base_link_name(prefix: str = "right_") -> str:
return prefix + "wam_base"


def end_effector_name(prefix: str = "right_") -> str:
return prefix + "hand_tcp"


def gripper_joint_names(prefix: str = "right_") -> List[str]:
return [
prefix + "j01",
prefix + "j11",
prefix + "j21",
prefix + "j00"]
Loading