Public Member Functions | |
def | __init__ (self) |
def | from_msg (cls, msg) |
def | from_yaml (self, y) |
def | set_grasp_point (self, args, kwargs) |
def | set_pre_grasp_point (self, args, kwargs) |
def | to_msg (self) |
Public Attributes | |
grasp_quality | |
joint_names | |
Private Member Functions | |
def | _set_posture_point (self, posture, positions, point=0) |
Represents a single grasp, basically a wrapper around moveit_msgs/Grasp with added functions and Shadow Hand specific knowledge.
Definition at line 23 of file __init__.py.
def sr_grasp.Grasp.__init__ | ( | self | ) |
Definition at line 29 of file __init__.py.
|
private |
Set the posture positions using a dict of joint positions.
Definition at line 88 of file __init__.py.
def sr_grasp.Grasp.from_msg | ( | cls, | |
msg | |||
) |
Construct a shadow grasp object from moveit grasp object.
Definition at line 45 of file __init__.py.
def sr_grasp.Grasp.from_yaml | ( | self, | |
y | |||
) |
Construct a shadow grasp object from YAML object. For example YAML grabbed from rostopic to a file.
Definition at line 65 of file __init__.py.
def sr_grasp.Grasp.set_grasp_point | ( | self, | |
args, | |||
kwargs | |||
) |
Set the positions for a point (default 0) in the grasp to a dict of joint positions.
Definition at line 81 of file __init__.py.
def sr_grasp.Grasp.set_pre_grasp_point | ( | self, | |
args, | |||
kwargs | |||
) |
Set the positions for a point (default 0) in the pre-grasp to a dict of joint positions.
Definition at line 74 of file __init__.py.
def sr_grasp.Grasp.to_msg | ( | self | ) |
Return plain moveit_msgs/Grasp version of self.
Definition at line 60 of file __init__.py.
sr_grasp.Grasp.grasp_quality |
Definition at line 31 of file __init__.py.
sr_grasp.Grasp.joint_names |
Definition at line 32 of file __init__.py.