Go to the documentation of this file.
6 #ifndef CNOID_BODY_FORWARD_DYNAMICS_H
7 #define CNOID_BODY_FORWARD_DYNAMICS_H
10 #include "exportdecl.h"
25 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
30 void setGravityAcceleration(
const Vector3& g);
31 void setEulerMethod();
32 void setRungeKuttaMethod();
33 void setTimeStep(
double timeStep);
34 void enableSensors(
bool on);
35 void setOldAccelSensorCalcMode(
bool on);
37 virtual void initialize() = 0;
38 virtual void calcNextState() = 0;
39 virtual void refreshState() = 0;
42 virtual void initializeSensors();
60 enum { EULER_METHOD, RUNGEKUTTA_METHOD } integrationMode;
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
bool sensorsEnabled
Definition: ForwardDynamics.h:57
Vector3 g
Definition: ForwardDynamics.h:55
ref_ptr< DySubBody > DySubBodyPtr
Definition: DyBody.h:74
double timeStep
Definition: ForwardDynamics.h:56
Definition: AbstractSceneLoader.h:11
DySubBodyPtr subBody
Definition: ForwardDynamics.h:54
BasicSensorSimulationHelper sensorHelper
Definition: ForwardDynamics.h:58
Definition: BasicSensorSimulationHelper.h:19
Definition: ForwardDynamics.h:22