phykhepera.cpp
78 // The front of the robot is towards -Y (positive speeds of the wheel make the robot move towards -Y)
87 // frame of reference of the body (which is equal to that of the whole robot) on the ground to have
88 // move stability and to simplify moving the robot (no need to apply displacements to put it on a
102 // Creating all the wheels. We first create the two motorized wheels and then the two passive ones.
134 PhyJoint* joint = new PhySuspension(wVector::Z(), m_body->matrix().untransformVector(wheel->matrix().w_pos), wVector::X(), m_body, wheel);
156 PhyJoint* joint = new PhySuspension(wVector::Z(), m_body->matrix().untransformVector(wheel->matrix().w_pos), wVector::X(), m_body, wheel);
178 PhyJoint* joint = new PhyBallAndSocket(m_body->matrix().untransformVector(wheel->matrix().w_pos), m_body, wheel);
199 PhyJoint* joint = new PhyBallAndSocket(m_body->matrix().untransformVector(wheel->matrix().w_pos), m_body, wheel);
210 // The min and max speed in rad/s have been derived for the e-puck wheel considering as maximum linear
211 // displacement 14 cm/s (that for the give wheel radius is approximately 1.1 ratations per second)
216 m_wheelsCtrl->setSpeedLimits(-maxAngularSpeed, -maxAngularSpeed, maxAngularSpeed, maxAngularSpeed);
219 connect(m_wheelJoints[0]->dofs()[0], SIGNAL(changedDesiredVelocity(real)), this, SLOT(setRightWheelDesideredVelocity(real)));
220 connect(m_wheelJoints[1]->dofs()[0], SIGNAL(changedDesiredVelocity(real)), this, SLOT(setLeftWheelDesideredVelocity(real)));
268 wheeledRobotsComputeKinematicMovement(mtr, m_leftWheelVelocity, m_rightWheelVelocity, wheelr, axletrack, world()->timeStep());
282 // Updating the transformation matrix of the robot. It is coincident with the matrix of the body
286 void PhyKhepera::setProximityIRSensorsGraphicalProperties(bool drawSensor, bool drawRay, bool drawRealRay)