18 dBodyGetRelPointPos(
bodyId, -
C[0], -
C[1], -
C[2], result);
19 pos_ << result[0], result[1], result[2];
25 dBodySetPosition(
bodyId, _pos(0), _pos(1), _pos(2));
26 dMatrix3 _R = {
R(0,0),
R(0,1),
R(0,2), 0,
27 R(1,0),
R(1,1),
R(1,2), 0,
28 R(2,0),
R(2,1),
R(2,2), 0};
29 dBodySetRotation(
bodyId, _R);
45 return dJointGetSliderPositionRate(
odeJointId);
58 return dBodyGetAngularVel(
bodyId);
63 dBodyGetRelPointVel(
bodyId, -
C[0], -
C[1], -
C[2], result);
64 v << result[0], result[1], result[2];
68 dBodySetAngularVel(
bodyId, w[0], w[1], w[2]);
74 dBodySetLinearVel(
bodyId, _v[0], _v[1], _v[2]);
78 return dBodyGetForce(
bodyId);
82 return dBodyGetTorque(
bodyId);
86 dBodyAddForce(
bodyId, fx, fy, fz);
90 dBodyAddTorque(
bodyId, tx, ty, tz);
const dReal * getTorque()
void setTransform(const hrp::Vector3 &pos, const hrp::Matrix33 &R)
translational joint (1 dof)
void setForce(double fx, double fy, double fz)
Vector3 w
angular velocity, omega
void getTransform(hrp::Vector3 &pos, hrp::Matrix33 &R)
void setAbsVelocity(hrp::Vector3 &v, hrp::Vector3 &w)
std::vector< dGeomID > geomIds
void setTorque(double fx, double fy, double fz)
void getLinearVel(hrp::Vector3 &v)
dTriMeshDataID triMeshDataId
const dReal * getAngularVel()