Skip to content

Commit

Permalink
Remove error_message check in example that crashes program
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhansenbot authored Oct 22, 2024
1 parent 15f7ee4 commit 3240211
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions moveit_studio_py/examples/start_stop_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def done_cb(future: rclpy.task.Future) -> None:
result = future.result()
if result.error_code.val == MoveItErrorCodes.SUCCESS:
print("Objective executed successfully!")
elif result.error_message:
print(result.error_message)
else:
print(f"MoveItErrorCode Value: {result.error_code.val}")

Expand Down
2 changes: 0 additions & 2 deletions moveit_studio_py/moveit_studio_py/objective_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ def start_objective(
result = self._execute_objective_client.call(request)
if result.error_code.val == MoveItErrorCodes.SUCCESS:
return (True, "")
elif hasattr(result, "error_message"):
return (False, result.error_message)
else:
return (False, f"MoveItErrorCode Value: {result.error_code.val}")
else:
Expand Down

0 comments on commit 3240211

Please sign in to comment.