#include <World.h>
コンストラクタとデストラクタ
WorldBase::~WorldBase |
( |
| ) |
|
|
virtual |
関数
int WorldBase::addBody |
( |
BodyPtr |
body | ) |
|
add body to this world
- 引数
-
- 戻り値
- index of the body
- 覚え書き
- This must be called before initialize() is called.
BodyPtr WorldBase::body |
( |
int |
index | ) |
|
get body by index
- 引数
-
- 戻り値
- body
BodyPtr WorldBase::body |
( |
const std::string & |
name | ) |
|
get body by name
- 引数
-
- 戻り値
- body
int WorldBase::bodyIndex |
( |
const std::string & |
name | ) |
|
get index of body by name
- 引数
-
- 戻り値
- 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
- 戻り値
- current time[s]
void WorldBase::enableSensors |
( |
bool |
on | ) |
|
enable/disable sensor simulation
- 引数
-
on | true to enable, false to disable |
- 覚え書き
- This must be called before initialize() is called.
get forward dynamics computation method for body
- 引数
-
- 戻り値
- forward dynamics computation method
std::pair< int, bool > WorldBase::getIndexOfLinkPairs |
( |
Link * |
link1, |
|
|
Link * |
link2 |
|
) |
| |
get index of link pairs
- 引数
-
- 戻り値
- pair of index and flag. The flag is true if the pair was already registered, false othewise.
const Vector3& cnoid::WorldBase::gravityAcceleration |
( |
| ) |
|
|
inline |
get gravity acceleration
- 戻り値
- gravity accleration
void WorldBase::initialize |
( |
void |
| ) |
|
|
virtual |
int cnoid::WorldBase::numBodies |
( |
| ) |
|
|
inline |
get the number of bodies in this world
- 戻り値
- the number of bodies
void WorldBase::setCurrentTime |
( |
double |
tm | ) |
|
void WorldBase::setEulerMethod |
( |
| ) |
|
choose euler method for integration
void WorldBase::setGravityAcceleration |
( |
const Vector3 & |
g | ) |
|
set gravity acceleration
- 引数
-
g | gravity acceleration[m/s^2] |
void WorldBase::setRungeKuttaMethod |
( |
| ) |
|
choose runge-kutta method for integration
void WorldBase::setTimeStep |
( |
double |
dt | ) |
|
double cnoid::WorldBase::timeStep |
( |
void |
| ) |
const |
|
inline |
get time step
- 戻り値
- time step[s]
変数
std::vector<BodyInfo> cnoid::WorldBase::bodyInfoArray |
|
protected |
double cnoid::WorldBase::currentTime_ |
|
protected |
bool cnoid::WorldBase::sensorsAreEnabled |
|
protected |
double cnoid::WorldBase::timeStep_ |
|
protected |
このクラスの説明は次のファイルから生成されました: