Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
box_stacking_example.Stacker Class Reference
Inheritance diagram for box_stacking_example.Stacker:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def get_num_of_markers (self)
 
def initialize_arms (self)
 
def pick_up (self, check_result)
 
def place_on (self, check_result, target_x=0.3, target_y=0)
 
def place_on_highest_object (self, check_result)
 

Private Member Functions

def _close_gripper (self, current_arm)
 
def _get_highest_object_pose (self)
 
def _get_lowest_object_pose (self)
 
def _markers_callback (self, msg)
 
def _move_arm (self, current_arm, target_pose)
 
def _move_arm_to_init_pose (self, current_arm)
 
def _open_gripper (self, current_arm)
 

Private Attributes

 _current_arm
 
 _gripper_goal
 
 _left_arm
 
 _left_gripper
 
 _marker_sub
 
 _markers
 
 _right_arm
 
 _right_gripper
 

Static Private Attributes

float _GRIPPER_CLOSE = 0.42
 
float _GRIPPER_OPEN = 0.8
 
int _LEFT_ARM = 2
 
int _RIGHT_ARM = 1
 

Detailed Description

Definition at line 69 of file box_stacking_example.py.

Constructor & Destructor Documentation

◆ __init__()

def box_stacking_example.Stacker.__init__ (   self)

Definition at line 77 of file box_stacking_example.py.

Member Function Documentation

◆ _close_gripper()

def box_stacking_example.Stacker._close_gripper (   self,
  current_arm 
)
private

Definition at line 194 of file box_stacking_example.py.

◆ _get_highest_object_pose()

def box_stacking_example.Stacker._get_highest_object_pose (   self)
private

Definition at line 125 of file box_stacking_example.py.

◆ _get_lowest_object_pose()

def box_stacking_example.Stacker._get_lowest_object_pose (   self)
private

Definition at line 109 of file box_stacking_example.py.

◆ _markers_callback()

def box_stacking_example.Stacker._markers_callback (   self,
  msg 
)
private

Definition at line 103 of file box_stacking_example.py.

◆ _move_arm()

def box_stacking_example.Stacker._move_arm (   self,
  current_arm,
  target_pose 
)
private

Definition at line 145 of file box_stacking_example.py.

◆ _move_arm_to_init_pose()

def box_stacking_example.Stacker._move_arm_to_init_pose (   self,
  current_arm 
)
private

Definition at line 170 of file box_stacking_example.py.

◆ _open_gripper()

def box_stacking_example.Stacker._open_gripper (   self,
  current_arm 
)
private

Definition at line 181 of file box_stacking_example.py.

◆ get_num_of_markers()

def box_stacking_example.Stacker.get_num_of_markers (   self)

Definition at line 106 of file box_stacking_example.py.

◆ initialize_arms()

def box_stacking_example.Stacker.initialize_arms (   self)

Definition at line 205 of file box_stacking_example.py.

◆ pick_up()

def box_stacking_example.Stacker.pick_up (   self,
  check_result 
)

Definition at line 212 of file box_stacking_example.py.

◆ place_on()

def box_stacking_example.Stacker.place_on (   self,
  check_result,
  target_x = 0.3,
  target_y = 0 
)

Definition at line 299 of file box_stacking_example.py.

◆ place_on_highest_object()

def box_stacking_example.Stacker.place_on_highest_object (   self,
  check_result 
)

Definition at line 362 of file box_stacking_example.py.

Member Data Documentation

◆ _current_arm

box_stacking_example.Stacker._current_arm
private

Definition at line 100 of file box_stacking_example.py.

◆ _GRIPPER_CLOSE

float box_stacking_example.Stacker._GRIPPER_CLOSE = 0.42
staticprivate

Definition at line 75 of file box_stacking_example.py.

◆ _gripper_goal

box_stacking_example.Stacker._gripper_goal
private

Definition at line 93 of file box_stacking_example.py.

◆ _GRIPPER_OPEN

float box_stacking_example.Stacker._GRIPPER_OPEN = 0.8
staticprivate

Definition at line 74 of file box_stacking_example.py.

◆ _LEFT_ARM

int box_stacking_example.Stacker._LEFT_ARM = 2
staticprivate

Definition at line 71 of file box_stacking_example.py.

◆ _left_arm

box_stacking_example.Stacker._left_arm
private

Definition at line 88 of file box_stacking_example.py.

◆ _left_gripper

box_stacking_example.Stacker._left_gripper
private

Definition at line 90 of file box_stacking_example.py.

◆ _marker_sub

box_stacking_example.Stacker._marker_sub
private

Definition at line 80 of file box_stacking_example.py.

◆ _markers

box_stacking_example.Stacker._markers
private

Definition at line 78 of file box_stacking_example.py.

◆ _RIGHT_ARM

int box_stacking_example.Stacker._RIGHT_ARM = 1
staticprivate

Definition at line 70 of file box_stacking_example.py.

◆ _right_arm

box_stacking_example.Stacker._right_arm
private

Definition at line 83 of file box_stacking_example.py.

◆ _right_gripper

box_stacking_example.Stacker._right_gripper
private

Definition at line 85 of file box_stacking_example.py.


The documentation for this class was generated from the following file:


sciurus17_examples
Author(s): Daisuke Sato , Hiroyuki Nomura
autogenerated on Fri Aug 2 2024 08:37:20