#include <DyWorld.h>
WorldBase::~WorldBase |
( |
| ) |
|
|
virtual |
int WorldBase::addBody |
( |
DyBody * |
body | ) |
|
add body to this world
- Parameters
-
- Returns
- index of the body
- Note
- This must be called before initialize() is called.
Use this method instead of addBody(const DyBodyPtr& body) when you want to specify a forward dynamics calculater.
DyBody * WorldBase::body |
( |
int |
index | ) |
const |
get body by index
- Parameters
-
- Returns
- body
DyBody * WorldBase::body |
( |
const std::string & |
name | ) |
const |
get body by name
- Parameters
-
- Returns
- body
int WorldBase::bodyIndex |
( |
const std::string & |
name | ) |
const |
get index of body by name
- Parameters
-
- Returns
- index of the body
void WorldBase::calcNextState |
( |
| ) |
|
|
virtual |
void WorldBase::clearBodies |
( |
| ) |
|
clear bodies in this world
void WorldBase::clearCollisionPairs |
( |
| ) |
|
double cnoid::WorldBase::currentTime |
( |
void |
| ) |
const |
|
inline |
get current time
- Returns
- current time[s]
void WorldBase::enableSensors |
( |
bool |
on | ) |
|
enable/disable sensor simulation
- Parameters
-
on | true to enable, false to disable |
- Note
- This must be called before initialize() is called.
get forward dynamics computation method for body
- Parameters
-
- Returns
- forward dynamics computation method
std::pair< int, bool > WorldBase::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.
const Vector3& cnoid::WorldBase::gravityAcceleration |
( |
| ) |
const |
|
inline |
get gravity acceleration
- Returns
- gravity accleration
void WorldBase::initialize |
( |
void |
| ) |
|
|
virtual |
int cnoid::WorldBase::numBodies |
( |
| ) |
const |
|
inline |
get the number of bodies in this world
- Returns
- the number of bodies
void WorldBase::setCurrentTime |
( |
double |
tm | ) |
|
set current time
- Parameters
-
void WorldBase::setEulerMethod |
( |
| ) |
|
choose euler method for integration
void WorldBase::setGravityAcceleration |
( |
const Vector3 & |
g | ) |
|
set gravity acceleration
- Parameters
-
g | gravity acceleration[m/s^2] |
void WorldBase::setOldAccelSensorCalcMode |
( |
bool |
on | ) |
|
void WorldBase::setRungeKuttaMethod |
( |
| ) |
|
choose runge-kutta method for integration
void WorldBase::setTimeStep |
( |
double |
dt | ) |
|
void WorldBase::setVirtualJointForces |
( |
| ) |
|
double cnoid::WorldBase::timeStep |
( |
void |
| ) |
const |
|
inline |
get time step
- Returns
- time step[s]
std::vector<BodyInfo> cnoid::WorldBase::bodyInfoArray |
|
protected |
double cnoid::WorldBase::currentTime_ |
|
protected |
bool cnoid::WorldBase::isOldAccelSensorCalcMode |
|
protected |
bool cnoid::WorldBase::sensorsAreEnabled |
|
protected |
double cnoid::WorldBase::timeStep_ |
|
protected |
The documentation for this class was generated from the following files: