42 #include <visp3/core/vpTime.h>
43 #include <visp3/robot/vpQbSoftHand.h>
47 #ifdef ENABLE_VISP_NAMESPACE
50 #if defined(VISP_HAVE_QBDEVICE) && defined(VISP_HAVE_THREADS)
51 std::cout <<
"Test qbSoftHand device" << std::endl;
59 double speed_factor = 0.5;
60 double stiffness = 0.7;
61 std::cout <<
"** Close the hand with blocking positioning function" << std::endl;
65 std::cout <<
"** Open the hand with blocking positioning function" << std::endl;
75 std::cout <<
"** Close the hand with non-blocking positioning function" << std::endl;
76 for (
int i = 1; i <= 10; i++) {
79 if (std::fabs(current[0]) > max_current / 2) {
80 std::cout <<
"Stop closure, current > " << max_current / 2 << std::endl;
88 std::cout <<
"** Open the hand with non-blocking positioning function" << std::endl;
89 for (
int i = i_max; i >= 0; i--) {
97 std::cout <<
"The end" << std::endl;
103 std::cout <<
"ViSP is not build with qbdevice 3rd party" << std::endl;
Implementation of column vector and the associated operations.
error that can be emitted by ViSP classes.
const std::string & getStringMessage() const
double getCurrentMax() const
void getCurrent(vpColVector ¤t, const int &id=1)
void setPosition(const vpColVector &position, const int &id=1)
void getPosition(vpColVector &position, const int &id=1)
VISP_EXPORT void sleepMs(double t)