Example #1
0
void cVideoLabel::mouseReleaseEvent(QMouseEvent *ev)
{
  this->xCoord = ev->pos().x();
  this->yCoord = ev->pos().y();
  if (ev->button() == Qt::LeftButton)
  {
    emit leftRelease();
  }
  if (ev->button() == Qt::RightButton)
  {
    QCursor::setPos(mapToGlobal(QPoint(xInitialCoord,yInitialCoord)));
    setCursor(Qt::ArrowCursor);
    emit rightRelease();
  }
}
bool BaxterArmCommander::rightArmBack() {
    ROS_INFO("Move right arm back");
    ROS_INFO("Release gripper");
    rightRelease();
    return rightMove(right_arm_back_pose);
}