Home
last modified time | relevance | path

Searched refs:getDof (Results 1 – 25 of 73) sorted by relevance

123

/dports/misc/dartsim/dart-6.11.1/unittests/comprehensive/
H A Dtest_NameManagement.cpp150 EXPECT_TRUE(joint3->getDof(0) == skel->getDof("a_unique_name_rot_x")); in TEST()
155 EXPECT_TRUE(joint1->getDof(0) == skel->getDof(0)); in TEST()
157 EXPECT_TRUE(joint2->getDof(0) == skel->getDof(1)); in TEST()
158 EXPECT_TRUE(joint2->getDof(1) == skel->getDof(2)); in TEST()
159 EXPECT_TRUE(joint2->getDof(2) == skel->getDof(3)); in TEST()
161 EXPECT_TRUE(joint3->getDof(0) == skel->getDof(4)); in TEST()
162 EXPECT_TRUE(joint3->getDof(1) == skel->getDof(5)); in TEST()
163 EXPECT_TRUE(joint3->getDof(2) == skel->getDof(6)); in TEST()
164 EXPECT_TRUE(joint3->getDof(3) == skel->getDof(7)); in TEST()
165 EXPECT_TRUE(joint3->getDof(4) == skel->getDof(8)); in TEST()
[all …]
H A Dtest_Skeleton.cpp197 std::string name = original->getDof(j)->getName(); in TEST()
198 DegreeOfFreedom* dof = skeleton->getDof(name); in TEST()
205 name = skeleton->getDof(j)->getName(); in TEST()
206 dof = original->getDof(name); in TEST()
402 DegreeOfFreedomPtr dof = skeleton->getDof(1); in TEST()
408 EXPECT_TRUE(dof == skeleton->getDof(1)); in TEST()
411 EXPECT_TRUE(const_weakdof.lock() == skeleton->getDof(1)); in TEST()
415 EXPECT_FALSE(dof < skeleton->getDof(1)); in TEST()
417 EXPECT_FALSE(skeleton->getDof(1) < dof); in TEST()
421 EXPECT_FALSE(dof > skeleton->getDof(1)); in TEST()
[all …]
H A Dtest_MetaSkeleton.cpp141 EXPECT_TRUE(tree->getDof(tree->getIndexOf(dof)) == dof); in TEST()
195 const std::size_t sr1 = tree->getDof(r1)->getIndexInSkeleton(); in TEST()
198 const std::size_t sr2 = tree->getDof(r2)->getIndexInSkeleton(); in TEST()
223 const std::size_t sr2 = tree->getDof(r2)->getIndexInSkeleton(); in TEST()
624 EXPECT_EQ(skel1Group->getDof(i), skel->getDof(i)); in TEST()
646 DegreeOfFreedom* dof = skel->getDof(randomIndex); in TEST()
662 EXPECT_EQ(group->getDof(i), dofs[i]); in TEST()
/dports/misc/dartsim/dart-6.11.1/unittests/unit/
H A Dtest_SkelParser.cpp349 EXPECT_EQ(joint0->getDof(0)->getPosition(), 0); in TEST()
353 EXPECT_EQ(joint0->getDof(0)->getVelocity(), 0); in TEST()
369 EXPECT_EQ(joint2->getDof(0)->getPosition(), 0); in TEST()
373 EXPECT_EQ(joint2->getDof(0)->getVelocity(), 0); in TEST()
377 EXPECT_EQ(joint2->getDof(0)->getAcceleration(), 0); in TEST()
380 EXPECT_EQ(joint2->getDof(0)->getForceUpperLimit(), 4); in TEST()
381 EXPECT_EQ(joint2->getDof(0)->getForce(), 0); in TEST()
389 EXPECT_EQ(joint3->getDof(0)->getPosition(), 5); in TEST()
394 EXPECT_EQ(joint3->getDof(1)->getPosition(), -5); in TEST()
398 EXPECT_EQ(joint4->getDof(0)->getName(), "joint4_1"); in TEST()
[all …]
/dports/misc/dartsim/dart-6.11.1/examples/deprecated_examples/glut_biped_stand/
H A DMain.cpp53 biped->getDof("j_pelvis_rot_y")->setPosition(-0.20); in main()
54 biped->getDof("j_thigh_left_z")->setPosition(0.15); in main()
55 biped->getDof("j_shin_left")->setPosition(-0.40); in main()
56 biped->getDof("j_heel_left_1")->setPosition(0.25); in main()
57 biped->getDof("j_thigh_right_z")->setPosition(0.15); in main()
58 biped->getDof("j_shin_right")->setPosition(-0.40); in main()
59 biped->getDof("j_heel_right_1")->setPosition(0.25); in main()
60 biped->getDof("j_abdomen_2")->setPosition(0.00); in main()
H A DController.cpp40 mLeftFoot[0] = _skel->getDof("j_heel_left_1")->getIndexInSkeleton(); in Controller()
41 mLeftFoot[1] = _skel->getDof("j_toe_left")->getIndexInSkeleton(); in Controller()
43 mRightFoot[0] = _skel->getDof("j_heel_right_1")->getIndexInSkeleton(); in Controller()
44 mRightFoot[1] = _skel->getDof("j_toe_right")->getIndexInSkeleton(); in Controller()
/dports/misc/dartsim/dart-6.11.1/examples/biped_stand/
H A Dmain.cpp52 mLeftFoot[0] = mBiped->getDof("j_heel_left_1")->getIndexInSkeleton(); in CustomWorldNode()
53 mLeftFoot[1] = mBiped->getDof("j_toe_left")->getIndexInSkeleton(); in CustomWorldNode()
56 mRightFoot[1] = mBiped->getDof("j_toe_right")->getIndexInSkeleton(); in CustomWorldNode()
254 biped->getDof("j_pelvis_rot_y")->setPosition(-0.20); in main()
255 biped->getDof("j_thigh_left_z")->setPosition(0.15); in main()
256 biped->getDof("j_shin_left")->setPosition(-0.40); in main()
257 biped->getDof("j_heel_left_1")->setPosition(0.25); in main()
258 biped->getDof("j_thigh_right_z")->setPosition(0.15); in main()
259 biped->getDof("j_shin_right")->setPosition(-0.40); in main()
260 biped->getDof("j_heel_right_1")->setPosition(0.25); in main()
[all …]
/dports/misc/dartsim/dart-6.11.1/dart/utils/
H A DFileInfoSkel.hpp_132 Dof *d = mSkel->getDof(i);
184 …_outfile<<"telescope { <"<<tr->getDof(0)->getValue()<<", "<<tr->getDof(1)->getValue()<<", "<<tr->g…
187 _outfile<<"rotate_cons { "<<tr->getDof(0)->getValue()<<", "<<" x }\n";
190 _outfile<<"rotate_cons { "<<tr->getDof(0)->getValue()<<", "<<" y }\n";
193 _outfile<<"rotate_cons { "<<tr->getDof(0)->getValue()<<", "<<" z }\n";
202 …_outfile<<"translate { <"<<tr->getDof(0)->getName()<<", "<<tr->getDof(1)->getName()<<", "<<tr->get…
205 _outfile<<"rotate_euler { "<<tr->getDof(0)->getName()<<", "<<" x }\n";
208 _outfile<<"rotate_euler { "<<tr->getDof(0)->getName()<<", "<<" y }\n";
211 _outfile<<"rotate_euler { "<<tr->getDof(0)->getName()<<", "<<" z }\n";
214 …_outfile<<"rotate_expmap { <"<<tr->getDof(0)->getName()<<", "<<tr->getDof(1)->getName()<<", "<<tr-…
H A DMayaExportSkeleton.cpp_199 tdofs[0]+=tf->getDof(0)->getValue();
200 tdofs[1]+=tf->getDof(1)->getValue();
201 tdofs[2]+=tf->getDof(2)->getValue();
269 …pe()==Transformation::T_ROTATEX) *rotPtr = dart_math::eulerToMatrixX(tf->getDof(0)->getValue())*(*…
270 …pe()==Transformation::T_ROTATEY) *rotPtr = dart_math::eulerToMatrixY(tf->getDof(0)->getValue())*(*…
271 …pe()==Transformation::T_ROTATEZ) *rotPtr = dart_math::eulerToMatrixZ(tf->getDof(0)->getValue())*(*…
273 … Vector3d exmap(tf->getDof(0)->getValue(), tf->getDof(1)->getValue(), tf->getDof(2)->getValue());
285 …pe()==Transformation::T_ROTATEX) *rotPtr = dart_math::eulerToMatrixX(tf->getDof(0)->getValue())*(*…
286 …pe()==Transformation::T_ROTATEY) *rotPtr = dart_math::eulerToMatrixY(tf->getDof(0)->getValue())*(*…
287 …pe()==Transformation::T_ROTATEZ) *rotPtr = dart_math::eulerToMatrixZ(tf->getDof(0)->getValue())*(*…
[all …]
H A DMayaExportMotion.cpp_142 … if(tf->isVariable()) vals[di] = mDofData->getDofAt(fi, tf->getDof(0)->getSkelIndex());
143 else vals[di] = tf->getDof(0)->getValue();
209 …ata->getDofAt(i, t->getDof(0)->getSkelIndex()), mDofData->getDofAt(i, t->getDof(1)->getSkelIndex()…
262 …outFile0<<"\t\t "<<i<<" "<<mDofData->getDofAt(i, t->getDof(0)->getSkelIndex())<<" linear linear 1 …
275 …outFile0<<"\t\t "<<i<<" "<<mDofData->getDofAt(i, t->getDof(1)->getSkelIndex())<<" linear linear 1 …
288 …outFile0<<"\t\t "<<i<<" "<<mDofData->getDofAt(i, t->getDof(2)->getSkelIndex())<<" linear linear 1 …
303 …outFile0<<"\t\t "<<i<<" "<<mDofData->getDofAt(i, t->getDof(0)->getSkelIndex())<<" linear linear 1 …
318 …outFile0<<"\t\t "<<i<<" "<<mDofData->getDofAt(i, t->getDof(0)->getSkelIndex())<<" linear linear 1 …
333 …outFile0<<"\t\t "<<i<<" "<<mDofData->getDofAt(i, t->getDof(0)->getSkelIndex())<<" linear linear 1 …
/dports/misc/dartsim/dart-6.11.1/tutorials/tutorial_biped_finished/
H A Dmain.cpp141 int lToeIndex = mBiped->getDof("j_toe_left")->getIndexInSkeleton(); in addAnkleStrategyForces()
142 int rToeIndex = mBiped->getDof("j_toe_right")->getIndexInSkeleton(); in addAnkleStrategyForces()
172 = mBiped->getDof("joint_front_left_1")->getIndexInSkeleton(); in setWheelCommands()
181 int index3 = mBiped->getDof("joint_back_left")->getIndexInSkeleton(); in setWheelCommands()
182 int index4 = mBiped->getDof("joint_back_right")->getIndexInSkeleton(); in setWheelCommands()
325 biped->getDof("j_thigh_left_z")->getIndexInSkeleton(), 0.15); in setInitialPose()
327 biped->getDof("j_thigh_right_z")->getIndexInSkeleton(), 0.15); in setInitialPose()
331 biped->getDof("j_heel_left_1")->getIndexInSkeleton(), 0.25); in setInitialPose()
333 biped->getDof("j_heel_right_1")->getIndexInSkeleton(), 0.25); in setInitialPose()
371 biped->getDof("j_bicep_left_x")->getIndexInSkeleton(), 0.8); in solveIK()
[all …]
/dports/misc/dartsim/dart-6.11.1/python/examples/biped_stand/
H A Dmain.py46 self.skel.getDof('j_heel_left_1').getIndexInSkeleton(),
47 self.skel.getDof('j_toe_left').getIndexInSkeleton(),
51 self.skel.getDof('j_toe_right').getIndexInSkeleton(),
156 biped.getDof('j_pelvis_rot_y').setPosition(-0.20)
157 biped.getDof('j_thigh_left_z').setPosition(0.15)
158 biped.getDof('j_shin_left').setPosition(-0.40)
159 biped.getDof('j_heel_left_1').setPosition(0.25)
160 biped.getDof('j_thigh_right_z').setPosition(0.15)
161 biped.getDof('j_shin_right').setPosition(-0.40)
162 biped.getDof('j_heel_right_1').setPosition(0.25)
[all …]
/dports/misc/dartsim/dart-6.11.1/examples/atlas_puppet/
H A Dmain.cpp283 if (mAtlas->getDof(i)->getName().substr(1, 5) == "_leg_") in initialize()
284 mLegs.push_back(mAtlas->getDof(i)->getIndexInSkeleton()); in initialize()
327 std::cout << mAtlas->getDof(i)->getName() << ": " in handle()
328 << mAtlas->getDof(i)->getPosition() << std::endl; in handle()
339 mAtlas->getDof(i)->setPosition(mRestConfig[i]); in handle()
586 atlas->getDof("r_leg_kny")->setPosition(90.0 * constantsd::pi() / 180.0); in setupStartConfiguration()
591 atlas->getDof("l_leg_kny")->setPosition(90.0 * constantsd::pi() / 180.0); in setupStartConfiguration()
595 atlas->getDof("r_arm_shx")->setPosition(65.0 * constantsd::pi() / 180.0); in setupStartConfiguration()
607 atlas->getDof("r_leg_kny") in setupStartConfiguration()
609 atlas->getDof("l_leg_kny") in setupStartConfiguration()
[all …]
/dports/misc/dartsim/dart-6.11.1/examples/wam_ikfast/
H A DHelpers.cpp80 wam->getDof("/j1")->setPosition(0.0); in setStartupConfiguration()
81 wam->getDof("/j2")->setPosition(0.0); in setStartupConfiguration()
82 wam->getDof("/j3")->setPosition(0.0); in setStartupConfiguration()
83 wam->getDof("/j4")->setPosition(0.0); in setStartupConfiguration()
84 wam->getDof("/j5")->setPosition(0.0); in setStartupConfiguration()
85 wam->getDof("/j6")->setPosition(0.0); in setStartupConfiguration()
86 wam->getDof("/j7")->setPosition(0.0); in setStartupConfiguration()
H A DInputHandler.cpp78 std::cout << mWam->getDof(i)->getName() << ": " in handle()
79 << mWam->getDof(i)->getPosition() << std::endl; in handle()
/dports/math/xlife++/xlifepp-sources-v2.0.1-2018-05-09/src/utils/
H A DThreadData.hpp151 Dof& getDof(number_t t) const in getDof() function in xlifepp::ThreadData
158 Dof& getDof() const {return getDof(currentThread());} in getDof() function in xlifepp::ThreadData
184 inline Dof& getDof(number_t t) {return theThreadData.getDof(t);} in getDof() function
194 inline Dof& getDof() {return theThreadData.getDof(currentThread());} in getDof() function
/dports/misc/dartsim/dart-6.11.1/examples/hubo_puppet/
H A Dmain.cpp409 dofs[i] = joint->getDof(0); in configure()
661 dofs[i] = joint->getDof(0); in configure()
1198 hubo->getDof("LHP")->setPosition(toRadian(-45.0)); in setStartupConfiguration()
1199 hubo->getDof("LKP")->setPosition(toRadian(90.0)); in setStartupConfiguration()
1200 hubo->getDof("LAP")->setPosition(toRadian(-45.0)); in setStartupConfiguration()
1202 hubo->getDof("RHP")->setPosition(toRadian(-45.0)); in setStartupConfiguration()
1203 hubo->getDof("RKP")->setPosition(toRadian(90.0)); in setStartupConfiguration()
1204 hubo->getDof("RAP")->setPosition(toRadian(-45.0)); in setStartupConfiguration()
1206 hubo->getDof("LSP")->setPosition(toRadian(30.0)); in setStartupConfiguration()
1207 hubo->getDof("LEP")->setPosition(toRadian(-120.0)); in setStartupConfiguration()
[all …]
/dports/misc/dartsim/dart-6.11.1/tutorials/tutorial_multi_pendulum_finished/
H A Dmain.cpp109 DegreeOfFreedom* dof = mPendulum->getDof(i); in changeRestPosition()
122 mPendulum->getDof(0)->setRestPosition(0.0); in changeRestPosition()
123 mPendulum->getDof(2)->setRestPosition(0.0); in changeRestPosition()
130 DegreeOfFreedom* dof = mPendulum->getDof(i); in changeStiffness()
142 DegreeOfFreedom* dof = mPendulum->getDof(i); in changeDamping()
277 DegreeOfFreedom* dof = mPendulum->getDof(i); in timeStepping()
443 pendulum->getDof(1)->setPosition(dart::math::toRadian(120.0)); in main()
/dports/science/PETSc/petsc-3.14.1/src/binding/petsc4py/test/
H A Dtest_dmda.py29 dof = self.da.getDof()
75 for i in range(self.da.getDof()):
77 for i in range(self.da.getDof()):
159 self.assertEqual(da.getDof(), rda.getDof())
165 self.assertEqual(rda.getDof(), cda.getDof())
173 self.assertEqual(da.getDof(), cda.getDof())
/dports/misc/dartsim/dart-6.11.1/dart/dynamics/
H A DGroup.cpp136 DegreeOfFreedom* dofClone = skelClone->getDof(dof->getName()); in cloneGroup()
274 added |= addDof(_bn->getParentJoint()->getDof(i), false); in addComponent()
319 removed |= removeDof(_bn->getParentJoint()->getDof(i), false); in removeComponent()
455 added |= addDof(_joint->getDof(i), false, false); in addJoint()
518 removed |= removeDof(_joint->getDof(i), false, false); in removeJoint()
645 if (getIndexOf(joint->getDof(i), false) == INVALID_INDEX) in removeDof()
713 addDof(joint->getDof(j)); in Group()
753 addDof(_metaSkeleton->getDof(i), false); in Group()
H A DMetaSkeleton.cpp110 DegreeOfFreedom* dof = skel->getDof(_indices[i]); in setValuesFromVector()
148 DegreeOfFreedom* dof = skel->getDof(i); in setAllValuesFromVector()
177 const DegreeOfFreedom* dof = skel->getDof(_indices[i]); in getValuesFromVector()
219 const DegreeOfFreedom* dof = skel->getDof(i); in getValuesFromAllDofs()
222 values[i] = (skel->getDof(i)->*getValue)(); in getValuesFromAllDofs()
245 DegreeOfFreedom* dof = skel->getDof(i); in applyToAllDofs()
274 DegreeOfFreedom* dof = skel->getDof(_index); in setValueFromIndex()
312 const DegreeOfFreedom* dof = skel->getDof(_index); in getValueFromIndex()
315 return (skel->getDof(_index)->*getValue)(); in getValueFromIndex()
/dports/misc/dartsim/dart-6.11.1/examples/atlas_simbicon/
H A DState.cpp94 mCoronalLeftHip = mSkeleton->getDof("l_leg_hpx")->getIndexInSkeleton(); // 10 in State()
95 mCoronalRightHip = mSkeleton->getDof("r_leg_hpx")->getIndexInSkeleton(); // 11 in State()
96 mSagitalLeftHip = mSkeleton->getDof("l_leg_hpy")->getIndexInSkeleton(); // 13 in State()
97 mSagitalRightHip = mSkeleton->getDof("r_leg_hpy")->getIndexInSkeleton(); // 14 in State()
527 std::size_t index = mSkeleton->getDof(_jointName)->getIndexInSkeleton(); in setDesiredJointPosition()
/dports/misc/dartsim/dart-6.11.1/examples/deprecated_examples/glut_atlas_simbicon/
H A DState.cpp94 mCoronalLeftHip = mSkeleton->getDof("l_leg_hpx")->getIndexInSkeleton(); // 10 in State()
95 mCoronalRightHip = mSkeleton->getDof("r_leg_hpx")->getIndexInSkeleton(); // 11 in State()
96 mSagitalLeftHip = mSkeleton->getDof("l_leg_hpy")->getIndexInSkeleton(); // 13 in State()
97 mSagitalRightHip = mSkeleton->getDof("r_leg_hpy")->getIndexInSkeleton(); // 14 in State()
527 std::size_t index = mSkeleton->getDof(_jointName)->getIndexInSkeleton(); in setDesiredJointPosition()
/dports/math/xlife++/xlifepp-sources-v2.0.1-2018-05-09/doc/tex/inputs/dev/
H A DThreadData.tex59 Dof& getDof(number_t ) const;
60 Dof& getDof() const;
90 inline Dof& getDof(number_t t);
99 inline Dof& getDof();
/dports/misc/dartsim/dart-6.11.1/dart/dynamics/detail/
H A DDegreeOfFreedomPtr.hpp118 return mBodyNodePtr->getParentJoint()->getDof(mIndex); in get()
302 bodyNode->getParentJoint()->getDof(mIndex)); in lock()

123