Skip to content

Commit d8dc188

Browse files
(Place) Type hinting (#1320)
* (Place) Type hinting * (place) Specified designator resolve type Co-authored-by: Matthijs van der Burgh <[email protected]> * (place) Specified designator resolve type Co-authored-by: Matthijs van der Burgh <[email protected]> --------- Co-authored-by: Matthijs van der Burgh <[email protected]>
1 parent a467c91 commit d8dc188

File tree

1 file changed

+3
-3
lines changed
  • robot_smach_states/src/robot_smach_states/manipulation

1 file changed

+3
-3
lines changed

robot_smach_states/src/robot_smach_states/manipulation/place.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class Put(smach.State):
2323
REQUIRED_ARM_PROPERTIES = {"required_gripper_types": [GripperTypes.GRASPING], }
2424

25-
def __init__(self, robot: Robot, item_to_place: Entity, placement_pose: FrameStamped, arm: PublicArm) -> None:
25+
def __init__(self, robot: Robot, item_to_place: Designator[Entity], placement_pose: Designator[FrameStamped], arm: Designator[PublicArm]) -> None:
2626
"""
2727
Drive the robot back a little and move the designated arm to place the designated item at the designated pose
2828
@@ -147,8 +147,8 @@ def execute(self, userdata=None):
147147

148148
class Place(smach.StateMachine):
149149

150-
def __init__(self, robot: Robot, item_to_place: Entity, place_pose: Union[str, FrameStamped, Entity],
151-
arm: PublicArm, place_volume: Optional[str] = None) -> None:
150+
def __init__(self, robot: Robot, item_to_place: Designator[Entity], place_pose: Union[Designator[str], Designator[Entity], str], arm: Designator[PublicArm],
151+
place_volume: Optional[str] = None) -> None:
152152
"""
153153
Drive the robot to be close to the designated place_pose and move the designated arm to place the designated
154154
item there

0 commit comments

Comments
 (0)