The class modelling the marXbot robot. More...

Public Member Functions | |
MarXbot (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
virtual | ~MarXbot () |
Destructor. | |
virtual bool | isKinematic () const |
Returns true if the robot is in kinematic mode. | |
virtual real | orientation (const Box2DWrapper *plane) const |
Returns the orientation of the robot. | |
virtual wVector | position () const |
Returns the position of the robot. | |
virtual QColor | robotColor () const |
Returns the color of the robot. | |
virtual real | robotHeight () const |
Returns the height of the robot. | |
virtual real | robotRadius () const |
Returns the radius 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 |
![]() | |
PhyMarXbot (World *world, QString name, const wMatrix &tm=wMatrix::identity()) | |
PhyObject * | attachmentDevice () |
MarXbotAttachmentDeviceMotorController * | attachmentDeviceController () |
bool | attachmentDeviceEnabled () const |
PhyHinge * | attachmentDeviceJoint () |
PhyObject * | base () |
QColor | color () const |
void | doKinematicSimulation (bool k) |
void | drawLocalAxes (bool d) |
void | enableAttachmentDevice (bool enable) |
bool | getDrawFrontMarker () const |
SimulatedIRGroundSensorController * | groundAroundIRSensorController () |
SimulatedIRGroundSensorController * | groundBottomIRSensorController () |
bool | isInvisible () const |
const QString & | label () const |
const QColor & | labelColor () const |
const wVector & | labelPosition () const |
bool | labelShown () const |
QList< QColor > | ledColors () const |
bool | localAxesDrawn () const |
const wMatrix & | matrix () const |
QString | name () const |
Ownable () | |
const QList< Owned > & | owned () const |
Ownable * | owner () const |
virtual void | postUpdate () |
virtual void | preUpdate () |
SimulatedIRProximitySensorController * | proximityIRSensorController () |
void | resetAttachmentDevice () |
const QList < PhyCylinder::SegmentColor > & | segmentsColor () const |
void | setAlpha (int alpha) |
void | setColor (QColor c) |
void | setDrawFrontMarker (bool drawMarker) |
void | setGroundAroundIRSensorsGraphicalProperties (bool drawSensor, bool drawRay=false, bool drawRealRay=false) |
void | setGroundBottomIRSensorsGraphicalProperties (bool drawSensor, bool drawRay=false, bool drawRealRay=false) |
void | setInvisible (bool b) |
void | setLabel (QString label) |
void | setLabel (QString label, wVector pos, QColor color) |
void | setLabel (QString label, wVector pos) |
void | setLabelColor (const QColor &color) |
void | setLabelPosition (const wVector &pos) |
void | setLedColors (QList< QColor > c) |
void | setMatrix (const wMatrix &newm) |
void | setOwner (Ownable *owner, bool destroy=true) |
void | setPosition (real x, real y, real z) |
void | setPosition (const wVector &newpos) |
void | setProximityIRSensorsGraphicalProperties (bool drawSensor, bool drawRay=false, bool drawRealRay=false) |
void | setTexture (QString textureName) |
void | setUseColorTextureOfOwner (bool b) |
void | showLabel (bool show) |
QString | texture () const |
TractionSensorController * | tractionSensorController () |
PhyObject * | turret () |
bool | useColorTextureOfOwner () const |
WheelMotorController * | wheelsController () |
WObject (World *world, QString name="unamed", const wMatrix &tm=wMatrix::identity(), bool addToWorld=true) | |
World * | world () |
const World * | world () const |
Static Public Member Functions | |
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 | attachdevm |
static const real | attachdevr |
static const real | attachdevx |
static const real | attachdevy |
static const real | attachdevz |
static const real | axledistance |
static const real | basem |
static const real | basex |
static const real | basey |
static const real | basez |
static const real | bodyh |
static const real | bodym |
static const real | bodyr |
static const real | trackheight |
static const real | trackm |
static const real | trackradius |
static const real | treaddepth |
static const real | turreth |
static const real | turretm |
static const real | wheelh |
static const real | wheelm |
static const real | wheelr |
![]() | |
void | setLeftWheelDesideredVelocity (real velocity) |
void | setRightWheelDesideredVelocity (real velocity) |
![]() | |
const QColor & | configuredRobotColor () const |
Returns the robot color specified by the configuration parameter. | |
![]() | |
virtual void | changedMatrix () |
![]() | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
static void | setGraphicalEditor (QString type) |
![]() | |
QColor | colorv |
bool | invisible |
QColor | labelcol |
bool | labeldrawn |
wVector | labelpos |
QString | labelv |
bool | localFrameOfReferenceDrawn |
QString | namev |
QString | texturev |
wMatrix | tm |
bool | usecolortextureofowner |
World * | worldv |
Detailed Description
The class modelling the marXbot robot.
This inherits from PhyMarXbot, so you can use all its methods
Constructor & Destructor Documentation
MarXbot | ( | 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 118 of file robots.cpp.
References RobotOnPlane::configuredRobotColor(), PhyMarXbot::doKinematicSimulation(), PhyMarXbot::enableAttachmentDevice(), farsa::robotConfigurationUtilities::extractRobotName(), farsa::robotConfigurationUtilities::extractRobotTranformation(), farsa::robotConfigurationUtilities::extractWorld(), ConfigurationHelper::getBool(), ConfigurationHelper::getString(), ConfigurationParameters::getValue(), PhyMarXbot::groundAroundIRSensorController(), PhyMarXbot::groundBottomIRSensorController(), PhyMarXbot::ledColors(), PhyMarXbot::proximityIRSensorController(), PhyMarXbot::setColor(), SimulatedIRProximitySensorController::setEnabled(), SimulatedIRGroundSensorController::setEnabled(), WheelMotorController::setEnabled(), PhyMarXbot::setGroundAroundIRSensorsGraphicalProperties(), PhyMarXbot::setGroundBottomIRSensorsGraphicalProperties(), PhyMarXbot::setLedColors(), PhyMarXbot::setProximityIRSensorsGraphicalProperties(), ConfigurationHelper::throwUserConfigError(), and PhyMarXbot::wheelsController().
|
virtual |
Destructor.
Definition at line 206 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
Reimplemented from RobotOnPlane.
Definition at line 172 of file robots.cpp.
References ParameterSettableInConstructor::addTypeDescription(), ParameterSettable::BoolDescriptor::def(), ParameterSettable::StringDescriptor::def(), ParameterSettable::Descriptor::describeBool(), ParameterSettable::Descriptor::describeString(), ParameterSettable::StringDescriptor::help(), and ParameterSettable::BoolDescriptor::help().
|
virtual |
Returns true if the robot is in kinematic mode.
- Returns
- true if the robot is in kinematic mode
Reimplemented from PhyMarXbot.
Definition at line 247 of file robots.cpp.
|
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 231 of file robots.cpp.
References PhyBox::matrix(), PhyMarXbot::matrix(), and Box2DWrapper::phyObject().
|
virtual |
Returns the position of the robot.
- Returns
- the position of the robot
Implements RobotOnPlane.
Definition at line 216 of file robots.cpp.
References PhyMarXbot::matrix(), and wMatrix::w_pos.
|
virtual |
Returns the color of the robot.
- Returns
- the color of the robot
Implements RobotOnPlane.
Definition at line 252 of file robots.cpp.
References PhyMarXbot::color().
|
virtual |
Returns the height of the robot.
This is the height of the cylinder containing the robot. In some cases wheeled robots are modelled as cylinders to simplify calculations
- Returns
- the height of the robot
Implements RobotOnPlane.
Definition at line 237 of file robots.cpp.
References PhyMarXbot::basez, and PhyMarXbot::bodyh.
|
virtual |
Returns the radius of the robot.
This is the radius of the cylinder containing the robot. In some cases wheeled robots are modelled as cylinders to simplify calculations
- Returns
- the radius of the robot
Implements RobotOnPlane.
Definition at line 242 of file robots.cpp.
References PhyMarXbot::bodyr.
|
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 167 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 221 of file robots.cpp.
References PhyMarXbot::matrix(), and PhyMarXbot::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 210 of file robots.cpp.
The documentation for this class was generated from the following files:
- experiments/include/robots.h
- experiments/src/robots.cpp