Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervDooren committed Jul 25, 2023
1 parent 1dc8fdc commit e7b5e50
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from pykdl_ros import VectorStamped
from robot_smach_states.human_interaction import Say
from robot_smach_states.navigation import NavigateToSymbolic
from robot_smach_states.util.designators import EdEntityDesignator, ArmDesignator
from robot_smach_states.util.designators import EdEntityDesignator
from smach import StateMachine, cb_interface, CBState

item_img_dict = {
Expand All @@ -32,7 +32,6 @@ def __init__(self, robot):
# noinspection PyProtectedMember
arm = robot.get_arm()._arm
picked_items = []
armdes = ArmDesignator(robot, {"required_gripper_types": [GripperTypes.GRASPING]})

def send_joint_goal(position_array, wait_for_motion_done=True):
# noinspection PyProtectedMember
Expand Down Expand Up @@ -105,17 +104,6 @@ def _carrying_pose(user_data):
self.add("ASK_USER", CBState(_ask_user),
transitions={"succeeded": "CARRYING_POSE", "failed": "failed"})

# self.add("CHECK_PICK_SUCCESSFUL",
# ActiveGraspDetector(robot, armdes),
# transitions={'true': "CARRYING_POSE",
# 'false': "SAY_SOMETHING_WENT_WRONG",
# 'failed': "failed",
# 'cannot_determine': "SAY_SOMETHING_WENT_WRONG"}
# )

# self.add("SAY_SOMETHING_WENT_WRONG", Say(robot, "Oops, it seems I missed it. Lets try again"),
# transitions={"spoken": "ASK_USER2"})
# self.add("ASK_USER2", CBState(_ask_user), transitions={"succeeded": "CARRYING_POSE", "failed": "failed"})
self.add("CARRYING_POSE", CBState(_carrying_pose), transitions={"done": "succeeded"})


Expand Down

0 comments on commit e7b5e50

Please sign in to comment.