The class modelling the e-puck robot. More...

Public Member Functions | |
Epuck (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
virtual | ~Epuck () |
Destructor. | |
virtual real | orientation (const Box2DWrapper *plane) const |
Returns the orientation of the robot. | |
virtual wVector | position () const |
Returns the position of the robot. | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Saves the actual status of parameters into the ConfigurationParameters object passed. | |
virtual void | setOrientation (const Box2DWrapper *plane, real angle) |
Sets the orientation of the robot. | |
virtual void | setPosition (const Box2DWrapper *plane, real x, real y) |
Sets the position of the robot in the plane. | |
![]() | |
RobotOnPlane (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
virtual | ~RobotOnPlane () |
Destructor. | |
void | setPosition (const Box2DWrapper *plane, const wVector &pos) |
Sets the position of the robot in the plane. | |
![]() | |
Robot (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
virtual | ~Robot () |
Destructor. | |
![]() | |
ParameterSettableInConstructor (ConfigurationParameters &, QString) | |
void | addObserver (RuntimeParameterObserver *obs) |
T | getRuntimeParameter (QString paramName) |
virtual ParameterSettableUI * | getUIManager () |
ParameterSettable () | |
virtual void | postConfigureInitialization () |
void | removeObserver (RuntimeParameterObserver *obs) |
void | setRuntimeParameter (QString paramName, T newvalue) |
QString | typeName () const |
![]() | |
void | addObserver (RuntimeParameterObserver *obs) |
T | getRuntimeParameter (QString paramName) |
void | removeObserver (RuntimeParameterObserver *obs) |
void | setRuntimeParameter (QString paramName, T newvalue) |
QString | typeName () const |
![]() | |
PhyEpuck (World *world, QString name, const wMatrix &transformation=wMatrix::identity()) | |
QColor | color () const |
void | doKinematicSimulation (bool k) |
IRSensorController * | groundIRSensorController () |
bool | isInvisible () |
bool | isKinematic () const |
const wMatrix & | matrix () const |
QString | name () const |
Ownable () | |
const QList< Owned > & | owned () const |
Ownable * | owner () const |
virtual void | postUpdate () |
virtual void | preUpdate () |
IRSensorController * | proximityIRSensorController () |
void | setAlpha (int alpha) |
void | setColor (QColor c) |
void | setGroundIRSensorsGraphicalProperties (bool drawSensor, bool drawRay=false, bool drawRealRay=false) |
void | setInvisible (bool b) |
void | setMatrix (const wMatrix &newm) |
void | setOwner (Ownable *owner, bool destroy=true) |
void | setPosition (const wVector &newpos) |
void | setPosition (real x, real y, real z) |
void | setProximityIRSensorsGraphicalProperties (bool drawSensor, bool drawRay=false, bool drawRealRay=false) |
void | setTexture (QString textureName) |
void | setUseColorTextureOfOwner (bool b) |
QString | texture () const |
bool | useColorTextureOfOwner () const |
WheelMotorController * | wheelsController () |
WObject (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity(), bool addToWorld=true) | |
const World * | world () const |
World * | world () |
![]() | |
WObject (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity(), bool addToWorld=true) | |
QColor | color () const |
bool | isInvisible () |
const wMatrix & | matrix () const |
QString | name () const |
Ownable () | |
const QList< Owned > & | owned () const |
Ownable * | owner () const |
void | setAlpha (int alpha) |
void | setColor (QColor c) |
void | setInvisible (bool b) |
void | setMatrix (const wMatrix &newm) |
void | setOwner (Ownable *owner, bool destroy=true) |
void | setPosition (const wVector &newpos) |
void | setPosition (real x, real y, real z) |
void | setTexture (QString textureName) |
void | setUseColorTextureOfOwner (bool b) |
QString | texture () const |
bool | useColorTextureOfOwner () const |
World * | world () |
const World * | world () const |
![]() | |
const QList< Owned > & | owned () const |
Ownable * | owner () const |
void | setOwner (Ownable *owner, bool destroy=true) |
Static Public Member Functions | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. | |
![]() | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. | |
Additional Inherited Members | |
![]() | |
enum | Property |
![]() | |
typedef QList< Owned > | OwnedList |
![]() | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
![]() | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
![]() | |
static const real | axletrack |
static const real | batterym |
static const real | batteryplacedistancefromground |
static const real | batteryplacex |
static const real | batteryplacey |
static const real | batteryplacez |
static const real | bodyh |
static const real | bodyr |
static const real | passivewheelm |
static const real | passivewheelr |
static const real | wheelh |
static const real | wheelm |
static const real | wheelr |
static const real | wholebodym |
![]() | |
void | setLeftWheelDesideredVelocity (real velocity) |
void | setRightWheelDesideredVelocity (real velocity) |
![]() | |
virtual void | changedMatrix () |
![]() | |
static real | angleBetweenXAxes (const wMatrix &mtr1, const wMatrix &mtr2) |
Returns the angle between the two x axis of the two given matrices projected on the XY plane of the first matrix. | |
static void | orientationOnPlane (const Box2DWrapper *plane, real angle, wMatrix &mtr) |
Returns a transformation matrix with the given orientation on the plane. | |
static wVector | positionOnPlane (const Box2DWrapper *plane, real x, real y) |
Returns the 3D position on the plane given a 2D position. | |
![]() | |
QColor | colorv |
bool | invisible |
QString | namev |
QString | texturev |
wMatrix | tm |
bool | usecolortextureofowner |
World * | worldv |
Detailed Description
The class modelling the e-puck robot.
This inherits from PhyEpuck, so you can use all its methods
Constructor & Destructor Documentation
Epuck | ( | ConfigurationParameters & | params, |
QString | prefix | ||
) |
Constructor.
- Parameters
-
params the configuration parameters object with parameters to use prefix the prefix to use to access the object configuration parameters. This is guaranteed to end with the separator character when called by the factory, so you don't need to add one
Definition at line 603 of file robots.cpp.
References PhyEpuck::doKinematicSimulation(), ConfigurationHelper::getBool(), PhyEpuck::groundIRSensorController(), PhyEpuck::proximityIRSensorController(), WheelMotorController::setEnabled(), IRSensorController::setEnabled(), PhyEpuck::setGroundIRSensorsGraphicalProperties(), PhyEpuck::setProximityIRSensorsGraphicalProperties(), and PhyEpuck::wheelsController().
|
virtual |
Destructor.
Definition at line 656 of file robots.cpp.
Member Function Documentation
|
static |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
- Parameters
-
type is the name of the type regarding the description. The type is used when a subclass reuse the description of its parent calling the parent describe method passing the type of the subclass. In this way, the result of the method describe of the parent will be the addition of the description of the parameters of the parent class into the type of the subclass
Definition at line 629 of file robots.cpp.
References ParameterSettableInConstructor::addTypeDescription(), ParameterSettable::BoolDescriptor::def(), ParameterSettable::StringDescriptor::def(), RobotOnPlane::describe(), ParameterSettable::Descriptor::describeBool(), ParameterSettable::Descriptor::describeString(), ParameterSettable::BoolDescriptor::help(), and ParameterSettable::StringDescriptor::help().
|
virtual |
Returns the orientation of the robot.
This returns the angle around the z axis of the "plane". An angle of 0 means that the X axis of the plane and of the robot are coincident (positive angles follow the right-hand rule). This function returns the angle in radiants
- Parameters
-
plane the plane on which the robot is placed. You can use the plane returned by Arena::getPlane(), here.
Implements RobotOnPlane.
Definition at line 681 of file robots.cpp.
References RobotOnPlane::angleBetweenXAxes(), PhyEpuck::matrix(), PhyBox::matrix(), and Box2DWrapper::phyObject().
|
virtual |
Returns the position of the robot.
- Returns
- the position of the robot
Implements RobotOnPlane.
Definition at line 666 of file robots.cpp.
References PhyEpuck::matrix(), and wMatrix::w_pos.
|
virtual |
Saves the actual status of parameters into the ConfigurationParameters object passed.
This is not implemented, calling this causes an abort
- Parameters
-
params the configuration parameters object on which save actual parameters prefix the prefix to use to access the object configuration parameters.
Reimplemented from RobotOnPlane.
Definition at line 624 of file robots.cpp.
References Logger::error().
|
virtual |
Sets the orientation of the robot.
This modifies the angle around the z axis of the "plane". An angle of 0 means that the X axis of the plane and of the robot are coincident (positive angles follow the right-hand rule). This function wants the angle in radiants
- Parameters
-
plane the plane on which the robot is placed. You can use the plane returned by Arena::getPlane(), here. angle the new orientation in radiants
Implements RobotOnPlane.
Definition at line 671 of file robots.cpp.
References PhyEpuck::matrix(), RobotOnPlane::orientationOnPlane(), and PhyEpuck::setMatrix().
|
virtual |
Sets the position of the robot in the plane.
The robot is placed on the face of the "plane" parallel to the local XY plane and with positive z coordinate.
- Parameters
-
plane the plane on which the robot should be placed. You can use the plane returned by Arena::getPlane(), here. x the new x coordinate y the new y coordinate
Implements RobotOnPlane.
Definition at line 660 of file robots.cpp.
References RobotOnPlane::positionOnPlane(), and PhyEpuck::setPosition().
The documentation for this class was generated from the following files:
- experiments/include/robots.h
- experiments/src/robots.cpp