push_primitives.py
Go to the documentation of this file.
00001 # To add a new controller:
00002 #     need to put in correct switch in tracker_feedback_push() in positon_feedback_push_node.py
00003 #     need to add admissable primitives to BEHAVIOR_PRIMITIVES
00004 #     need to add admissable proxies to PERCEPTUAL_PROXIES
00005 # To add a new primitive:
00006 #     need to put in perform_push() in tabletop_executive.py
00007 #     need to add which controllers can use it in BEHAVIOR_PRIMITIVES (maybe add to  another PUSH_PRIMITIVES, TOOL_PRIMITIVES, etc.)
00008 #     need to add a precondiiton method for it in PRECONDITION_METHODS
00009 # To add a new proxy: TODO: Check this by adding a new proxy
00010 #     need to put in computeState() in tabletop_pushing_perception_node.cpp
00011 #     need to add which controllers can use it in PERCEPTUAL_PROXIES (maybe add to  another CENTROID_PROXIES, POSE_PROXIES, etc.)
00012 #     need to add a string constant for the name in tabletop_pushing_perception_node.cpp
00013 
00014 ROBOT_ARMS = ['r', 'l']
00015 # ROBOT_ARMS = ['r']
00016 # ROBOT_ARMS = ['l']
00017 ROBOT_ARMS = [None]
00018 CENTROID_CONTROLLER ='centroid_controller'
00019 SPIN_COMPENSATION = 'spin_compensation'
00020 ROTATE_TO_HEADING = 'rotate_to_heading'
00021 STRAIGHT_LINE_CONTROLLER = 'straight_line_controller'
00022 DIRECT_GOAL_CONTROLLER = 'direct_goal_controller'
00023 DIRECT_GOAL_GRIPPER_CONTROLLER = 'direct_goal_gripper_controller'
00024 #CONTROLLERS = [CENTROID_CONTROLLER, SPIN_COMPENSATION, DIRECT_GOAL_CONTROLLER]
00025 RBF_CONTROLLER_PREFIX = 'RBF_'
00026 AFFINE_CONTROLLER_PREFIX = 'AFFINE_'
00027 RBF = 'RBF_push_learn_mgp_35251.84'
00028 CONTROLLERS = [CENTROID_CONTROLLER]
00029 # CONTROLLERS = [ROTATE_TO_HEADING]
00030 # CONTROLLERS = [SPIN_COMPENSATION]
00031 # CONTROLLERS = [DIRECT_GOAL_CONTROLLER]
00032 # CONTROLLERS = [STRAIGHT_LINE_CONTROLLER]
00033 
00034 # CONTROLLERS = [RBF]
00035 GRIPPER_PUSH = 'gripper_push'
00036 GRIPPER_SWEEP = 'gripper_sweep'
00037 OVERHEAD_PUSH = 'overhead_push'
00038 OPEN_OVERHEAD_PUSH = 'open_overhead_push'
00039 PINCHER_PUSH = 'pincher_push'
00040 GRIPPER_PULL = 'gripper_pull'
00041 PUSH_PRIMITIVES = [OVERHEAD_PUSH, GRIPPER_PUSH, GRIPPER_SWEEP, OPEN_OVERHEAD_PUSH, PINCHER_PUSH]
00042 ROTATE_PRIMITIVES = [OVERHEAD_PUSH]
00043 PUSH_PRIMITIVES = [GRIPPER_PUSH]
00044 BEHAVIOR_PRIMITIVES = {CENTROID_CONTROLLER:PUSH_PRIMITIVES, SPIN_COMPENSATION:PUSH_PRIMITIVES,
00045                        STRAIGHT_LINE_CONTROLLER:PUSH_PRIMITIVES,
00046                        DIRECT_GOAL_CONTROLLER:[GRIPPER_PULL],
00047                        DIRECT_GOAL_GRIPPER_CONTROLLER:[GRIPPER_PULL],
00048                        RBF:PUSH_PRIMITIVES,
00049                        ROTATE_TO_HEADING:ROTATE_PRIMITIVES}
00050 
00051 ELLIPSE_PROXY = 'ellipse'
00052 HULL_ELLIPSE_PROXY = "hull_ellipse"
00053 HULL_ICP_PROXY = "hull_icp"
00054 HULL_SHAPE_CONTEXT_PROXY = "hull_shape_context"
00055 CENTROID_PROXY = 'centroid'
00056 SPHERE_PROXY = 'sphere'
00057 CYLINDER_PROXY = 'cylinder'
00058 BOUNDING_BOX_XY_PROXY = 'bounding_box_xy'
00059 
00060 CENTROID_PROXIES = [CENTROID_PROXY, SPHERE_PROXY, BOUNDING_BOX_XY_PROXY, HULL_ELLIPSE_PROXY]
00061 CENTROID_PROXIES = [HULL_ICP_PROXY]
00062 POSE_PROXIES = [ELLIPSE_PROXY, HULL_ELLIPSE_PROXY, BOUNDING_BOX_XY_PROXY]
00063 POSE_PROXIES = [HULL_ICP_PROXY]
00064 
00065 PERCEPTUAL_PROXIES = {CENTROID_CONTROLLER:CENTROID_PROXIES,
00066                       SPIN_COMPENSATION:POSE_PROXIES,
00067                       STRAIGHT_LINE_CONTROLLER:CENTROID_PROXIES,
00068                       DIRECT_GOAL_CONTROLLER:CENTROID_PROXIES,
00069                       DIRECT_GOAL_GRIPPER_CONTROLLER:CENTROID_PROXIES,
00070                       ROTATE_TO_HEADING:POSE_PROXIES,
00071                       RBF:POSE_PROXIES}
00072 
00073 CENTROID_PUSH_PRECONDITION = 'centroid_push'
00074 CENTROID_PULL_PRECONDITION = 'centroid_pull'
00075 
00076 PRECONDITION_METHODS = {GRIPPER_PULL:CENTROID_PULL_PRECONDITION,
00077                         OVERHEAD_PUSH:CENTROID_PUSH_PRECONDITION,
00078                         OPEN_OVERHEAD_PUSH:CENTROID_PUSH_PRECONDITION,
00079                         GRIPPER_PUSH:CENTROID_PUSH_PRECONDITION,
00080                         GRIPPER_SWEEP:CENTROID_PUSH_PRECONDITION,
00081                         PINCHER_PUSH:CENTROID_PUSH_PRECONDITION}


tabletop_pushing
Author(s): Tucker Hermans
autogenerated on Wed Nov 27 2013 11:59:44