Skip to content

Machine Vision: Gripper behavior inconsistent with guidance documentation #3567

@Chenrun-DONG

Description

@Chenrun-DONG

Hi contributors,
While working on the Machine Vision (MV) exercise, I discovered an inconsistency regarding the GripperSet() function with guidance document.

The guidance document for GripperSet states:

"— 100 = fully open, 0 = fully closed."

However, the actual behavior in the Gazebo simulation is the exact opposite:

Setting it to 0 causes the gripper to open,Setting it to 100 causes the gripper to close.

Within the HAL.py implementation, there is a clear contradiction between the function's header and its body:

def GripperSet(relative_closure, wait_time):
    """Set gripper closure percentage (100% full open, 0% full closed)""" # 
    # ...
    if EXECUTION["Success"] == True:
        if relative_closure == 0:   <-- Detach happens when relative_closure == 0
            detach()  # Automatic object dettach from gripper when full open (0%) # 

To Reproduce

import HAL
# Expected: Open. Reality: Closes.
HAL.GripperSet(100, 2.0) 

# Expected: Close. Reality: Opens and triggers detach().
HAL.GripperSet(0, 2.0)

Screenshots
Guidance document states:
Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions