You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Calling ManipulatorMoveTo service with request: x={request.target_pose.pose.position.x:.2f}, y={request.target_pose.pose.position.y:.2f}, z={request.target_pose.pose.position.z:.2f}"
returnf"Service call failed for point ({x:.2f}, {y:.2f}, {z:.2f})."
140
+
141
+
ifresponse.success:
142
+
self.connector.logger.info(f"End effector successfully positioned at coordinates ({x:.2f}, {y:.2f}, {z:.2f}).")
112
143
else:
113
-
request.initial_gripper_state=False# closed
114
-
request.final_gripper_state=True# open
144
+
self.connector.logger.error(f"Failed to position end effector at coordinates ({x:.2f}, {y:.2f}, {z:.2f}).")
145
+
return"Failed to position end effector at coordinates ({x:.2f}, {y:.2f}, {z:.2f})."
146
+
147
+
request=ManipulatorMoveTo.Request()
148
+
request.target_pose=pose_stamped1
149
+
150
+
request.initial_gripper_state=False# closed
151
+
request.final_gripper_state=True# open
152
+
115
153
116
154
future=client.call_async(request)
117
155
self.connector.node.get_logger().debug(
118
156
f"Calling ManipulatorMoveTo service with request: x={request.target_pose.pose.position.x:.2f}, y={request.target_pose.pose.position.y:.2f}, z={request.target_pose.pose.position.z:.2f}"
returnf"Centroids of detected {object_name}s in {self.target_frame} frame: [{', '.join(map(self.format_pose, mani_frame_poses))}]. Sizes of the detected objects are unknown."
225
+
226
+
classResetArmToolInput(BaseModel):
227
+
pass
228
+
229
+
classResetArmTool(BaseROS2Tool):
230
+
name: str="reset_arm"
231
+
description: str="Reset the arm to the initial position. Use when the arm is stuck or when arm obstructs the objects."
f"Calling ManipulatorMoveTo service with request: x={request.target_pose.pose.position.x:.2f}, y={request.target_pose.pose.position.y:.2f}, z={request.target_pose.pose.position.z:.2f}"
0 commit comments