void CViewPort::update() { mPosition = mNewPosition; fixPosition(); processShake(); updateLeftTop(); }
void HeadGestures::jointCallback (const sensor_msgs::JointState& state) { currPanAngle_ = state.position.at(0); currTiltAngle_ = state.position.at(1); if (gesture_ == SHAKE) processShake(); else if (gesture_ == NOD) processNod(); }