kheperamotors.cpp
36 m_kheperaResource = actualResourceNameForMultirobot(ConfigurationHelper::getString(params, prefix + "khepera", m_kheperaResource));
37 m_neuronsIteratorResource = actualResourceNameForMultirobot(ConfigurationHelper::getString(params, prefix + "neuronsIterator", m_neuronsIteratorResource));
66 d.describeString("khepera").def("robot").help("The name of the resource associated with the Khepera robot to use (default is \"robot\")");
67 d.describeString("neuronsIterator").def("neuronsIterator").help("The name of the resource associated with the neural network iterator (default is \"neuronsIterator\")");
83 KheperaWheelVelocityMotor::KheperaWheelVelocityMotor(ConfigurationParameters& params, QString prefix) :
110 Descriptor d = addTypeDescription(type, "The motor controlling the velocity of the wheels of the khepera robot");
128 // Computing desired wheel velocities. When appying noise we don't check boundaries, so robots could go a bit faster than their maximum speed
130 const double v1 = (maxSpeed1 - minSpeed1) * applyNoise(m_neuronsIterator->getOutput(), 0.0, -1.0) + minSpeed1;
132 const double v2 = (maxSpeed2 - minSpeed2) * applyNoise(m_neuronsIterator->getOutput(), 0.0, -1.0) + minSpeed2;