#include <DyWorld.h>
◆ DyWorldBase()
DyWorldBase::DyWorldBase |
( |
| ) |
|
◆ ~DyWorldBase()
DyWorldBase::~DyWorldBase |
( |
| ) |
|
|
virtual |
◆ addBody()
int DyWorldBase::addBody |
( |
DyBody * |
body | ) |
|
This function adds a body to the world.
- Returns
- Index of the body in the world
- Note
- This must be called before initialize() is called.
◆ addExtraJoint()
void cnoid::DyWorldBase::addExtraJoint |
( |
ExtraJoint & |
extraJoint | ) |
|
|
inline |
◆ bodies()
const std::vector<DyBodyPtr>& cnoid::DyWorldBase::bodies |
( |
| ) |
|
|
inline |
◆ body() [1/2]
DyBody * DyWorldBase::body |
( |
const std::string & |
name | ) |
const |
◆ body() [2/2]
DyBody* cnoid::DyWorldBase::body |
( |
int |
index | ) |
|
|
inline |
◆ calcNextState()
void DyWorldBase::calcNextState |
( |
| ) |
|
|
virtual |
◆ clearBodies()
void DyWorldBase::clearBodies |
( |
| ) |
|
◆ clearCollisionPairs()
void DyWorldBase::clearCollisionPairs |
( |
| ) |
|
◆ clearExtraJoints()
void cnoid::DyWorldBase::clearExtraJoints |
( |
| ) |
|
|
inline |
◆ currentTime()
double cnoid::DyWorldBase::currentTime |
( |
void |
| ) |
const |
|
inline |
◆ enableSensors()
void DyWorldBase::enableSensors |
( |
bool |
on | ) |
|
enable/disable sensor simulation
- Parameters
-
on | true to enable, false to disable |
- Note
- This must be called before initialize() is called.
◆ extraJoints()
std::vector<ExtraJoint>& cnoid::DyWorldBase::extraJoints |
( |
| ) |
|
|
inline |
◆ getIndexOfLinkPairs()
std::pair< int, bool > DyWorldBase::getIndexOfLinkPairs |
( |
DyLink * |
link1, |
|
|
DyLink * |
link2 |
|
) |
| |
get index of link pairs
- Parameters
-
- Returns
- pair of index and flag. The flag is true if the pair was already registered, false othewise.
◆ gravityAcceleration()
const Vector3& cnoid::DyWorldBase::gravityAcceleration |
( |
| ) |
const |
|
inline |
◆ hasHighGainDynamics()
bool cnoid::DyWorldBase::hasHighGainDynamics |
( |
| ) |
const |
|
inline |
◆ initialize()
void DyWorldBase::initialize |
( |
| ) |
|
|
virtual |
◆ numBodies()
int cnoid::DyWorldBase::numBodies |
( |
| ) |
const |
|
inline |
◆ numSubBodies()
int cnoid::DyWorldBase::numSubBodies |
( |
| ) |
const |
|
inline |
This function returns the number of bodies used in the internal calculation in this world.
- Note
- The body that has non-root free-joints are decomposed into internal sub bodies
◆ refreshState()
void DyWorldBase::refreshState |
( |
| ) |
|
◆ setCurrentTime()
void DyWorldBase::setCurrentTime |
( |
double |
tm | ) |
|
◆ setEulerMethod()
void DyWorldBase::setEulerMethod |
( |
| ) |
|
Use the euler method for integration.
◆ setGravityAcceleration()
void DyWorldBase::setGravityAcceleration |
( |
const Vector3 & |
g | ) |
|
- Parameters
-
g | gravity acceleration[m/s^2] |
◆ setOldAccelSensorCalcMode()
void DyWorldBase::setOldAccelSensorCalcMode |
( |
bool |
on | ) |
|
◆ setRungeKuttaMethod()
void DyWorldBase::setRungeKuttaMethod |
( |
| ) |
|
Use the runge-kutta method for integration.
◆ setTimeStep()
void DyWorldBase::setTimeStep |
( |
double |
dt | ) |
|
◆ setVirtualJointForces()
void DyWorldBase::setVirtualJointForces |
( |
| ) |
|
◆ subBodies()
const std::vector<DySubBodyPtr>& cnoid::DyWorldBase::subBodies |
( |
| ) |
|
|
inline |
◆ subBody()
DySubBody* cnoid::DyWorldBase::subBody |
( |
int |
index | ) |
|
|
inline |
◆ timeStep()
double cnoid::DyWorldBase::timeStep |
( |
void |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: