Skip to content

Commit 6d37658

Browse files
committed
fix: response fix in MoveFromTo Tool
1 parent 6d44d45 commit 6d37658

File tree

1 file changed

+3
-3
lines changed
  • src/rai_core/rai/tools/ros2/manipulation

1 file changed

+3
-3
lines changed

src/rai_core/rai/tools/ros2/manipulation/custom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ def _run(
245245
response = get_future_result(future, timeout_sec=20.0)
246246

247247
if response is None:
248-
return f"Service call failed for point ({x:.2f}, {y:.2f}, {z:.2f})."
248+
return f"Service call failed for point ({x1:.2f}, {y1:.2f}, {z1:.2f})."
249249

250250
if response.success:
251-
return f"End effector successfully positioned at coordinates ({x:.2f}, {y:.2f}, {z:.2f}). Note: The status of object interaction (grab/drop) is not confirmed by this movement."
251+
return f"End effector successfully positioned at coordinates ({x1:.2f}, {y1:.2f}, {z1:.2f}). Note: The status of object interaction (grab/drop) is not confirmed by this movement."
252252
else:
253-
return f"Failed to position end effector at coordinates ({x:.2f}, {y:.2f}, {z:.2f})."
253+
return f"Failed to position end effector at coordinates ({x1:.2f}, {y1:.2f}, {z1:.2f})."
254254

255255

256256
class GetObjectPositionsToolInput(BaseModel):

0 commit comments

Comments
 (0)