#include <Spherus.h>
Inheritance diagram for Spherus:
Definition at line 22 of file Spherus.h.
|
Definition at line 19 of file Spherus.cpp. References circles, computeMemberPositions(), computeSinCos(), extensionActivation, eyes, M_PI, nTactileSensors, nVisionSensors, rocketActivations, rocketForceValues, Vector2::setXY(), and targetExtension. |
|
Definition at line 46 of file Spherus.cpp. |
|
Definition at line 133 of file Spherus.cpp. References PhysicalObject::m, M_PI, real, PhysicalObject::v, Vector2::x, and Vector2::y. Referenced by controll(). |
|
Computes the derivatives, given the contact forces. The globalContacts pointer is needed for contact processing for articulated agents. Reimplemented from PhysicalObject. Definition at line 201 of file Spherus.cpp. References circles, and PhysicalObject::computeDerivatives(). |
|
Computes the derivatives (velocity, angular velocity) of the object, ignoring any eventual contact forces. Reimplemented from PhysicalObject. Definition at line 147 of file Spherus.cpp. References circles, PhysicalObject::computeDerivativesWithoutContacts(), cosAlpha, elasticK, extension, PhysicalObject::externalForce, real, rocketForces, rocketForceValues, Vector2::setXY(), and sinAlpha. |
|
Definition at line 71 of file Spherus.cpp. References circles, cosAlpha, extension, PhysicalObject::r, Vector2::setXY(), sinAlpha, Vector2::x, and Vector2::y. Referenced by Spherus(). |
|
Definition at line 66 of file Spherus.cpp. References cosAlpha, and sinAlpha. Referenced by computeState(), and Spherus(). |
|
Computes alpha and extension as a function of the positions of the two eyes, calls computeSinCos. Definition at line 54 of file Spherus.cpp. References circles, computeSinCos(), extension, PhysicalObject::r, real, sqr(), Vector2::x, and Vector2::y. Referenced by integrate(). |
|
Transmits perceptual information to the controller and gets motor information from it. To be overridden by agents or other objects with self-generated movement. Reimplemented from PhysicalObject. Definition at line 76 of file Spherus.cpp. References Controller::advanceTime(), circles, computeCircleProprioception(), controller, extension, extensionActivation, eyes, Controller::getOutput(), maxExtension, rocketActivations, rocketForceValues, Controller::setInput(), and targetExtension. |
|
Delete the contacts of the object. Reimplemented from PhysicalObject. Definition at line 186 of file Spherus.cpp. References circles, PhysicalObject::deleteContacts(), and eyes. |
|
Contact handling. Implements PhysicalObject. Definition at line 173 of file Spherus.cpp. References circles, VisualSensor::detectContacts(), Circle::detectContacts(), and eyes. |
|
Detects internal contacts. Does nothing for primitive objects or composed objects. To be overriden by complex objects that have parts that move relative to each other, such as articulated objects. Reimplemented from PhysicalObject. Definition at line 182 of file Spherus.cpp. References circles, and Circle::detectContacts(). |
|
Detects whether a click of the mouse at rMouse has touched the object. In case of contact, returns true and sets p to the relative vector between the center of the object and the contact point; p is expressed in the object reference frame because it rotates with the object while the object is dragged. The object needs to be set by the function because, for articulated objects, the dragged object is an articulation and not the whole articulated object. To be overriden by the various object primitives. Reimplemented from PhysicalObject. Definition at line 193 of file Spherus.cpp. References circles, and Circle::detectMouseContact(). |
|
Draw the object to the graphical user interface. Implements GraphicalObject. Definition at line 219 of file Spherus.cpp. References circles, Circle::draw(), VisualSensor::draw(), GUI::drawForce(), GUI::drawLine(), eyes, PhysicalObject::r, rocketForces, GUI::setBrushColor(), GUI::setPenColor(), Vector2::x, and Vector2::y. |
|
Advances the time to the next timestep. Reimplemented from PhysicalObject. Definition at line 208 of file Spherus.cpp. References PhysicalObject::alpha, circles, computeState(), and PhysicalObject::integrate(). |
|
The circles composing the agent Definition at line 35 of file Spherus.h. Referenced by computeDerivatives(), computeDerivativesWithoutContacts(), computeMemberPositions(), computeState(), controll(), deleteContacts(), detectContacts(), detectInternalContacts(), detectMouseContact(), draw(), integrate(), Spherus(), and ~Spherus(). |
|
Definition at line 75 of file Spherus.h. Referenced by controll(). |
|
Definition at line 51 of file Spherus.h. Referenced by computeDerivativesWithoutContacts(), computeMemberPositions(), and computeSinCos(). |
|
The distance between the circles. Definition at line 32 of file Spherus.h. Referenced by computeDerivativesWithoutContacts(), computeMemberPositions(), computeState(), and controll(). |
|
Definition at line 42 of file Spherus.h. Referenced by controll(), and Spherus(). |
|
Definition at line 37 of file Spherus.h. Referenced by controll(), deleteContacts(), detectContacts(), draw(), Spherus(), and ~Spherus(). |
|
Definition at line 17 of file Spherus.cpp. |
|
The number of unit sensors (pixels) in the tactile sensor. Reimplemented from PhysicalObject. Definition at line 16 of file Spherus.cpp. |
|
The radius of the circles composing the agent |
|
Definition at line 39 of file Spherus.h. Referenced by controll(), and Spherus(). |
|
Definition at line 41 of file Spherus.h. Referenced by computeDerivativesWithoutContacts(), and draw(). |
|
Definition at line 40 of file Spherus.h. Referenced by computeDerivativesWithoutContacts(), controll(), and Spherus(). |
|
Definition at line 51 of file Spherus.h. Referenced by computeDerivativesWithoutContacts(), computeMemberPositions(), and computeSinCos(). |
|
The target distance between the circles Definition at line 45 of file Spherus.h. Referenced by controll(), and Spherus(). |
Thyrix homepage Users' guide
(C) Arxia 2004-2005