Go to the documentation of this file.
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);
@ ROTATIONAL_JOINT
6-DOF root link
void setAbsVelocity(hrp::Vector3 &v, hrp::Vector3 &w)
std::vector< dGeomID > geomIds
dTriMeshDataID triMeshDataId
void getLinearVel(hrp::Vector3 &v)
const dReal * getTorque()
Vector3 w
angular velocity, omega
const dReal * getAngularVel()
@ SLIDE_JOINT
translational joint (1 dof)
void setTransform(const hrp::Vector3 &pos, const hrp::Matrix33 &R)
void setTorque(double fx, double fy, double fz)
void getTransform(hrp::Vector3 &pos, hrp::Matrix33 &R)
void setForce(double fx, double fy, double fz)
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:03