Robot software: all that are compatible with RDK v0.8
OS: all supported
Describe the bug
When calling functions in flexiv::Gripper to send gripper commands while calling flexiv::Gripper::getGripperStates() in a separate thread, there's a chance a race condition happens in the communication resources and cause one of the function calls to fail.
Steps to reproduce
Run example/basics6_gripper_control.cpp OR example_py/basics6_gripper_control.py for several times.
Error can be triggered with probability.
Expected behavior
No multi-thread race condition happens.
Version information
Describe the bug When calling functions in flexiv::Gripper to send gripper commands while calling flexiv::Gripper::getGripperStates() in a separate thread, there's a chance a race condition happens in the communication resources and cause one of the function calls to fail.
Steps to reproduce
Expected behavior No multi-thread race condition happens.