In the line , the code checks if the object_position_error is less than 0.02 to determine if the task is a success. However, if the object_position_error is not less than 0.02, the task can still be marked as a success if reset_buf is set to 1 (which might happen due to the time limit being reached).
Describe the bug
In the line , the code checks if the object_position_error is less than 0.02 to determine if the task is a success. However, if the object_position_error is not less than 0.02, the task can still be marked as a success if reset_buf is set to 1 (which might happen due to the time limit being reached).
To ensure that the task is only marked as a success when the
object_position_error
is less than 0.02, I propose changing the above line to:In this way, the success condition will solely depend on the object_position_error, which seems to be the intended behavior.
Steps to reproduce
Additional context
Checklist