dartpy 7.0.0.dev0__cp312-cp312-manylinux_2_39_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dartpy might be problematic. Click here for more details.

Files changed (994) hide show
  1. dartpy-7.0.0.dev0.dist-info/METADATA +86 -0
  2. dartpy-7.0.0.dev0.dist-info/RECORD +994 -0
  3. dartpy-7.0.0.dev0.dist-info/WHEEL +5 -0
  4. dartpy-7.0.0.dev0.dist-info/licenses/LICENSE +31 -0
  5. dartpy.cpython-312-x86_64-linux-gnu.so +0 -0
  6. dartpy.libs/libBulletCollision-f96eb02c.so.3.25 +0 -0
  7. dartpy.libs/libBulletDynamics-3cff1f18.so.3.25 +0 -0
  8. dartpy.libs/libBulletSoftBody-220f01bd.so.3.25 +0 -0
  9. dartpy.libs/libLinearMath-71568d02.so.3.25 +0 -0
  10. dartpy.libs/libOpenThreads-8bc434db.so.3.3.1 +0 -0
  11. dartpy.libs/libSDL2-2-3db87ac0.0.so.0.3200.56 +0 -0
  12. dartpy.libs/libassimp-44cf3e77.so.5.4.3 +0 -0
  13. dartpy.libs/libccd-4f119cf4.so.2.0 +0 -0
  14. dartpy.libs/libconsole_bridge-f26e11cc.so.1.0 +0 -0
  15. dartpy.libs/libfcl-2607815a.so.0.7.0 +0 -0
  16. dartpy.libs/libfmt-277170bf.so.11.2.0 +0 -0
  17. dartpy.libs/libfontconfig-559ff509.so.1.14.0 +0 -0
  18. dartpy.libs/libfreetype-64806fc6.so.6.20.4 +0 -0
  19. dartpy.libs/libglfw-6f066845.so.3.4 +0 -0
  20. dartpy.libs/libimgui-ab87b07d.so +0 -0
  21. dartpy.libs/libnlopt-78f9bc34.so.1.0.0 +0 -0
  22. dartpy.libs/liboctomap-38e56f99.so.1.10.0 +0 -0
  23. dartpy.libs/liboctomath-bff26442.so.1.10.0 +0 -0
  24. dartpy.libs/libode-caca20fc.so.8.2.0 +0 -0
  25. dartpy.libs/libosg-e67375e5.so.3.6.5 +0 -0
  26. dartpy.libs/libosgDB-22ae780f.so.3.6.5 +0 -0
  27. dartpy.libs/libosgGA-6af4078b.so.3.6.5 +0 -0
  28. dartpy.libs/libosgManipulator-3270f659.so.3.6.5 +0 -0
  29. dartpy.libs/libosgShadow-127a8d77.so.3.6.5 +0 -0
  30. dartpy.libs/libosgText-87d82d87.so.3.6.5 +0 -0
  31. dartpy.libs/libosgUtil-55896958.so.3.6.5 +0 -0
  32. dartpy.libs/libosgViewer-76d832e3.so.3.6.5 +0 -0
  33. dartpy.libs/libpng16-bd65464e.so.16.50.0 +0 -0
  34. dartpy.libs/libtinyxml2-8d10763c.so.11.0.0 +0 -0
  35. dartpy.libs/liburdfdom_model-7b26ae88.so.4.0 +0 -0
  36. dartpy.libs/liburdfdom_model_state-95a5ad6e.so.4.0 +0 -0
  37. dartpy.libs/liburdfdom_sensor-55a145ea.so.4.0 +0 -0
  38. dartpy.libs/liburdfdom_world-a32c7194.so.4.0 +0 -0
  39. dartpy.libs/libvulkan-8caf1954.so.1.4.328 +0 -0
  40. include/dart/collision/CollisionDetector.hpp +305 -0
  41. include/dart/collision/CollisionFilter.hpp +126 -0
  42. include/dart/collision/CollisionGroup.hpp +546 -0
  43. include/dart/collision/CollisionObject.hpp +90 -0
  44. include/dart/collision/CollisionOption.hpp +71 -0
  45. include/dart/collision/CollisionResult.hpp +109 -0
  46. include/dart/collision/Contact.hpp +103 -0
  47. include/dart/collision/DistanceFilter.hpp +66 -0
  48. include/dart/collision/DistanceOption.hpp +80 -0
  49. include/dart/collision/DistanceResult.hpp +123 -0
  50. include/dart/collision/Option.hpp +42 -0
  51. include/dart/collision/RaycastOption.hpp +58 -0
  52. include/dart/collision/RaycastResult.hpp +80 -0
  53. include/dart/collision/Result.hpp +42 -0
  54. include/dart/collision/SmartPointer.hpp +51 -0
  55. include/dart/collision/all.hpp +17 -0
  56. include/dart/collision/bullet/BulletCollisionDetector.hpp +168 -0
  57. include/dart/collision/bullet/BulletCollisionGroup.hpp +98 -0
  58. include/dart/collision/bullet/BulletCollisionObject.hpp +75 -0
  59. include/dart/collision/bullet/BulletCollisionShape.hpp +62 -0
  60. include/dart/collision/bullet/BulletInclude.hpp +47 -0
  61. include/dart/collision/bullet/BulletTypes.hpp +57 -0
  62. include/dart/collision/bullet/all.hpp +8 -0
  63. include/dart/collision/bullet/bullet.hpp +14 -0
  64. include/dart/collision/bullet/detail/BulletCollisionDispatcher.hpp +70 -0
  65. include/dart/collision/bullet/detail/BulletOverlapFilterCallback.hpp +72 -0
  66. include/dart/collision/collision.hpp +14 -0
  67. include/dart/collision/dart/DARTCollide.hpp +106 -0
  68. include/dart/collision/dart/DARTCollisionDetector.hpp +109 -0
  69. include/dart/collision/dart/DARTCollisionGroup.hpp +82 -0
  70. include/dart/collision/dart/DARTCollisionObject.hpp +63 -0
  71. include/dart/collision/dart/all.hpp +6 -0
  72. include/dart/collision/dart/dart.hpp +14 -0
  73. include/dart/collision/detail/CollisionDetector.hpp +66 -0
  74. include/dart/collision/detail/CollisionGroup.hpp +287 -0
  75. include/dart/collision/detail/Contact-impl.hpp +56 -0
  76. include/dart/collision/detail/UnorderedPairs.hpp +153 -0
  77. include/dart/collision/fcl/BackwardCompatibility.hpp +145 -0
  78. include/dart/collision/fcl/CollisionShapes.hpp +374 -0
  79. include/dart/collision/fcl/FCLCollisionDetector.hpp +204 -0
  80. include/dart/collision/fcl/FCLCollisionGroup.hpp +95 -0
  81. include/dart/collision/fcl/FCLCollisionObject.hpp +72 -0
  82. include/dart/collision/fcl/FCLTypes.hpp +62 -0
  83. include/dart/collision/fcl/TriTriIntersectionTest.hpp +17 -0
  84. include/dart/collision/fcl/all.hpp +9 -0
  85. include/dart/collision/fcl/fcl.hpp +14 -0
  86. include/dart/collision/fcl/tri_tri_intersection_test.hpp +332 -0
  87. include/dart/collision/ode/OdeCollisionDetector.hpp +131 -0
  88. include/dart/collision/ode/OdeCollisionGroup.hpp +87 -0
  89. include/dart/collision/ode/OdeCollisionObject.hpp +89 -0
  90. include/dart/collision/ode/OdeTypes.hpp +51 -0
  91. include/dart/collision/ode/all.hpp +6 -0
  92. include/dart/collision/ode/detail/OdeBox.hpp +58 -0
  93. include/dart/collision/ode/detail/OdeCapsule.hpp +58 -0
  94. include/dart/collision/ode/detail/OdeCylinder.hpp +58 -0
  95. include/dart/collision/ode/detail/OdeGeom.hpp +83 -0
  96. include/dart/collision/ode/detail/OdeHeightmap-impl.hpp +170 -0
  97. include/dart/collision/ode/detail/OdeHeightmap.hpp +70 -0
  98. include/dart/collision/ode/detail/OdeMesh.hpp +83 -0
  99. include/dart/collision/ode/detail/OdePlane.hpp +67 -0
  100. include/dart/collision/ode/detail/OdeSphere.hpp +58 -0
  101. include/dart/collision/ode/ode.hpp +14 -0
  102. include/dart/common/Aspect.hpp +215 -0
  103. include/dart/common/AspectWithVersion.hpp +180 -0
  104. include/dart/common/CAllocator.hpp +65 -0
  105. include/dart/common/Castable.hpp +102 -0
  106. include/dart/common/ClassWithVirtualBase.hpp +47 -0
  107. include/dart/common/Cloneable.hpp +327 -0
  108. include/dart/common/Composite.hpp +205 -0
  109. include/dart/common/CompositeJoiner.hpp +160 -0
  110. include/dart/common/Console.hpp +75 -0
  111. include/dart/common/Deprecated.hpp +126 -0
  112. include/dart/common/EmbeddedAspect.hpp +466 -0
  113. include/dart/common/Empty.hpp +55 -0
  114. include/dart/common/Factory.hpp +146 -0
  115. include/dart/common/Filesystem.hpp +112 -0
  116. include/dart/common/FreeListAllocator.hpp +162 -0
  117. include/dart/common/IncludeWindows.hpp +50 -0
  118. include/dart/common/LocalResource.hpp +76 -0
  119. include/dart/common/LocalResourceRetriever.hpp +63 -0
  120. include/dart/common/LockableReference.hpp +166 -0
  121. include/dart/common/Logging.hpp +146 -0
  122. include/dart/common/Macros.hpp +78 -0
  123. include/dart/common/Memory.hpp +215 -0
  124. include/dart/common/MemoryAllocator.hpp +120 -0
  125. include/dart/common/MemoryAllocatorDebugger.hpp +98 -0
  126. include/dart/common/MemoryManager.hpp +189 -0
  127. include/dart/common/Metaprogramming.hpp +68 -0
  128. include/dart/common/NameManager.hpp +184 -0
  129. include/dart/common/Observer.hpp +85 -0
  130. include/dart/common/Optional.hpp +48 -0
  131. include/dart/common/Platform.hpp +92 -0
  132. include/dart/common/PoolAllocator.hpp +141 -0
  133. include/dart/common/Profile.hpp +56 -0
  134. include/dart/common/ProxyAspect.hpp +93 -0
  135. include/dart/common/RequiresAspect.hpp +79 -0
  136. include/dart/common/Resource.hpp +96 -0
  137. include/dart/common/ResourceRetriever.hpp +82 -0
  138. include/dart/common/SharedLibrary.hpp +201 -0
  139. include/dart/common/Signal.hpp +250 -0
  140. include/dart/common/Singleton.hpp +85 -0
  141. include/dart/common/SmartPointer.hpp +63 -0
  142. include/dart/common/SpecializedForAspect.hpp +207 -0
  143. include/dart/common/StlAllocator.hpp +111 -0
  144. include/dart/common/StlHelpers.hpp +61 -0
  145. include/dart/common/Stopwatch.hpp +143 -0
  146. include/dart/common/String.hpp +71 -0
  147. include/dart/common/SubPtr.hpp +17 -0
  148. include/dart/common/Subject.hpp +84 -0
  149. include/dart/common/Timer.hpp +119 -0
  150. include/dart/common/Uri.hpp +229 -0
  151. include/dart/common/VersionCounter.hpp +68 -0
  152. include/dart/common/Virtual.hpp +51 -0
  153. include/dart/common/all.hpp +53 -0
  154. include/dart/common/common.hpp +14 -0
  155. include/dart/common/detail/Aspect.hpp +102 -0
  156. include/dart/common/detail/AspectWithVersion.hpp +455 -0
  157. include/dart/common/detail/Castable-impl.hpp +109 -0
  158. include/dart/common/detail/Cloneable.hpp +638 -0
  159. include/dart/common/detail/Composite.hpp +241 -0
  160. include/dart/common/detail/CompositeData.hpp +393 -0
  161. include/dart/common/detail/CompositeJoiner.hpp +128 -0
  162. include/dart/common/detail/ConnectionBody.hpp +157 -0
  163. include/dart/common/detail/EmbeddedAspect.hpp +487 -0
  164. include/dart/common/detail/Factory-impl.hpp +200 -0
  165. include/dart/common/detail/LockableReference-impl.hpp +156 -0
  166. include/dart/common/detail/Logging-impl.hpp +162 -0
  167. include/dart/common/detail/Memory-impl.hpp +66 -0
  168. include/dart/common/detail/MemoryAllocator-impl.hpp +97 -0
  169. include/dart/common/detail/MemoryAllocatorDebugger-impl.hpp +201 -0
  170. include/dart/common/detail/MemoryManager-impl.hpp +102 -0
  171. include/dart/common/detail/Metaprogramming-impl.hpp +89 -0
  172. include/dart/common/detail/NameManager.hpp +301 -0
  173. include/dart/common/detail/NoOp.hpp +57 -0
  174. include/dart/common/detail/ProxyAspect.hpp +172 -0
  175. include/dart/common/detail/RequiresAspect.hpp +51 -0
  176. include/dart/common/detail/SharedLibraryManager.hpp +106 -0
  177. include/dart/common/detail/Signal.hpp +242 -0
  178. include/dart/common/detail/Singleton-impl.hpp +74 -0
  179. include/dart/common/detail/SpecializedForAspect.hpp +331 -0
  180. include/dart/common/detail/StlAllocator-impl.hpp +108 -0
  181. include/dart/common/detail/Stopwatch-impl.hpp +242 -0
  182. include/dart/common/detail/SubPtr.hpp +17 -0
  183. include/dart/common/detail/TemplateJoinerDispatchMacro.hpp +59 -0
  184. include/dart/common/detail/sub_ptr.hpp +139 -0
  185. include/dart/common/sub_ptr.hpp +103 -0
  186. include/dart/config.hpp +100 -0
  187. include/dart/constraint/BalanceConstraint.hpp +202 -0
  188. include/dart/constraint/BallJointConstraint.hpp +142 -0
  189. include/dart/constraint/BoxedLcpConstraintSolver.hpp +182 -0
  190. include/dart/constraint/BoxedLcpSolver.hpp +101 -0
  191. include/dart/constraint/ConstrainedGroup.hpp +120 -0
  192. include/dart/constraint/ConstraintBase.hpp +141 -0
  193. include/dart/constraint/ConstraintSolver.hpp +325 -0
  194. include/dart/constraint/ContactConstraint.hpp +286 -0
  195. include/dart/constraint/ContactSurface.hpp +191 -0
  196. include/dart/constraint/DantzigBoxedLcpSolver.hpp +71 -0
  197. include/dart/constraint/DantzigLCPSolver.hpp +87 -0
  198. include/dart/constraint/DynamicJointConstraint.hpp +120 -0
  199. include/dart/constraint/JointConstraint.hpp +182 -0
  200. include/dart/constraint/JointCoulombFrictionConstraint.hpp +149 -0
  201. include/dart/constraint/JointLimitConstraint.hpp +185 -0
  202. include/dart/constraint/LCPSolver.hpp +71 -0
  203. include/dart/constraint/MimicMotorConstraint.hpp +164 -0
  204. include/dart/constraint/PGSLCPSolver.hpp +109 -0
  205. include/dart/constraint/PgsBoxedLcpSolver.hpp +106 -0
  206. include/dart/constraint/ServoMotorConstraint.hpp +151 -0
  207. include/dart/constraint/SmartPointer.hpp +69 -0
  208. include/dart/constraint/SoftContactConstraint.hpp +262 -0
  209. include/dart/constraint/WeldJointConstraint.hpp +133 -0
  210. include/dart/constraint/all.hpp +25 -0
  211. include/dart/constraint/constraint.hpp +14 -0
  212. include/dart/constraint/detail/ConstraintSolver-impl.hpp +78 -0
  213. include/dart/dart.hpp +44 -0
  214. include/dart/dynamics/ArrowShape.hpp +121 -0
  215. include/dart/dynamics/AssimpInputResourceAdaptor.hpp +129 -0
  216. include/dart/dynamics/BallJoint.hpp +143 -0
  217. include/dart/dynamics/BodyNode.hpp +1279 -0
  218. include/dart/dynamics/BoxShape.hpp +90 -0
  219. include/dart/dynamics/Branch.hpp +107 -0
  220. include/dart/dynamics/CapsuleShape.hpp +105 -0
  221. include/dart/dynamics/Chain.hpp +142 -0
  222. include/dart/dynamics/CompositeNode.hpp +114 -0
  223. include/dart/dynamics/ConeShape.hpp +107 -0
  224. include/dart/dynamics/CylinderShape.hpp +96 -0
  225. include/dart/dynamics/DegreeOfFreedom.hpp +415 -0
  226. include/dart/dynamics/EllipsoidShape.hpp +115 -0
  227. include/dart/dynamics/EndEffector.hpp +158 -0
  228. include/dart/dynamics/Entity.hpp +258 -0
  229. include/dart/dynamics/EntityNode.hpp +77 -0
  230. include/dart/dynamics/EulerJoint.hpp +174 -0
  231. include/dart/dynamics/FixedFrame.hpp +105 -0
  232. include/dart/dynamics/FixedJacobianNode.hpp +168 -0
  233. include/dart/dynamics/Frame.hpp +388 -0
  234. include/dart/dynamics/FreeJoint.hpp +369 -0
  235. include/dart/dynamics/GenericJoint.hpp +825 -0
  236. include/dart/dynamics/Group.hpp +270 -0
  237. include/dart/dynamics/HeightmapShape.hpp +195 -0
  238. include/dart/dynamics/HierarchicalIK.hpp +419 -0
  239. include/dart/dynamics/IkFast.hpp +277 -0
  240. include/dart/dynamics/Inertia.hpp +176 -0
  241. include/dart/dynamics/InvalidIndex.hpp +46 -0
  242. include/dart/dynamics/InverseKinematics.hpp +1401 -0
  243. include/dart/dynamics/JacobianNode.hpp +312 -0
  244. include/dart/dynamics/Joint.hpp +1128 -0
  245. include/dart/dynamics/LineSegmentShape.hpp +140 -0
  246. include/dart/dynamics/Linkage.hpp +246 -0
  247. include/dart/dynamics/Marker.hpp +126 -0
  248. include/dart/dynamics/MeshShape.hpp +225 -0
  249. include/dart/dynamics/MetaSkeleton.hpp +1034 -0
  250. include/dart/dynamics/MimicDofProperties.hpp +62 -0
  251. include/dart/dynamics/MultiSphereConvexHullShape.hpp +111 -0
  252. include/dart/dynamics/MultiSphereShape.hpp +42 -0
  253. include/dart/dynamics/Node.hpp +273 -0
  254. include/dart/dynamics/NodeManagerJoiner.hpp +190 -0
  255. include/dart/dynamics/PlanarJoint.hpp +161 -0
  256. include/dart/dynamics/PlaneShape.hpp +105 -0
  257. include/dart/dynamics/PointCloudShape.hpp +186 -0
  258. include/dart/dynamics/PointMass.hpp +709 -0
  259. include/dart/dynamics/PrismaticJoint.hpp +120 -0
  260. include/dart/dynamics/PyramidShape.hpp +122 -0
  261. include/dart/dynamics/ReferentialSkeleton.hpp +550 -0
  262. include/dart/dynamics/RevoluteJoint.hpp +120 -0
  263. include/dart/dynamics/ScrewJoint.hpp +126 -0
  264. include/dart/dynamics/Shape.hpp +231 -0
  265. include/dart/dynamics/ShapeFrame.hpp +291 -0
  266. include/dart/dynamics/ShapeNode.hpp +134 -0
  267. include/dart/dynamics/SharedLibraryIkFast.hpp +147 -0
  268. include/dart/dynamics/SimpleFrame.hpp +247 -0
  269. include/dart/dynamics/Skeleton.hpp +1350 -0
  270. include/dart/dynamics/SmartPointer.hpp +185 -0
  271. include/dart/dynamics/SoftBodyNode.hpp +472 -0
  272. include/dart/dynamics/SoftMeshShape.hpp +100 -0
  273. include/dart/dynamics/SpecializedNodeManager.hpp +230 -0
  274. include/dart/dynamics/SphereShape.hpp +89 -0
  275. include/dart/dynamics/TemplatedJacobianNode.hpp +128 -0
  276. include/dart/dynamics/TranslationalJoint.hpp +105 -0
  277. include/dart/dynamics/TranslationalJoint2D.hpp +156 -0
  278. include/dart/dynamics/UniversalJoint.hpp +128 -0
  279. include/dart/dynamics/VoxelGridShape.hpp +171 -0
  280. include/dart/dynamics/WeldJoint.hpp +116 -0
  281. include/dart/dynamics/ZeroDofJoint.hpp +562 -0
  282. include/dart/dynamics/all.hpp +69 -0
  283. include/dart/dynamics/detail/BasicNodeManager.hpp +539 -0
  284. include/dart/dynamics/detail/BodyNode.hpp +344 -0
  285. include/dart/dynamics/detail/BodyNodeAspect.hpp +177 -0
  286. include/dart/dynamics/detail/BodyNodePtr.hpp +351 -0
  287. include/dart/dynamics/detail/CompositeNode.hpp +93 -0
  288. include/dart/dynamics/detail/DegreeOfFreedomPtr.hpp +338 -0
  289. include/dart/dynamics/detail/EndEffectorAspect.hpp +106 -0
  290. include/dart/dynamics/detail/EntityNode.hpp +81 -0
  291. include/dart/dynamics/detail/EntityNodeAspect.hpp +101 -0
  292. include/dart/dynamics/detail/EulerJointAspect.hpp +93 -0
  293. include/dart/dynamics/detail/FixedFrameAspect.hpp +58 -0
  294. include/dart/dynamics/detail/FixedJacobianNode.hpp +55 -0
  295. include/dart/dynamics/detail/GenericJoint.hpp +2471 -0
  296. include/dart/dynamics/detail/GenericJointAspect.hpp +353 -0
  297. include/dart/dynamics/detail/HeightmapShape-impl.hpp +243 -0
  298. include/dart/dynamics/detail/InverseKinematics.hpp +83 -0
  299. include/dart/dynamics/detail/InverseKinematicsPtr.hpp +341 -0
  300. include/dart/dynamics/detail/JointAspect.hpp +161 -0
  301. include/dart/dynamics/detail/JointPtr.hpp +293 -0
  302. include/dart/dynamics/detail/MarkerAspect.hpp +68 -0
  303. include/dart/dynamics/detail/MetaSkeleton-impl.hpp +151 -0
  304. include/dart/dynamics/detail/Node.hpp +532 -0
  305. include/dart/dynamics/detail/NodeManagerJoiner.hpp +184 -0
  306. include/dart/dynamics/detail/NodePtr.hpp +259 -0
  307. include/dart/dynamics/detail/PlanarJointAspect.hpp +136 -0
  308. include/dart/dynamics/detail/PrismaticJointAspect.hpp +85 -0
  309. include/dart/dynamics/detail/RevoluteJointAspect.hpp +86 -0
  310. include/dart/dynamics/detail/ScrewJointAspect.hpp +90 -0
  311. include/dart/dynamics/detail/ShapeFrameAspect.hpp +169 -0
  312. include/dart/dynamics/detail/ShapeNode.hpp +51 -0
  313. include/dart/dynamics/detail/Skeleton.hpp +92 -0
  314. include/dart/dynamics/detail/SkeletonAspect.hpp +181 -0
  315. include/dart/dynamics/detail/SoftBodyNodeAspect.hpp +132 -0
  316. include/dart/dynamics/detail/SpecializedNodeManager.hpp +324 -0
  317. include/dart/dynamics/detail/TemplatedJacobianNode.hpp +294 -0
  318. include/dart/dynamics/detail/TranslationalJoint2DAspect.hpp +140 -0
  319. include/dart/dynamics/detail/UniversalJointAspect.hpp +86 -0
  320. include/dart/dynamics/dynamics.hpp +14 -0
  321. include/dart/dynamics/ikfast.h +345 -0
  322. include/dart/external/convhull_3d/convhull_3d.h +1878 -0
  323. include/dart/external/convhull_3d/safe_convhull_3d.h +53 -0
  324. include/dart/external/odelcpsolver/common.h +418 -0
  325. include/dart/external/odelcpsolver/error.h +62 -0
  326. include/dart/external/odelcpsolver/lcp.h +75 -0
  327. include/dart/external/odelcpsolver/matrix.h +277 -0
  328. include/dart/external/odelcpsolver/misc.h +82 -0
  329. include/dart/external/odelcpsolver/odeconfig.h +110 -0
  330. include/dart/gui/osg/DefaultEventHandler.hpp +237 -0
  331. include/dart/gui/osg/DragAndDrop.hpp +360 -0
  332. include/dart/gui/osg/GridVisual.hpp +218 -0
  333. include/dart/gui/osg/ImGuiHandler.hpp +113 -0
  334. include/dart/gui/osg/ImGuiViewer.hpp +83 -0
  335. include/dart/gui/osg/ImGuiWidget.hpp +91 -0
  336. include/dart/gui/osg/IncludeImGui.hpp +75 -0
  337. include/dart/gui/osg/InteractiveFrame.hpp +170 -0
  338. include/dart/gui/osg/MouseEventHandler.hpp +76 -0
  339. include/dart/gui/osg/RealTimeWorldNode.hpp +126 -0
  340. include/dart/gui/osg/ShapeFrameNode.hpp +117 -0
  341. include/dart/gui/osg/SupportPolygonVisual.hpp +202 -0
  342. include/dart/gui/osg/TrackballManipulator.hpp +97 -0
  343. include/dart/gui/osg/Utils.hpp +120 -0
  344. include/dart/gui/osg/Viewer.hpp +427 -0
  345. include/dart/gui/osg/WorldNode.hpp +211 -0
  346. include/dart/gui/osg/all.hpp +19 -0
  347. include/dart/gui/osg/detail/CameraModeCallback.hpp +82 -0
  348. include/dart/gui/osg/detail/Utils-impl.hpp +160 -0
  349. include/dart/gui/osg/osg.hpp +14 -0
  350. include/dart/gui/osg/render/BoxShapeNode.hpp +74 -0
  351. include/dart/gui/osg/render/CapsuleShapeNode.hpp +75 -0
  352. include/dart/gui/osg/render/ConeShapeNode.hpp +74 -0
  353. include/dart/gui/osg/render/CylinderShapeNode.hpp +75 -0
  354. include/dart/gui/osg/render/EllipsoidShapeNode.hpp +76 -0
  355. include/dart/gui/osg/render/HeightmapShapeNode.hpp +485 -0
  356. include/dart/gui/osg/render/LineSegmentShapeNode.hpp +75 -0
  357. include/dart/gui/osg/render/MeshShapeNode.hpp +86 -0
  358. include/dart/gui/osg/render/MultiSphereShapeNode.hpp +76 -0
  359. include/dart/gui/osg/render/PlaneShapeNode.hpp +75 -0
  360. include/dart/gui/osg/render/PointCloudShapeNode.hpp +85 -0
  361. include/dart/gui/osg/render/PyramidShapeNode.hpp +75 -0
  362. include/dart/gui/osg/render/ShapeNode.hpp +126 -0
  363. include/dart/gui/osg/render/SoftMeshShapeNode.hpp +75 -0
  364. include/dart/gui/osg/render/SphereShapeNode.hpp +76 -0
  365. include/dart/gui/osg/render/VoxelGridShapeNode.hpp +83 -0
  366. include/dart/gui/osg/render/WarningShapeNode.hpp +64 -0
  367. include/dart/gui/osg/render/all.hpp +19 -0
  368. include/dart/gui/osg/render/render.hpp +14 -0
  369. include/dart/integration/EulerIntegrator.hpp +64 -0
  370. include/dart/integration/Integrator.hpp +104 -0
  371. include/dart/integration/RK4Integrator.hpp +68 -0
  372. include/dart/integration/SemiImplicitEulerIntegrator.hpp +64 -0
  373. include/dart/integration/all.hpp +6 -0
  374. include/dart/integration/integration.hpp +14 -0
  375. include/dart/lcpsolver/Lemke.hpp +54 -0
  376. include/dart/lcpsolver/ODELCPSolver.hpp +88 -0
  377. include/dart/lcpsolver/all.hpp +4 -0
  378. include/dart/lcpsolver/lcpsolver.hpp +14 -0
  379. include/dart/math/ConfigurationSpace.hpp +144 -0
  380. include/dart/math/Constants.hpp +79 -0
  381. include/dart/math/Geometry.hpp +659 -0
  382. include/dart/math/Helpers.hpp +481 -0
  383. include/dart/math/Icosphere.hpp +106 -0
  384. include/dart/math/MathTypes.hpp +100 -0
  385. include/dart/math/Mesh.hpp +108 -0
  386. include/dart/math/Random.hpp +225 -0
  387. include/dart/math/TriMesh.hpp +121 -0
  388. include/dart/math/all.hpp +11 -0
  389. include/dart/math/detail/ConfigurationSpace.hpp +235 -0
  390. include/dart/math/detail/Geometry-impl.hpp +126 -0
  391. include/dart/math/detail/Icosphere-impl.hpp +214 -0
  392. include/dart/math/detail/Mesh-impl.hpp +151 -0
  393. include/dart/math/detail/Random-impl.hpp +353 -0
  394. include/dart/math/detail/TriMesh-impl.hpp +202 -0
  395. include/dart/math/math.hpp +14 -0
  396. include/dart/optimizer/Function.hpp +203 -0
  397. include/dart/optimizer/GenericMultiObjectiveProblem.hpp +174 -0
  398. include/dart/optimizer/GradientDescentSolver.hpp +240 -0
  399. include/dart/optimizer/MultiObjectiveProblem.hpp +168 -0
  400. include/dart/optimizer/MultiObjectiveSolver.hpp +168 -0
  401. include/dart/optimizer/Population.hpp +108 -0
  402. include/dart/optimizer/Problem.hpp +191 -0
  403. include/dart/optimizer/Solver.hpp +182 -0
  404. include/dart/optimizer/all.hpp +10 -0
  405. include/dart/optimizer/ipopt/BackwardCompatibility.hpp +43 -0
  406. include/dart/optimizer/ipopt/IpoptSolver.hpp +223 -0
  407. include/dart/optimizer/ipopt/all.hpp +4 -0
  408. include/dart/optimizer/ipopt/ipopt.hpp +14 -0
  409. include/dart/optimizer/nlopt/NloptSolver.hpp +212 -0
  410. include/dart/optimizer/nlopt/all.hpp +3 -0
  411. include/dart/optimizer/nlopt/nlopt.hpp +14 -0
  412. include/dart/optimizer/optimizer.hpp +14 -0
  413. include/dart/simulation/Recording.hpp +118 -0
  414. include/dart/simulation/SmartPointer.hpp +46 -0
  415. include/dart/simulation/World.hpp +405 -0
  416. include/dart/simulation/all.hpp +5 -0
  417. include/dart/simulation/detail/World-impl.hpp +129 -0
  418. include/dart/simulation/simulation.hpp +14 -0
  419. include/dart/utils/C3D.hpp +107 -0
  420. include/dart/utils/CompositeResourceRetriever.hpp +97 -0
  421. include/dart/utils/DartResourceRetriever.hpp +104 -0
  422. include/dart/utils/FileInfoC3D.hpp +91 -0
  423. include/dart/utils/FileInfoDof.hpp +109 -0
  424. include/dart/utils/FileInfoWorld.hpp +75 -0
  425. include/dart/utils/PackageResourceRetriever.hpp +118 -0
  426. include/dart/utils/SkelParser.hpp +70 -0
  427. include/dart/utils/VskParser.hpp +108 -0
  428. include/dart/utils/XmlHelpers.hpp +243 -0
  429. include/dart/utils/all.hpp +14 -0
  430. include/dart/utils/detail/XmlHelpers-impl.hpp +213 -0
  431. include/dart/utils/mjcf/MjcfParser.hpp +80 -0
  432. include/dart/utils/mjcf/all.hpp +3 -0
  433. include/dart/utils/mjcf/mjcf.hpp +14 -0
  434. include/dart/utils/sdf/SdfParser.hpp +98 -0
  435. include/dart/utils/sdf/all.hpp +3 -0
  436. include/dart/utils/sdf/sdf.hpp +14 -0
  437. include/dart/utils/urdf/BackwardCompatibility.hpp +52 -0
  438. include/dart/utils/urdf/DartLoader.hpp +277 -0
  439. include/dart/utils/urdf/IncludeUrdf.hpp +47 -0
  440. include/dart/utils/urdf/URDFTypes.hpp +42 -0
  441. include/dart/utils/urdf/all.hpp +5 -0
  442. include/dart/utils/urdf/urdf.hpp +14 -0
  443. include/dart/utils/urdf/urdf_world_parser.hpp +83 -0
  444. include/dart/utils/utils.hpp +14 -0
  445. lib64/libdart-collision-bullet.a +0 -0
  446. lib64/libdart-collision-ode.a +0 -0
  447. lib64/libdart-external-odelcpsolver.a +0 -0
  448. lib64/libdart-gui-osg.a +0 -0
  449. lib64/libdart-optimizer-ipopt.a +0 -0
  450. lib64/libdart-optimizer-nlopt.a +0 -0
  451. lib64/libdart-utils-urdf.a +0 -0
  452. lib64/libdart-utils.a +0 -0
  453. lib64/libdart.a +0 -0
  454. lib64/pkgconfig/dart.pc +12 -0
  455. share/dart/cmake/DARTConfig.cmake +194 -0
  456. share/dart/cmake/DARTConfigVersion.cmake +65 -0
  457. share/dart/cmake/DARTFindBullet.cmake +96 -0
  458. share/dart/cmake/DARTFindEigen3.cmake +9 -0
  459. share/dart/cmake/DARTFindIPOPT.cmake +20 -0
  460. share/dart/cmake/DARTFindNLOPT.cmake +17 -0
  461. share/dart/cmake/DARTFindODE.cmake +23 -0
  462. share/dart/cmake/DARTFindOpenSceneGraph.cmake +69 -0
  463. share/dart/cmake/DARTFindassimp.cmake +18 -0
  464. share/dart/cmake/DARTFindfcl.cmake +23 -0
  465. share/dart/cmake/DARTFindfmt.cmake +9 -0
  466. share/dart/cmake/DARTFindimgui.cmake +21 -0
  467. share/dart/cmake/DARTFindoctomap.cmake +17 -0
  468. share/dart/cmake/DARTFindspdlog.cmake +9 -0
  469. share/dart/cmake/DARTFindtinyxml2.cmake +27 -0
  470. share/dart/cmake/DARTFindurdfdom.cmake +29 -0
  471. share/dart/cmake/FindIPOPT.cmake +54 -0
  472. share/dart/cmake/FindNLOPT.cmake +54 -0
  473. share/dart/cmake/FindODE.cmake +54 -0
  474. share/dart/cmake/Findassimp.cmake +56 -0
  475. share/dart/cmake/Findfcl.cmake +67 -0
  476. share/dart/cmake/Findimgui.cmake +70 -0
  477. share/dart/cmake/Findtinyxml2.cmake +54 -0
  478. share/dart/cmake/dart_collision-bulletComponent.cmake +19 -0
  479. share/dart/cmake/dart_collision-bulletTargets-release.cmake +19 -0
  480. share/dart/cmake/dart_collision-bulletTargets.cmake +122 -0
  481. share/dart/cmake/dart_collision-odeComponent.cmake +19 -0
  482. share/dart/cmake/dart_collision-odeTargets-release.cmake +19 -0
  483. share/dart/cmake/dart_collision-odeTargets.cmake +122 -0
  484. share/dart/cmake/dart_dartComponent.cmake +19 -0
  485. share/dart/cmake/dart_dartTargets-release.cmake +19 -0
  486. share/dart/cmake/dart_dartTargets.cmake +125 -0
  487. share/dart/cmake/dart_external-odelcpsolverComponent.cmake +19 -0
  488. share/dart/cmake/dart_external-odelcpsolverTargets-release.cmake +19 -0
  489. share/dart/cmake/dart_external-odelcpsolverTargets.cmake +106 -0
  490. share/dart/cmake/dart_gui-osgComponent.cmake +19 -0
  491. share/dart/cmake/dart_gui-osgTargets-release.cmake +19 -0
  492. share/dart/cmake/dart_gui-osgTargets.cmake +122 -0
  493. share/dart/cmake/dart_optimizer-ipoptComponent.cmake +19 -0
  494. share/dart/cmake/dart_optimizer-ipoptTargets-release.cmake +19 -0
  495. share/dart/cmake/dart_optimizer-ipoptTargets.cmake +123 -0
  496. share/dart/cmake/dart_optimizer-nloptComponent.cmake +19 -0
  497. share/dart/cmake/dart_optimizer-nloptTargets-release.cmake +19 -0
  498. share/dart/cmake/dart_optimizer-nloptTargets.cmake +123 -0
  499. share/dart/cmake/dart_utils-urdfComponent.cmake +19 -0
  500. share/dart/cmake/dart_utils-urdfTargets-release.cmake +19 -0
  501. share/dart/cmake/dart_utils-urdfTargets.cmake +122 -0
  502. share/dart/cmake/dart_utilsComponent.cmake +19 -0
  503. share/dart/cmake/dart_utilsTargets-release.cmake +19 -0
  504. share/dart/cmake/dart_utilsTargets.cmake +122 -0
  505. share/dart/package.xml +42 -0
  506. share/doc/dart/data/c3d/nick_freeform_001.c3d +0 -0
  507. share/doc/dart/data/c3d/squat.c3d +0 -0
  508. share/doc/dart/data/dof/RHand.dof +205 -0
  509. share/doc/dart/data/dof/fixedHand.dof +205 -0
  510. share/doc/dart/data/dof/init_Tpose.dof +240 -0
  511. share/doc/dart/data/dof/same.dof +1003 -0
  512. share/doc/dart/data/dof/simMotion.dof +1817 -0
  513. share/doc/dart/data/dof/simMotion1.dof +1355 -0
  514. share/doc/dart/data/etc/fort.4 +43 -0
  515. share/doc/dart/data/humanJointLimits/neuralnets/net-larm +0 -0
  516. share/doc/dart/data/humanJointLimits/neuralnets/net-lleg +0 -0
  517. share/doc/dart/data/mjcf/openai/LICENSE.md +36 -0
  518. share/doc/dart/data/mjcf/openai/ant.xml +81 -0
  519. share/doc/dart/data/mjcf/openai/half_cheetah.xml +96 -0
  520. share/doc/dart/data/mjcf/openai/hopper.xml +50 -0
  521. share/doc/dart/data/mjcf/openai/humanoid.xml +121 -0
  522. share/doc/dart/data/mjcf/openai/humanoidstandup.xml +121 -0
  523. share/doc/dart/data/mjcf/openai/inverted_double_pendulum.xml +47 -0
  524. share/doc/dart/data/mjcf/openai/inverted_pendulum.xml +27 -0
  525. share/doc/dart/data/mjcf/openai/point.xml +31 -0
  526. share/doc/dart/data/mjcf/openai/pusher.xml +91 -0
  527. share/doc/dart/data/mjcf/openai/reacher.xml +39 -0
  528. share/doc/dart/data/mjcf/openai/robotics/fetch/pick_and_place.xml +35 -0
  529. share/doc/dart/data/mjcf/openai/robotics/fetch/push.xml +32 -0
  530. share/doc/dart/data/mjcf/openai/robotics/fetch/reach.xml +26 -0
  531. share/doc/dart/data/mjcf/openai/robotics/fetch/robot.xml +123 -0
  532. share/doc/dart/data/mjcf/openai/robotics/fetch/shared.xml +66 -0
  533. share/doc/dart/data/mjcf/openai/robotics/fetch/slide.xml +32 -0
  534. share/doc/dart/data/mjcf/openai/robotics/stls/.get +0 -0
  535. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/base_link_collision.stl +0 -0
  536. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/bellows_link_collision.stl +0 -0
  537. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/elbow_flex_link_collision.stl +0 -0
  538. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/estop_link.stl +0 -0
  539. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/forearm_roll_link_collision.stl +0 -0
  540. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/gripper_link.stl +0 -0
  541. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/head_pan_link_collision.stl +0 -0
  542. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/head_tilt_link_collision.stl +0 -0
  543. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/l_wheel_link_collision.stl +0 -0
  544. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/laser_link.stl +0 -0
  545. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/r_wheel_link_collision.stl +0 -0
  546. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/shoulder_lift_link_collision.stl +0 -0
  547. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/shoulder_pan_link_collision.stl +0 -0
  548. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/torso_fixed_link.stl +0 -0
  549. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/torso_lift_link_collision.stl +0 -0
  550. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/upperarm_roll_link_collision.stl +0 -0
  551. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/wrist_flex_link_collision.stl +0 -0
  552. share/doc/dart/data/mjcf/openai/robotics/stls/fetch/wrist_roll_link_collision.stl +0 -0
  553. share/doc/dart/data/mjcf/openai/robotics/textures/block.png +0 -0
  554. share/doc/dart/data/mjcf/openai/robotics/textures/block_hidden.png +0 -0
  555. share/doc/dart/data/mjcf/openai/striker.xml +101 -0
  556. share/doc/dart/data/mjcf/openai/swimmer.xml +39 -0
  557. share/doc/dart/data/mjcf/openai/thrower.xml +127 -0
  558. share/doc/dart/data/mjcf/openai/walker2d.xml +62 -0
  559. share/doc/dart/data/mjcf/test/default.xml +17 -0
  560. share/doc/dart/data/mjcf/test/include_default.xml +8 -0
  561. share/doc/dart/data/mjcf/test/include_main.xml +12 -0
  562. share/doc/dart/data/obj/Body_Hip.obj +22830 -0
  563. share/doc/dart/data/obj/BoxSmall.obj +23 -0
  564. share/doc/dart/data/obj/foot.obj +10970 -0
  565. share/doc/dart/data/other/torus1.path +11991 -0
  566. share/doc/dart/data/other/torus1.tris +5329 -0
  567. share/doc/dart/data/other/torus2.path +11991 -0
  568. share/doc/dart/data/other/torus2.tris +12961 -0
  569. share/doc/dart/data/screencap/.KEEP +0 -0
  570. share/doc/dart/data/sdf/atlas/atlas_v3.urdf +914 -0
  571. share/doc/dart/data/sdf/atlas/atlas_v3_no_head.sdf +1541 -0
  572. share/doc/dart/data/sdf/atlas/atlas_v3_no_head.urdf +914 -0
  573. share/doc/dart/data/sdf/atlas/atlas_v3_no_head_soft_feet.sdf +1567 -0
  574. share/doc/dart/data/sdf/atlas/ground.urdf +28 -0
  575. share/doc/dart/data/sdf/atlas/head.dae +8607 -0
  576. share/doc/dart/data/sdf/atlas/head.stl +0 -0
  577. share/doc/dart/data/sdf/atlas/head_camera.dae +2326 -0
  578. share/doc/dart/data/sdf/atlas/head_camera.stl +0 -0
  579. share/doc/dart/data/sdf/atlas/l_clav.dae +1278 -0
  580. share/doc/dart/data/sdf/atlas/l_clav.stl +0 -0
  581. share/doc/dart/data/sdf/atlas/l_farm.dae +1204 -0
  582. share/doc/dart/data/sdf/atlas/l_farm.stl +0 -0
  583. share/doc/dart/data/sdf/atlas/l_foot.dae +1330 -0
  584. share/doc/dart/data/sdf/atlas/l_foot.stl +0 -0
  585. share/doc/dart/data/sdf/atlas/l_hand.dae +964 -0
  586. share/doc/dart/data/sdf/atlas/l_hand.stl +0 -0
  587. share/doc/dart/data/sdf/atlas/l_larm.dae +1378 -0
  588. share/doc/dart/data/sdf/atlas/l_larm.stl +0 -0
  589. share/doc/dart/data/sdf/atlas/l_lglut.dae +897 -0
  590. share/doc/dart/data/sdf/atlas/l_lglut.stl +0 -0
  591. share/doc/dart/data/sdf/atlas/l_lleg.dae +6660 -0
  592. share/doc/dart/data/sdf/atlas/l_lleg.stl +0 -0
  593. share/doc/dart/data/sdf/atlas/l_scap.dae +1531 -0
  594. share/doc/dart/data/sdf/atlas/l_scap.stl +0 -0
  595. share/doc/dart/data/sdf/atlas/l_talus.dae +374 -0
  596. share/doc/dart/data/sdf/atlas/l_talus.stl +0 -0
  597. share/doc/dart/data/sdf/atlas/l_uarm.dae +1204 -0
  598. share/doc/dart/data/sdf/atlas/l_uarm.stl +0 -0
  599. share/doc/dart/data/sdf/atlas/l_uglut.dae +398 -0
  600. share/doc/dart/data/sdf/atlas/l_uglut.stl +0 -0
  601. share/doc/dart/data/sdf/atlas/l_uleg.dae +9087 -0
  602. share/doc/dart/data/sdf/atlas/l_uleg.stl +0 -0
  603. share/doc/dart/data/sdf/atlas/ltorso.dae +614 -0
  604. share/doc/dart/data/sdf/atlas/ltorso.stl +0 -0
  605. share/doc/dart/data/sdf/atlas/mtorso.dae +266 -0
  606. share/doc/dart/data/sdf/atlas/mtorso.stl +0 -0
  607. share/doc/dart/data/sdf/atlas/pelvis.dae +8727 -0
  608. share/doc/dart/data/sdf/atlas/pelvis.stl +0 -0
  609. share/doc/dart/data/sdf/atlas/r_clav.dae +1278 -0
  610. share/doc/dart/data/sdf/atlas/r_clav.stl +0 -0
  611. share/doc/dart/data/sdf/atlas/r_farm.dae +1204 -0
  612. share/doc/dart/data/sdf/atlas/r_farm.stl +0 -0
  613. share/doc/dart/data/sdf/atlas/r_foot.dae +1330 -0
  614. share/doc/dart/data/sdf/atlas/r_foot.stl +0 -0
  615. share/doc/dart/data/sdf/atlas/r_hand.dae +904 -0
  616. share/doc/dart/data/sdf/atlas/r_hand.stl +0 -0
  617. share/doc/dart/data/sdf/atlas/r_larm.dae +1378 -0
  618. share/doc/dart/data/sdf/atlas/r_larm.stl +0 -0
  619. share/doc/dart/data/sdf/atlas/r_lglut.dae +897 -0
  620. share/doc/dart/data/sdf/atlas/r_lglut.stl +0 -0
  621. share/doc/dart/data/sdf/atlas/r_lleg.dae +6661 -0
  622. share/doc/dart/data/sdf/atlas/r_lleg.stl +0 -0
  623. share/doc/dart/data/sdf/atlas/r_scap.dae +1531 -0
  624. share/doc/dart/data/sdf/atlas/r_scap.stl +0 -0
  625. share/doc/dart/data/sdf/atlas/r_talus.dae +374 -0
  626. share/doc/dart/data/sdf/atlas/r_talus.stl +0 -0
  627. share/doc/dart/data/sdf/atlas/r_uarm.dae +1144 -0
  628. share/doc/dart/data/sdf/atlas/r_uarm.stl +0 -0
  629. share/doc/dart/data/sdf/atlas/r_uglut.dae +398 -0
  630. share/doc/dart/data/sdf/atlas/r_uglut.stl +0 -0
  631. share/doc/dart/data/sdf/atlas/r_uleg.dae +9087 -0
  632. share/doc/dart/data/sdf/atlas/r_uleg.stl +0 -0
  633. share/doc/dart/data/sdf/atlas/utorso.dae +28342 -0
  634. share/doc/dart/data/sdf/atlas/utorso.stl +0 -0
  635. share/doc/dart/data/sdf/atlas/utorso_mod.dae +16508 -0
  636. share/doc/dart/data/sdf/atlas/utorso_mod.stl +0 -0
  637. share/doc/dart/data/sdf/atlas/utorso_pack.dae +8521 -0
  638. share/doc/dart/data/sdf/atlas/utorso_pack.stl +0 -0
  639. share/doc/dart/data/sdf/benchmark.world +2510 -0
  640. share/doc/dart/data/sdf/double_pendulum.world +168 -0
  641. share/doc/dart/data/sdf/double_pendulum_with_base.world +263 -0
  642. share/doc/dart/data/sdf/empty.world +13 -0
  643. share/doc/dart/data/sdf/ground.world +48 -0
  644. share/doc/dart/data/sdf/materials/textures/atlas_cage_and_camera_diffuse_flat.jpg +0 -0
  645. share/doc/dart/data/sdf/materials/textures/drc_extremities_diffuse.jpg +0 -0
  646. share/doc/dart/data/sdf/materials/textures/drc_labels_1.jpg +0 -0
  647. share/doc/dart/data/sdf/materials/textures/drc_torso_head_diffuse.jpg +0 -0
  648. share/doc/dart/data/sdf/materials/textures/extremities_diffuse_unplugged.jpg +0 -0
  649. share/doc/dart/data/sdf/materials/textures/right_leg_diffuse_unplugged.jpg +0 -0
  650. share/doc/dart/data/sdf/materials/textures/torso_diffuse_unplugged.jpg +0 -0
  651. share/doc/dart/data/sdf/quad.sdf +867 -0
  652. share/doc/dart/data/sdf/test/force_torque_test.world +173 -0
  653. share/doc/dart/data/sdf/test/force_torque_test2.world +214 -0
  654. share/doc/dart/data/sdf/test/issue1193_revolute_test.sdf +70 -0
  655. share/doc/dart/data/sdf/test/issue1193_revolute_with_offset_test.sdf +70 -0
  656. share/doc/dart/data/sdf/test/issue1624_cubes.sdf +5037 -0
  657. share/doc/dart/data/sdf/test/single_bodynode_skeleton.world +55 -0
  658. share/doc/dart/data/sdf/test/test_issue1583.model +45 -0
  659. share/doc/dart/data/sdf/test/test_issue1596.model +182 -0
  660. share/doc/dart/data/sdf/test/test_skeleton_joint.world +278 -0
  661. share/doc/dart/data/skel/biped.skel +850 -0
  662. share/doc/dart/data/skel/bullet_collision.skel +174 -0
  663. share/doc/dart/data/skel/chain.skel +212 -0
  664. share/doc/dart/data/skel/cube.skel +71 -0
  665. share/doc/dart/data/skel/cubes.skel +137 -0
  666. share/doc/dart/data/skel/empty.skel +10 -0
  667. share/doc/dart/data/skel/freeChain.skel +212 -0
  668. share/doc/dart/data/skel/fullbody1.skel +1177 -0
  669. share/doc/dart/data/skel/ground.skel +31 -0
  670. share/doc/dart/data/skel/joint_limit.skel +123 -0
  671. share/doc/dart/data/skel/kima/abdomen.dae +18933 -0
  672. share/doc/dart/data/skel/kima/head.dae +34634 -0
  673. share/doc/dart/data/skel/kima/kima_human_edited.skel +933 -0
  674. share/doc/dart/data/skel/kima/kima_human_left_arm.skel +323 -0
  675. share/doc/dart/data/skel/kima/kima_human_left_leg.skel +327 -0
  676. share/doc/dart/data/skel/kima/l-clavicle.dae +20111 -0
  677. share/doc/dart/data/skel/kima/l-foot.dae +28208 -0
  678. share/doc/dart/data/skel/kima/pelvis.dae +35919 -0
  679. share/doc/dart/data/skel/kima/r-clavicle.dae +20090 -0
  680. share/doc/dart/data/skel/kima/thorax.dae +47337 -0
  681. share/doc/dart/data/skel/mesh_collision.skel +137 -0
  682. share/doc/dart/data/skel/shapes.skel +378 -0
  683. share/doc/dart/data/skel/skateboard.skel +222 -0
  684. share/doc/dart/data/skel/softBodies.skel +284 -0
  685. share/doc/dart/data/skel/soft_cubes.skel +134 -0
  686. share/doc/dart/data/skel/soft_open_chain.skel +241 -0
  687. share/doc/dart/data/skel/sphere.skel +74 -0
  688. share/doc/dart/data/skel/spheres.skel +118 -0
  689. share/doc/dart/data/skel/test/SimplePendulum.skel +141 -0
  690. share/doc/dart/data/skel/test/ball_joints.skel +49 -0
  691. share/doc/dart/data/skel/test/box_stacking.skel +346 -0
  692. share/doc/dart/data/skel/test/boxes.skel +52 -0
  693. share/doc/dart/data/skel/test/chainwhipa.skel +193 -0
  694. share/doc/dart/data/skel/test/collision_of_prescribed_joints_test.skel +249 -0
  695. share/doc/dart/data/skel/test/dof_attribute_test.skel +206 -0
  696. share/doc/dart/data/skel/test/double_pendulum.skel +76 -0
  697. share/doc/dart/data/skel/test/double_pendulum_ball_joint.skel +76 -0
  698. share/doc/dart/data/skel/test/double_pendulum_euler_joint.skel +78 -0
  699. share/doc/dart/data/skel/test/double_pendulum_with_base.skel +1390 -0
  700. share/doc/dart/data/skel/test/drop.skel +116 -0
  701. share/doc/dart/data/skel/test/drop_BENCHMARK.skel +10 -0
  702. share/doc/dart/data/skel/test/drop_unrotated_box.skel +156 -0
  703. share/doc/dart/data/skel/test/empty.skel +10 -0
  704. share/doc/dart/data/skel/test/file_info_world_test.skel +1177 -0
  705. share/doc/dart/data/skel/test/free_joints.skel +49 -0
  706. share/doc/dart/data/skel/test/gazebo/drop_test.skel +161 -0
  707. share/doc/dart/data/skel/test/gazebo/force_torque_test.skel +138 -0
  708. share/doc/dart/data/skel/test/gazebo/force_torque_test2.skel +171 -0
  709. share/doc/dart/data/skel/test/hybrid_dynamics_test.skel +172 -0
  710. share/doc/dart/data/skel/test/joint_actuator_type_test.skel +185 -0
  711. share/doc/dart/data/skel/test/joint_dynamics_elements_test.skel +103 -0
  712. share/doc/dart/data/skel/test/joint_friction_test.skel +80 -0
  713. share/doc/dart/data/skel/test/joint_limit_test.skel +80 -0
  714. share/doc/dart/data/skel/test/planar_joint.skel +167 -0
  715. share/doc/dart/data/skel/test/serial_chain_BENCHMARK.skel +10 -0
  716. share/doc/dart/data/skel/test/serial_chain_ball_joint.skel +212 -0
  717. share/doc/dart/data/skel/test/serial_chain_ball_joint_20.skel +412 -0
  718. share/doc/dart/data/skel/test/serial_chain_ball_joint_40.skel +812 -0
  719. share/doc/dart/data/skel/test/serial_chain_eulerxyz_joint.skel +224 -0
  720. share/doc/dart/data/skel/test/serial_chain_revolute_joint.skel +244 -0
  721. share/doc/dart/data/skel/test/simple_tree_structure.skel +108 -0
  722. share/doc/dart/data/skel/test/simple_tree_structure_ball_joint.skel +108 -0
  723. share/doc/dart/data/skel/test/simple_tree_structure_euler_joint.skel +111 -0
  724. share/doc/dart/data/skel/test/single_pendulum.skel +55 -0
  725. share/doc/dart/data/skel/test/single_pendulum_ball_joint.skel +55 -0
  726. share/doc/dart/data/skel/test/single_pendulum_euler_joint.skel +56 -0
  727. share/doc/dart/data/skel/test/spheres.skel +118 -0
  728. share/doc/dart/data/skel/test/test_adaptive_deformable.skel +88 -0
  729. share/doc/dart/data/skel/test/test_articulated_bodies.skel +112 -0
  730. share/doc/dart/data/skel/test/test_articulated_bodies_10bodies.skel +401 -0
  731. share/doc/dart/data/skel/test/test_double_pendulum.skel +105 -0
  732. share/doc/dart/data/skel/test/test_drop_box.skel +87 -0
  733. share/doc/dart/data/skel/test/test_drop_box_offset.skel +87 -0
  734. share/doc/dart/data/skel/test/test_drop_low_stiffness.skel +86 -0
  735. share/doc/dart/data/skel/test/test_drop_sphere.skel +86 -0
  736. share/doc/dart/data/skel/test/test_shapes.skel +324 -0
  737. share/doc/dart/data/skel/test/test_single_body.skel +55 -0
  738. share/doc/dart/data/skel/test/test_single_pendulum.skel +55 -0
  739. share/doc/dart/data/skel/test/translational_joints.skel +49 -0
  740. share/doc/dart/data/skel/test/tree_structure.skel +428 -0
  741. share/doc/dart/data/skel/test/tree_structure_ball_joint.skel +441 -0
  742. share/doc/dart/data/skel/test/tree_structure_euler_joint.skel +441 -0
  743. share/doc/dart/data/skel/two_cubes.skel +118 -0
  744. share/doc/dart/data/skel/vehicle.skel +322 -0
  745. share/doc/dart/data/test/hello_world.txt +1 -0
  746. share/doc/dart/data/urdf/KR5/KR5 sixx R650.urdf +397 -0
  747. share/doc/dart/data/urdf/KR5/ground.urdf +28 -0
  748. share/doc/dart/data/urdf/KR5/meshes/base_link.STL +0 -0
  749. share/doc/dart/data/urdf/KR5/meshes/bicep.STL +0 -0
  750. share/doc/dart/data/urdf/KR5/meshes/elbow.STL +0 -0
  751. share/doc/dart/data/urdf/KR5/meshes/forearm.STL +0 -0
  752. share/doc/dart/data/urdf/KR5/meshes/palm.STL +0 -0
  753. share/doc/dart/data/urdf/KR5/meshes/shoulder.STL +0 -0
  754. share/doc/dart/data/urdf/KR5/meshes/wrist.STL +0 -0
  755. share/doc/dart/data/urdf/drchubo/CMakeLists.txt +5 -0
  756. share/doc/dart/data/urdf/drchubo/drchubo.urdf +1508 -0
  757. share/doc/dart/data/urdf/drchubo/meshes/convhull_LAP_merged.stl +0 -0
  758. share/doc/dart/data/urdf/drchubo/meshes/convhull_LAR_merged.stl +0 -0
  759. share/doc/dart/data/urdf/drchubo/meshes/convhull_LEP_merged.stl +0 -0
  760. share/doc/dart/data/urdf/drchubo/meshes/convhull_LF1.stl +0 -0
  761. share/doc/dart/data/urdf/drchubo/meshes/convhull_LF2.stl +0 -0
  762. share/doc/dart/data/urdf/drchubo/meshes/convhull_LF3.stl +0 -0
  763. share/doc/dart/data/urdf/drchubo/meshes/convhull_LHP_merged.stl +0 -0
  764. share/doc/dart/data/urdf/drchubo/meshes/convhull_LHR_merged.stl +0 -0
  765. share/doc/dart/data/urdf/drchubo/meshes/convhull_LHY_merged.stl +0 -0
  766. share/doc/dart/data/urdf/drchubo/meshes/convhull_LKP_merged.stl +0 -0
  767. share/doc/dart/data/urdf/drchubo/meshes/convhull_LSP_merged.stl +0 -0
  768. share/doc/dart/data/urdf/drchubo/meshes/convhull_LSR_merged.stl +0 -0
  769. share/doc/dart/data/urdf/drchubo/meshes/convhull_LSY_merged.stl +0 -0
  770. share/doc/dart/data/urdf/drchubo/meshes/convhull_LWP_merged.stl +0 -0
  771. share/doc/dart/data/urdf/drchubo/meshes/convhull_LWR_merged.stl +0 -0
  772. share/doc/dart/data/urdf/drchubo/meshes/convhull_LWY_merged.stl +0 -0
  773. share/doc/dart/data/urdf/drchubo/meshes/convhull_NK1_merged.stl +0 -0
  774. share/doc/dart/data/urdf/drchubo/meshes/convhull_NK2.stl +0 -0
  775. share/doc/dart/data/urdf/drchubo/meshes/convhull_NKY_merged.stl +0 -0
  776. share/doc/dart/data/urdf/drchubo/meshes/convhull_RAP_merged.stl +0 -0
  777. share/doc/dart/data/urdf/drchubo/meshes/convhull_RAR_merged.stl +0 -0
  778. share/doc/dart/data/urdf/drchubo/meshes/convhull_REP_merged.stl +0 -0
  779. share/doc/dart/data/urdf/drchubo/meshes/convhull_RF1.stl +0 -0
  780. share/doc/dart/data/urdf/drchubo/meshes/convhull_RF2.stl +0 -0
  781. share/doc/dart/data/urdf/drchubo/meshes/convhull_RF3.stl +0 -0
  782. share/doc/dart/data/urdf/drchubo/meshes/convhull_RHP_merged.stl +0 -0
  783. share/doc/dart/data/urdf/drchubo/meshes/convhull_RHR_merged.stl +0 -0
  784. share/doc/dart/data/urdf/drchubo/meshes/convhull_RHY_merged.stl +0 -0
  785. share/doc/dart/data/urdf/drchubo/meshes/convhull_RKP_merged.stl +0 -0
  786. share/doc/dart/data/urdf/drchubo/meshes/convhull_RSP_merged.stl +0 -0
  787. share/doc/dart/data/urdf/drchubo/meshes/convhull_RSR_merged.stl +0 -0
  788. share/doc/dart/data/urdf/drchubo/meshes/convhull_RSY_merged.stl +0 -0
  789. share/doc/dart/data/urdf/drchubo/meshes/convhull_RWP_merged.stl +0 -0
  790. share/doc/dart/data/urdf/drchubo/meshes/convhull_RWR_merged.stl +0 -0
  791. share/doc/dart/data/urdf/drchubo/meshes/convhull_RWY_merged.stl +0 -0
  792. share/doc/dart/data/urdf/drchubo/meshes/convhull_TSY_merged.stl +0 -0
  793. share/doc/dart/data/urdf/drchubo/meshes/convhull_Torso_merged.stl +0 -0
  794. share/doc/dart/data/urdf/drchubo/package.xml +11 -0
  795. share/doc/dart/data/urdf/test/invalid.urdf +1 -0
  796. share/doc/dart/data/urdf/test/invalid_mesh.stl +1 -0
  797. share/doc/dart/data/urdf/test/invalid_mesh.urdf +10 -0
  798. share/doc/dart/data/urdf/test/issue838.urdf +86 -0
  799. share/doc/dart/data/urdf/test/joint_properties.urdf +60 -0
  800. share/doc/dart/data/urdf/test/missing_mesh.urdf +10 -0
  801. share/doc/dart/data/urdf/test/missing_package.urdf +10 -0
  802. share/doc/dart/data/urdf/test/primitive_geometry.urdf +12 -0
  803. share/doc/dart/data/urdf/test/testWorld.urdf +9 -0
  804. share/doc/dart/data/urdf/wam/meshes/images/base_gray_128x.jpg +0 -0
  805. share/doc/dart/data/urdf/wam/meshes/images/forearm_256x.jpg +0 -0
  806. share/doc/dart/data/urdf/wam/meshes/images/lpu_128x.jpg +0 -0
  807. share/doc/dart/data/urdf/wam/meshes/images/shoulder_256x.jpg +0 -0
  808. share/doc/dart/data/urdf/wam/meshes/images/upperarm_128x.jpg +0 -0
  809. share/doc/dart/data/urdf/wam/meshes/images/wrist_yaw_128x.jpg +0 -0
  810. share/doc/dart/data/urdf/wam/meshes/wam/wam1.STL +0 -0
  811. share/doc/dart/data/urdf/wam/meshes/wam/wam1.dae +187 -0
  812. share/doc/dart/data/urdf/wam/meshes/wam/wam1_collision.STL +0 -0
  813. share/doc/dart/data/urdf/wam/meshes/wam/wam2.STL +0 -0
  814. share/doc/dart/data/urdf/wam/meshes/wam/wam2.dae +187 -0
  815. share/doc/dart/data/urdf/wam/meshes/wam/wam2_collision.STL +0 -0
  816. share/doc/dart/data/urdf/wam/meshes/wam/wam3.STL +0 -0
  817. share/doc/dart/data/urdf/wam/meshes/wam/wam3.dae +187 -0
  818. share/doc/dart/data/urdf/wam/meshes/wam/wam3_collision.STL +0 -0
  819. share/doc/dart/data/urdf/wam/meshes/wam/wam4.STL +0 -0
  820. share/doc/dart/data/urdf/wam/meshes/wam/wam4.dae +187 -0
  821. share/doc/dart/data/urdf/wam/meshes/wam/wam4_collision.STL +0 -0
  822. share/doc/dart/data/urdf/wam/meshes/wam/wam5.STL +0 -0
  823. share/doc/dart/data/urdf/wam/meshes/wam/wam5.dae +187 -0
  824. share/doc/dart/data/urdf/wam/meshes/wam/wam5_collision.STL +0 -0
  825. share/doc/dart/data/urdf/wam/meshes/wam/wam6.STL +0 -0
  826. share/doc/dart/data/urdf/wam/meshes/wam/wam6.dae +187 -0
  827. share/doc/dart/data/urdf/wam/meshes/wam/wam6_collision.STL +0 -0
  828. share/doc/dart/data/urdf/wam/meshes/wam/wam7.STL +0 -0
  829. share/doc/dart/data/urdf/wam/meshes/wam/wam7.dae +137 -0
  830. share/doc/dart/data/urdf/wam/meshes/wam/wam7_collision.STL +0 -0
  831. share/doc/dart/data/urdf/wam/meshes/wam/wam_base.STL +0 -0
  832. share/doc/dart/data/urdf/wam/meshes/wam/wam_base.dae +103 -0
  833. share/doc/dart/data/urdf/wam/meshes/wam/wam_base_collision.STL +0 -0
  834. share/doc/dart/data/urdf/wam/wam.urdf +230 -0
  835. share/doc/dart/data/vsk/Nick01.vsk +398 -0
  836. share/doc/dart/data/vsk/SehoonVSK3.vsk +398 -0
  837. share/doc/dart/data/vsk/Yuting.vsk +398 -0
  838. share/doc/dart/data/vsk/test/empty.vsk +3 -0
  839. share/doc/dart/examples/CMakeLists.txt +44 -0
  840. share/doc/dart/examples/README.md +33 -0
  841. share/doc/dart/examples/add_delete_skels/CMakeLists.txt +19 -0
  842. share/doc/dart/examples/add_delete_skels/main.cpp +165 -0
  843. share/doc/dart/examples/atlas_puppet/CMakeLists.txt +19 -0
  844. share/doc/dart/examples/atlas_puppet/README.md +20 -0
  845. share/doc/dart/examples/atlas_puppet/main.cpp +930 -0
  846. share/doc/dart/examples/atlas_simbicon/AtlasSimbiconEventHandler.cpp +71 -0
  847. share/doc/dart/examples/atlas_simbicon/AtlasSimbiconEventHandler.hpp +56 -0
  848. share/doc/dart/examples/atlas_simbicon/AtlasSimbiconWidget.cpp +187 -0
  849. share/doc/dart/examples/atlas_simbicon/AtlasSimbiconWidget.hpp +85 -0
  850. share/doc/dart/examples/atlas_simbicon/AtlasSimbiconWorldNode.cpp +134 -0
  851. share/doc/dart/examples/atlas_simbicon/AtlasSimbiconWorldNode.hpp +75 -0
  852. share/doc/dart/examples/atlas_simbicon/CMakeLists.txt +19 -0
  853. share/doc/dart/examples/atlas_simbicon/Controller.cpp +996 -0
  854. share/doc/dart/examples/atlas_simbicon/Controller.hpp +203 -0
  855. share/doc/dart/examples/atlas_simbicon/README.md +20 -0
  856. share/doc/dart/examples/atlas_simbicon/State.cpp +674 -0
  857. share/doc/dart/examples/atlas_simbicon/State.hpp +336 -0
  858. share/doc/dart/examples/atlas_simbicon/StateMachine.cpp +222 -0
  859. share/doc/dart/examples/atlas_simbicon/StateMachine.hpp +134 -0
  860. share/doc/dart/examples/atlas_simbicon/TerminalCondition.cpp +111 -0
  861. share/doc/dart/examples/atlas_simbicon/TerminalCondition.hpp +102 -0
  862. share/doc/dart/examples/atlas_simbicon/main.cpp +102 -0
  863. share/doc/dart/examples/biped_stand/CMakeLists.txt +19 -0
  864. share/doc/dart/examples/biped_stand/README.md +20 -0
  865. share/doc/dart/examples/biped_stand/main.cpp +287 -0
  866. share/doc/dart/examples/box_stacking/CMakeLists.txt +19 -0
  867. share/doc/dart/examples/box_stacking/README.md +20 -0
  868. share/doc/dart/examples/box_stacking/main.cpp +417 -0
  869. share/doc/dart/examples/boxes/CMakeLists.txt +19 -0
  870. share/doc/dart/examples/boxes/README.md +20 -0
  871. share/doc/dart/examples/boxes/main.cpp +157 -0
  872. share/doc/dart/examples/drag_and_drop/CMakeLists.txt +19 -0
  873. share/doc/dart/examples/drag_and_drop/README.md +20 -0
  874. share/doc/dart/examples/drag_and_drop/main.cpp +101 -0
  875. share/doc/dart/examples/empty/CMakeLists.txt +19 -0
  876. share/doc/dart/examples/empty/README.md +20 -0
  877. share/doc/dart/examples/empty/main.cpp +164 -0
  878. share/doc/dart/examples/fetch/CMakeLists.txt +19 -0
  879. share/doc/dart/examples/fetch/README.md +20 -0
  880. share/doc/dart/examples/fetch/main.cpp +246 -0
  881. share/doc/dart/examples/hardcoded_design/CMakeLists.txt +19 -0
  882. share/doc/dart/examples/hardcoded_design/HardcodedEventHandler.cpp +71 -0
  883. share/doc/dart/examples/hardcoded_design/HardcodedEventHandler.hpp +56 -0
  884. share/doc/dart/examples/hardcoded_design/README.md +27 -0
  885. share/doc/dart/examples/hardcoded_design/main.cpp +186 -0
  886. share/doc/dart/examples/heightmap/CMakeLists.txt +19 -0
  887. share/doc/dart/examples/heightmap/README.md +20 -0
  888. share/doc/dart/examples/heightmap/main.cpp +460 -0
  889. share/doc/dart/examples/hello_world/CMakeLists.txt +19 -0
  890. share/doc/dart/examples/hello_world/README.md +20 -0
  891. share/doc/dart/examples/hello_world/main.cpp +114 -0
  892. share/doc/dart/examples/hubo_puppet/CMakeLists.txt +19 -0
  893. share/doc/dart/examples/hubo_puppet/README.md +20 -0
  894. share/doc/dart/examples/hubo_puppet/main.cpp +1464 -0
  895. share/doc/dart/examples/human_joint_limits/CMakeLists.txt +49 -0
  896. share/doc/dart/examples/human_joint_limits/HumanArmJointLimitConstraint.cpp +411 -0
  897. share/doc/dart/examples/human_joint_limits/HumanArmJointLimitConstraint.hpp +182 -0
  898. share/doc/dart/examples/human_joint_limits/HumanLegJointLimitConstraint.cpp +432 -0
  899. share/doc/dart/examples/human_joint_limits/HumanLegJointLimitConstraint.hpp +179 -0
  900. share/doc/dart/examples/human_joint_limits/main.cpp +157 -0
  901. share/doc/dart/examples/hybrid_dynamics/CMakeLists.txt +19 -0
  902. share/doc/dart/examples/hybrid_dynamics/README.md +17 -0
  903. share/doc/dart/examples/hybrid_dynamics/main.cpp +187 -0
  904. share/doc/dart/examples/imgui/CMakeLists.txt +19 -0
  905. share/doc/dart/examples/imgui/README.md +20 -0
  906. share/doc/dart/examples/imgui/main.cpp +289 -0
  907. share/doc/dart/examples/joint_constraints/CMakeLists.txt +19 -0
  908. share/doc/dart/examples/joint_constraints/Controller.cpp +110 -0
  909. share/doc/dart/examples/joint_constraints/Controller.hpp +105 -0
  910. share/doc/dart/examples/joint_constraints/README.md +22 -0
  911. share/doc/dart/examples/joint_constraints/main.cpp +242 -0
  912. share/doc/dart/examples/mixed_chain/CMakeLists.txt +19 -0
  913. share/doc/dart/examples/mixed_chain/README.md +35 -0
  914. share/doc/dart/examples/mixed_chain/main.cpp +188 -0
  915. share/doc/dart/examples/operational_space_control/CMakeLists.txt +19 -0
  916. share/doc/dart/examples/operational_space_control/README.md +20 -0
  917. share/doc/dart/examples/operational_space_control/main.cpp +338 -0
  918. share/doc/dart/examples/point_cloud/CMakeLists.txt +19 -0
  919. share/doc/dart/examples/point_cloud/README.md +20 -0
  920. share/doc/dart/examples/point_cloud/main.cpp +740 -0
  921. share/doc/dart/examples/rerun/CMakeLists.txt +19 -0
  922. share/doc/dart/examples/rigid_chain/CMakeLists.txt +19 -0
  923. share/doc/dart/examples/rigid_chain/README.md +19 -0
  924. share/doc/dart/examples/rigid_chain/main.cpp +110 -0
  925. share/doc/dart/examples/rigid_cubes/CMakeLists.txt +19 -0
  926. share/doc/dart/examples/rigid_cubes/README.md +91 -0
  927. share/doc/dart/examples/rigid_cubes/main.cpp +201 -0
  928. share/doc/dart/examples/rigid_loop/CMakeLists.txt +19 -0
  929. share/doc/dart/examples/rigid_loop/README.md +34 -0
  930. share/doc/dart/examples/rigid_loop/main.cpp +127 -0
  931. share/doc/dart/examples/rigid_shapes/CMakeLists.txt +19 -0
  932. share/doc/dart/examples/rigid_shapes/README.md +19 -0
  933. share/doc/dart/examples/rigid_shapes/main.cpp +250 -0
  934. share/doc/dart/examples/simple_frames/CMakeLists.txt +19 -0
  935. share/doc/dart/examples/simple_frames/README.md +27 -0
  936. share/doc/dart/examples/simple_frames/main.cpp +124 -0
  937. share/doc/dart/examples/simulation_event_handler/CMakeLists.txt +19 -0
  938. share/doc/dart/examples/simulation_event_handler/README.md +189 -0
  939. share/doc/dart/examples/simulation_event_handler/SimulationEventHandler.cpp +572 -0
  940. share/doc/dart/examples/simulation_event_handler/SimulationEventHandler.hpp +211 -0
  941. share/doc/dart/examples/simulation_event_handler/main.cpp +277 -0
  942. share/doc/dart/examples/soft_bodies/CMakeLists.txt +19 -0
  943. share/doc/dart/examples/soft_bodies/README.md +20 -0
  944. share/doc/dart/examples/soft_bodies/main.cpp +219 -0
  945. share/doc/dart/examples/speed_test/CMakeLists.txt +19 -0
  946. share/doc/dart/examples/speed_test/README.md +20 -0
  947. share/doc/dart/examples/speed_test/main.cpp +250 -0
  948. share/doc/dart/examples/tinkertoy/CMakeLists.txt +19 -0
  949. share/doc/dart/examples/tinkertoy/README.md +20 -0
  950. share/doc/dart/examples/tinkertoy/TinkertoyWidget.cpp +208 -0
  951. share/doc/dart/examples/tinkertoy/TinkertoyWidget.hpp +70 -0
  952. share/doc/dart/examples/tinkertoy/TinkertoyWorldNode.cpp +35 -0
  953. share/doc/dart/examples/tinkertoy/TinkertoyWorldNode.hpp +470 -0
  954. share/doc/dart/examples/tinkertoy/main.cpp +186 -0
  955. share/doc/dart/examples/vehicle/CMakeLists.txt +19 -0
  956. share/doc/dart/examples/vehicle/README.md +22 -0
  957. share/doc/dart/examples/vehicle/main.cpp +195 -0
  958. share/doc/dart/examples/wam_ikfast/CMakeLists.txt +22 -0
  959. share/doc/dart/examples/wam_ikfast/Helpers.cpp +148 -0
  960. share/doc/dart/examples/wam_ikfast/Helpers.hpp +46 -0
  961. share/doc/dart/examples/wam_ikfast/InputHandler.cpp +110 -0
  962. share/doc/dart/examples/wam_ikfast/InputHandler.hpp +73 -0
  963. share/doc/dart/examples/wam_ikfast/README.md +20 -0
  964. share/doc/dart/examples/wam_ikfast/WamWorld.cpp +46 -0
  965. share/doc/dart/examples/wam_ikfast/WamWorld.hpp +53 -0
  966. share/doc/dart/examples/wam_ikfast/ikfast/CMakeLists.txt +11 -0
  967. share/doc/dart/examples/wam_ikfast/ikfast/ikfast71.Transform6D.4_6_9_10_11_12_f8.cpp +14930 -0
  968. share/doc/dart/examples/wam_ikfast/osgWamIkFast.cpp +96 -0
  969. share/doc/dart/tutorials/CMakeLists.txt +12 -0
  970. share/doc/dart/tutorials/README.md +45 -0
  971. share/doc/dart/tutorials/tutorial_biped/CMakeLists.txt +19 -0
  972. share/doc/dart/tutorials/tutorial_biped/README +18 -0
  973. share/doc/dart/tutorials/tutorial_biped/main.cpp +374 -0
  974. share/doc/dart/tutorials/tutorial_biped_finished/CMakeLists.txt +19 -0
  975. share/doc/dart/tutorials/tutorial_biped_finished/README +18 -0
  976. share/doc/dart/tutorials/tutorial_biped_finished/main.cpp +532 -0
  977. share/doc/dart/tutorials/tutorial_collisions/CMakeLists.txt +19 -0
  978. share/doc/dart/tutorials/tutorial_collisions/README +18 -0
  979. share/doc/dart/tutorials/tutorial_collisions/main.cpp +506 -0
  980. share/doc/dart/tutorials/tutorial_collisions_finished/CMakeLists.txt +19 -0
  981. share/doc/dart/tutorials/tutorial_collisions_finished/README +18 -0
  982. share/doc/dart/tutorials/tutorial_collisions_finished/main.cpp +679 -0
  983. share/doc/dart/tutorials/tutorial_dominoes/CMakeLists.txt +19 -0
  984. share/doc/dart/tutorials/tutorial_dominoes/README +18 -0
  985. share/doc/dart/tutorials/tutorial_dominoes/main.cpp +394 -0
  986. share/doc/dart/tutorials/tutorial_dominoes_finished/CMakeLists.txt +19 -0
  987. share/doc/dart/tutorials/tutorial_dominoes_finished/README +18 -0
  988. share/doc/dart/tutorials/tutorial_dominoes_finished/main.cpp +559 -0
  989. share/doc/dart/tutorials/tutorial_multi_pendulum/CMakeLists.txt +19 -0
  990. share/doc/dart/tutorials/tutorial_multi_pendulum/README +18 -0
  991. share/doc/dart/tutorials/tutorial_multi_pendulum/main.cpp +443 -0
  992. share/doc/dart/tutorials/tutorial_multi_pendulum_finished/CMakeLists.txt +19 -0
  993. share/doc/dart/tutorials/tutorial_multi_pendulum_finished/README +18 -0
  994. share/doc/dart/tutorials/tutorial_multi_pendulum_finished/main.cpp +512 -0
@@ -0,0 +1,1401 @@
1
+ /*
2
+ * Copyright (c) 2011-2025, The DART development contributors
3
+ * All rights reserved.
4
+ *
5
+ * The list of contributors can be found at:
6
+ * https://github.com/dartsim/dart/blob/main/LICENSE
7
+ *
8
+ * This file is provided under the following "BSD-style" License:
9
+ * Redistribution and use in source and binary forms, with or
10
+ * without modification, are permitted provided that the following
11
+ * conditions are met:
12
+ * * Redistributions of source code must retain the above copyright
13
+ * notice, this list of conditions and the following disclaimer.
14
+ * * Redistributions in binary form must reproduce the above
15
+ * copyright notice, this list of conditions and the following
16
+ * disclaimer in the documentation and/or other materials provided
17
+ * with the distribution.
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19
+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
+ * POSSIBILITY OF SUCH DAMAGE.
31
+ */
32
+
33
+ #ifndef DART_DYNAMICS_INVERSEKINEMATICS_HPP_
34
+ #define DART_DYNAMICS_INVERSEKINEMATICS_HPP_
35
+
36
+ #include <dart/dynamics/JacobianNode.hpp>
37
+ #include <dart/dynamics/SmartPointer.hpp>
38
+
39
+ #include <dart/optimizer/Function.hpp>
40
+ #include <dart/optimizer/Problem.hpp>
41
+ #include <dart/optimizer/Solver.hpp>
42
+
43
+ #include <dart/math/Geometry.hpp>
44
+
45
+ #include <dart/common/Signal.hpp>
46
+ #include <dart/common/Subject.hpp>
47
+ #include <dart/common/sub_ptr.hpp>
48
+
49
+ #include <Eigen/SVD>
50
+
51
+ #include <functional>
52
+ #include <memory>
53
+
54
+ namespace dart {
55
+ namespace dynamics {
56
+
57
+ const double DefaultIKTolerance = 1e-6;
58
+ const double DefaultIKErrorClamp = 1.0;
59
+ const double DefaultIKGradientComponentClamp = 0.2;
60
+ const double DefaultIKGradientComponentWeight = 1.0;
61
+ const double DefaultIKDLSCoefficient = 0.05;
62
+ const double DefaultIKAngularWeight = 0.4;
63
+ const double DefaultIKLinearWeight = 1.0;
64
+
65
+ /// The InverseKinematics class provides a convenient way of setting up an IK
66
+ /// optimization problem. It generates constraint functions based on the
67
+ /// specified InverseKinematics::ErrorMethod and
68
+ /// InverseKinematics::GradientMethod. The optimization problem is then solved
69
+ /// by any classes derived from optimizer::Solver class. The default solver is
70
+ /// optimizer::GradientDescentSolver.
71
+ ///
72
+ /// It also provides a convenient way of specifying a configuration space
73
+ /// objective and a null space objective. It is also possible to fully customize
74
+ /// the optimizer::Problem that the module creates, and the IK module can be
75
+ /// safely cloned over to another JacobianNode, as long as every
76
+ /// optimizer::Function that depends on the JacobianNode inherits the
77
+ /// InverseKinematics::Function class and correctly overloads the clone function
78
+ class InverseKinematics : public common::Subject
79
+ {
80
+ public:
81
+ /// Create an InverseKinematics module for a specified node
82
+ static InverseKinematicsPtr create(JacobianNode* _node);
83
+
84
+ /// Copying is not allowed
85
+ InverseKinematics(const InverseKinematics&) = delete;
86
+
87
+ /// Assignment is not allowed
88
+ InverseKinematics& operator=(const InverseKinematics&) = delete;
89
+
90
+ /// Virtual destructor
91
+ virtual ~InverseKinematics();
92
+
93
+ /// Solve the IK Problem.
94
+ ///
95
+ /// The initial guess for the IK optimization problem is the current joint
96
+ /// positions of the target system. If the iterative solver fails to find a
97
+ /// successive solution, it attempts more to solve the problem with other seed
98
+ /// configurations or random configurations if enough seed is not provided.
99
+ ///
100
+ /// Here is the pseudocode as described above:
101
+ ///
102
+ /// \code
103
+ /// attempts <- 0
104
+ /// initial_guess <- current_joint_positions
105
+ /// while attempts <= max_attempts:
106
+ /// result <- solve(initial_guess)
107
+ /// if result = success:
108
+ /// return
109
+ /// else:
110
+ /// attempts <- attempts + 1
111
+ /// if attempts <= num_seed:
112
+ /// initial_guess <- seed[attempts - 1]
113
+ /// else:
114
+ /// initial_guess <- random_configuration // within the bounds
115
+ /// \endcode
116
+ ///
117
+ /// By default, the max_attempts is 1, but this can be changed by calling
118
+ /// InverseKinematics::getSolver() and casting the SolverPtr to an
119
+ /// optimizer::GradientDescentSolver (unless you have changed the Solver type)
120
+ /// and then calling GradientDescentSolver::setMaxAttempts(std::size_t).
121
+ ///
122
+ /// By default, the list of seeds is empty, but they can be added by calling
123
+ /// InverseKinematics::getProblem() and then using
124
+ /// Problem::addSeed(Eigen::VectorXd).
125
+ ///
126
+ /// By default, the Skeleton itself will retain the solved joint positions.
127
+ /// If you pass in false for _applySolution, then the joint positions will be
128
+ /// returned to their original positions after the problem is solved.
129
+ ///
130
+ /// Calling this function will automatically call Position::setLowerBounds(~)
131
+ /// and Position::setUpperBounds(~) with the lower/upper position bounds of
132
+ /// the corresponding Degrees Of Freedom. Problem::setDimension(~) will be
133
+ /// taken care of automatically, and Problem::setInitialGuess(~) will be
134
+ /// called with the current positions of the Degrees Of Freedom.
135
+ ///
136
+ /// \deprecated Deprecated in DART 6.8. Please use solveAndApply() instead.
137
+ DART_DEPRECATED(6.8)
138
+ bool solve(bool applySolution = true);
139
+
140
+ /// Same as solve(bool), but the positions vector will be filled with the
141
+ /// solved positions.
142
+ ///
143
+ /// \deprecated Deprecated in DART 6.8. Please use solveAndApply() or
144
+ /// findSolution() instead.
145
+ DART_DEPRECATED(6.8)
146
+ bool solve(Eigen::VectorXd& positions, bool applySolution = true);
147
+
148
+ /// Finds a solution of the IK problem without applying the solution.
149
+ ///
150
+ /// The initial guess for the IK optimization problem is the current joint
151
+ /// positions of the target system. If the iterative solver fails to find a
152
+ /// successive solution, it attempts more to solve the problem with other seed
153
+ /// configurations or random configurations if enough seed is not provided.
154
+ ///
155
+ /// Here is the pseudocode as described above:
156
+ ///
157
+ /// \code
158
+ /// attempts <- 0
159
+ /// initial_guess <- current_joint_positions
160
+ /// while attempts <= max_attempts:
161
+ /// result <- solve(initial_guess)
162
+ /// if result = success:
163
+ /// return
164
+ /// else:
165
+ /// attempts <- attempts + 1
166
+ /// if attempts <= num_seed:
167
+ /// initial_guess <- seed[attempts - 1]
168
+ /// else:
169
+ /// initial_guess <- random_configuration // within the bounds
170
+ /// \endcode
171
+ ///
172
+ /// By default, the max_attempts is 1, but this can be changed by calling
173
+ /// InverseKinematics::getSolver() and casting the SolverPtr to an
174
+ /// optimizer::GradientDescentSolver (unless you have changed the Solver type)
175
+ /// and then calling GradientDescentSolver::setMaxAttempts(std::size_t).
176
+ ///
177
+ /// By default, the list of seeds is empty, but they can be added by calling
178
+ /// InverseKinematics::getProblem() and then using
179
+ /// Problem::addSeed(Eigen::VectorXd).
180
+ ///
181
+ /// Calling this function will automatically call Position::setLowerBounds(~)
182
+ /// and Position::setUpperBounds(~) with the lower/upper position bounds of
183
+ /// the corresponding Degrees Of Freedom. Problem::setDimension(~) will be
184
+ /// taken care of automatically, and Problem::setInitialGuess(~) will be
185
+ /// called with the current positions of the Degrees Of Freedom.
186
+ ///
187
+ /// \param[out] positions The solution of the IK problem. If the solver failed
188
+ /// to find a solution then it will still set the position with the best
189
+ /// guess. For example, iterative solvers will fill \c positions with the last
190
+ /// result of the iterations.
191
+ /// \return True if a solution is successfully found.
192
+ /// \sa solveAndApply()
193
+ bool findSolution(Eigen::VectorXd& positions);
194
+
195
+ /// Identical to findSolution(), but this function applies the solution when
196
+ /// the solver successfully found a solution or \c allowIncompleteResult is
197
+ /// set to true.
198
+ ///
199
+ /// \param[in] allowIncompleteResult Allow to apply the solution even when
200
+ /// the solver failed to find solution. This option would be useful when an
201
+ /// iterative solver is used because they will often do a decent job of
202
+ /// getting a result close to a solution even if it failed to find the
203
+ /// solution.
204
+ /// \return True if a solution is successfully found
205
+ bool solveAndApply(bool allowIncompleteResult = true);
206
+
207
+ /// Identical to solveAndApply(bool), but \c position will be filled with the
208
+ /// solved positions.
209
+ ///
210
+ /// \param[out] positions The solution of the IK problem. If the solver failed
211
+ /// to find a solution then it will still set the position with the best
212
+ /// guess. For example, iterative solvers will fill \c positions with the last
213
+ /// result of the iterations.
214
+ /// \param[in] allowIncompleteResult Allow to apply the solution even when
215
+ /// the solver failed to find solution. This option would be useful when an
216
+ /// iterative solver is used because they will often do a decent job of
217
+ /// getting a result close to a solution even if it failed to find the
218
+ /// solution.
219
+ /// \return True if a solution is successfully found
220
+ bool solveAndApply(
221
+ Eigen::VectorXd& positions, bool allowIncompleteResult = true);
222
+
223
+ /// Clone this IK module, but targeted at a new Node. Any Functions in the
224
+ /// Problem that inherit InverseKinematics::Function will be adapted to the
225
+ /// new IK module. Any generic optimizer::Function will just be copied over
226
+ /// by pointer instead of being cloned.
227
+ InverseKinematicsPtr clone(JacobianNode* _newNode) const;
228
+
229
+ // For the definitions of these classes, see the bottom of this header
230
+ class Function;
231
+
232
+ // Methods for computing IK error
233
+ class ErrorMethod;
234
+ class TaskSpaceRegion;
235
+
236
+ // Methods for computing IK gradient
237
+ class GradientMethod;
238
+ class JacobianDLS;
239
+ class JacobianTranspose;
240
+ class Analytical;
241
+
242
+ /// If this IK module is set to active, then it will be utilized by any
243
+ /// HierarchicalIK that has it in its list. If it is set to inactive, then it
244
+ /// will be ignored by any HierarchicalIK holding onto it, but you can still
245
+ /// use the solve() function with this.
246
+ void setActive(bool _active = true);
247
+
248
+ /// Equivalent to setActive(false)
249
+ void setInactive();
250
+
251
+ /// Returns true if this IK module is allowed to be active in a HierarchicalIK
252
+ bool isActive() const;
253
+
254
+ /// Set the hierarchy level of this module. Modules with a larger hierarchy
255
+ /// value will be projected through the null spaces of all modules with a
256
+ /// smaller hierarchy value. In other words, IK modules with a hierarchy level
257
+ /// closer to 0 are given higher priority.
258
+ void setHierarchyLevel(std::size_t _level);
259
+
260
+ /// Get the hierarchy level of this modle.
261
+ std::size_t getHierarchyLevel() const;
262
+
263
+ /// When solving the IK for this module's Node, use the longest available
264
+ /// dynamics::Chain that goes from this module's Node towards the root of the
265
+ /// Skeleton. Using this will prevent any other branches in the Skeleton from
266
+ /// being affected by this IK module.
267
+ void useChain();
268
+
269
+ /// Use all relevant joints on the Skeleton to solve the IK.
270
+ void useWholeBody();
271
+
272
+ /// Explicitly set which degrees of freedom should be used to solve the IK for
273
+ /// this module.
274
+ template <class DegreeOfFreedomT>
275
+ void setDofs(const std::vector<DegreeOfFreedomT*>& _dofs);
276
+
277
+ /// Explicitly set which degrees of freedom should be used to solve the IK for
278
+ /// this module. The values in the vector should correspond to the Skeleton
279
+ /// indices of each DOF.
280
+ void setDofs(const std::vector<std::size_t>& _dofs);
281
+
282
+ /// Get the indices of the DOFs that this IK module will use when solving.
283
+ const std::vector<std::size_t>& getDofs() const;
284
+
285
+ /// When a Jacobian is computed for a JacobianNode, it will include a column
286
+ /// for every DegreeOfFreedom that the node depends on. Given the column index
287
+ /// of one of those dependent coordinates, this map will return its location
288
+ /// in the mDofs vector. A value of -1 means that it is not present in the
289
+ /// mDofs vector and therefore should not be used when performing inverse
290
+ /// kinematics.
291
+ const std::vector<int>& getDofMap() const;
292
+
293
+ /// Set an objective function that should be minimized while satisfying the
294
+ /// inverse kinematics constraint. Pass in a nullptr to remove the objective
295
+ /// and make it a constant-zero function.
296
+ void setObjective(const std::shared_ptr<optimizer::Function>& _objective);
297
+
298
+ /// Get the objective function for this IK module
299
+ const std::shared_ptr<optimizer::Function>& getObjective();
300
+
301
+ /// Get the objective function for this IK module
302
+ std::shared_ptr<const optimizer::Function> getObjective() const;
303
+
304
+ /// Set an objective function that should be minimized within the null space
305
+ /// of the inverse kinematics constraint. The gradient of this function will
306
+ /// always be projected through the null space of this IK module's Jacobian.
307
+ /// Pass in a nullptr to remove the null space objective.
308
+ ///
309
+ /// Note: The objectives given to setObjective() and setNullSpaceObjective()
310
+ /// will always be superimposed (added together) via the evalObjective()
311
+ /// function.
312
+ void setNullSpaceObjective(
313
+ const std::shared_ptr<optimizer::Function>& _nsObjective);
314
+
315
+ /// Get the null space objective for this IK module
316
+ const std::shared_ptr<optimizer::Function>& getNullSpaceObjective();
317
+
318
+ /// Get the null space objective for this IK module
319
+ std::shared_ptr<const optimizer::Function> getNullSpaceObjective() const;
320
+
321
+ /// Returns false if the null space objective does nothing
322
+ bool hasNullSpaceObjective() const;
323
+
324
+ /// Set the ErrorMethod for this IK module. You can pass in arguments for the
325
+ /// constructor, but you should ignore the constructor's first argument. The
326
+ /// first argument of the ErrorMethod's constructor must be a pointer to this
327
+ /// IK module, which will be automatically passed by this function.
328
+ template <class IKErrorMethod, typename... Args>
329
+ IKErrorMethod& setErrorMethod(Args&&... args);
330
+
331
+ /// Get the ErrorMethod for this IK module. Every IK module always has an
332
+ /// ErrorMethod available, so this is passed by reference.
333
+ ErrorMethod& getErrorMethod();
334
+
335
+ /// Get the ErrorMethod for this IK module. Every IK module always has an
336
+ /// ErrorMethod available, so this is passed by reference.
337
+ const ErrorMethod& getErrorMethod() const;
338
+
339
+ /// Set the GradientMethod for this IK module. You can pass in arguments for
340
+ /// the constructor, but you should ignore the constructor's first argument.
341
+ /// The first argument of the GradientMethod's constructor must be a pointer
342
+ /// to this IK module, which will be automatically passed by this function.
343
+ template <class IKGradientMethod, typename... Args>
344
+ IKGradientMethod& setGradientMethod(Args&&... args);
345
+
346
+ /// Get the GradientMethod for this IK module. Every IK module always has a
347
+ /// GradientMethod available, so this is passed by reference.
348
+ GradientMethod& getGradientMethod();
349
+
350
+ /// Get the GradientMethod for this IK module. Every IK module always has a
351
+ /// GradientMethod available, so this is passed by reference.
352
+ const GradientMethod& getGradientMethod() const;
353
+
354
+ /// Get the Analytical IK method for this module, if one is available.
355
+ /// Analytical methods are not provided by default. If this IK module does not
356
+ /// have an analytical method, then this will return a nullptr.
357
+ Analytical* getAnalytical();
358
+
359
+ /// Get the Analytical IK method for this module, if one is available.
360
+ /// Analytical methods are not provided by default. If this IK module does not
361
+ /// have an analytical method, then this will return a nullptr.
362
+ const Analytical* getAnalytical() const;
363
+
364
+ /// Get the Problem that is being maintained by this IK module.
365
+ const std::shared_ptr<optimizer::Problem>& getProblem();
366
+
367
+ /// Get the Problem that is being maintained by this IK module.
368
+ std::shared_ptr<const optimizer::Problem> getProblem() const;
369
+
370
+ /// Reset the Problem that is being maintained by this IK module. This will
371
+ /// clear out all Functions from the Problem and then configure the Problem to
372
+ /// use this IK module's Objective and Constraint functions.
373
+ ///
374
+ /// Setting _clearSeeds to true will clear out any seeds that have been loaded
375
+ /// into the Problem.
376
+ void resetProblem(bool _clearSeeds = false);
377
+
378
+ /// Set the Solver that should be used by this IK module, and set it up with
379
+ /// the Problem that is configured by this IK module
380
+ void setSolver(const std::shared_ptr<optimizer::Solver>& _newSolver);
381
+
382
+ /// Get the Solver that is being used by this IK module.
383
+ const std::shared_ptr<optimizer::Solver>& getSolver();
384
+
385
+ /// Get the Solver that is being used by this IK module.
386
+ std::shared_ptr<const optimizer::Solver> getSolver() const;
387
+
388
+ /// Inverse kinematics can be performed on any point within the body frame.
389
+ /// The default point is the origin of the body frame. Use this function to
390
+ /// change the point that will be used. _offset must represent the offset of
391
+ /// the desired point from the body origin, expressed in coordinates of the
392
+ /// body frame.
393
+ void setOffset(const Eigen::Vector3d& _offset = Eigen::Vector3d::Zero());
394
+
395
+ /// Get the offset from the origin of the body frame that will be used when
396
+ /// performing inverse kinematics. The offset will be expressed in the
397
+ /// coordinates of the body frame.
398
+ const Eigen::Vector3d& getOffset() const;
399
+
400
+ /// This returns false if the offset for the inverse kinematics is a zero
401
+ /// vector. Otherwise, it returns true. Use setOffset() to set the offset and
402
+ /// getOffset() to get the offset.
403
+ bool hasOffset() const;
404
+
405
+ /// Set the target for this IK module.
406
+ ///
407
+ /// Note that a target will automatically be created for the IK module upon
408
+ /// instantiation, so you typically do not need to use this function. If you
409
+ /// want to attach the target to an arbitrary (non-SimpleFrame) reference
410
+ /// frame, you can do getTarget()->setParentFrame(arbitraryFrame)
411
+ void setTarget(std::shared_ptr<SimpleFrame> _newTarget);
412
+
413
+ /// Get the target that is being used by this IK module. You never have to
414
+ /// check whether this is a nullptr, because it cannot ever be set to nullptr.
415
+ std::shared_ptr<SimpleFrame> getTarget();
416
+
417
+ /// Get the target that is being used by this IK module. You never have to
418
+ /// check whether this is a nullptr, because it cannot ever be set to nullptr.
419
+ std::shared_ptr<const SimpleFrame> getTarget() const;
420
+
421
+ /// Get the JacobianNode that this IK module operates on.
422
+ JacobianNode* getNode();
423
+
424
+ /// Get the JacobianNode that this IK module operates on.
425
+ const JacobianNode* getNode() const;
426
+
427
+ /// This is the same as getNode(). It is used by the InverseKinematicsPtr to
428
+ /// provide a common interface for the various IK smart pointer types.
429
+ JacobianNode* getAffiliation();
430
+
431
+ /// This is the same as getNode(). It is used by the InverseKinematicsPtr to
432
+ /// provide a common interface for the various IK smart pointer types.
433
+ const JacobianNode* getAffiliation() const;
434
+
435
+ /// Compute the Jacobian for this IK module's node, using the Skeleton's
436
+ /// current joint positions and the DOFs that have been assigned to the
437
+ /// module.
438
+ const math::Jacobian& computeJacobian() const;
439
+
440
+ /// Get the current joint positions of the Skeleton. This will only include
441
+ /// the DOFs that have been assigned to this IK module, and the components of
442
+ /// the vector will correspond to the components of getDofs().
443
+ Eigen::VectorXd getPositions() const;
444
+
445
+ /// Set the current joint positions of the Skeleton. This must only include
446
+ /// the DOFs that have been assigned to this IK module, and the components of
447
+ /// the vector must correspond to the components of getDofs().
448
+ void setPositions(const Eigen::VectorXd& _q);
449
+
450
+ /// Clear the caches of this IK module. It should generally not be necessary
451
+ /// to call this function. However, if you have some non-standard external
452
+ /// dependency for your error and/or gradient method computations, then you
453
+ /// will need to tie this function to something that tracks changes in that
454
+ /// dependency.
455
+ void clearCaches();
456
+
457
+ protected:
458
+ // For the definitions of these functions, see the bottom of this header
459
+ class Objective;
460
+ friend class Objective;
461
+ class Constraint;
462
+ friend class Constraint;
463
+
464
+ /// Constructor that accepts a JacobianNode
465
+ InverseKinematics(JacobianNode* _node);
466
+
467
+ /// Gets called during construction
468
+ void initialize();
469
+
470
+ /// Reset the signal connection for this IK module's target
471
+ void resetTargetConnection();
472
+
473
+ /// Reset the signal connection for this IK module's Node
474
+ void resetNodeConnection();
475
+
476
+ /// Connection to the target update
477
+ common::Connection mTargetConnection;
478
+
479
+ /// Connection to the node update
480
+ common::Connection mNodeConnection;
481
+
482
+ /// True if this IK module should be active in its IK hierarcy
483
+ bool mActive;
484
+
485
+ /// Hierarchy level for this IK module
486
+ std::size_t mHierarchyLevel;
487
+
488
+ /// A list of the DegreeOfFreedom Skeleton indices that will be used by this
489
+ /// IK module
490
+ std::vector<std::size_t> mDofs;
491
+
492
+ /// Map for the DOFs that are to be used by this IK module
493
+ std::vector<int> mDofMap;
494
+
495
+ /// Objective for the IK module
496
+ std::shared_ptr<optimizer::Function> mObjective;
497
+
498
+ /// Null space objective for the IK module
499
+ std::shared_ptr<optimizer::Function> mNullSpaceObjective;
500
+
501
+ /// The method that this IK module will use to compute errors
502
+ std::unique_ptr<ErrorMethod> mErrorMethod;
503
+
504
+ /// The method that this IK module will use to compute gradients
505
+ std::unique_ptr<GradientMethod> mGradientMethod;
506
+
507
+ /// If mGradientMethod is an Analytical extension, then this will have the
508
+ /// same value is mGradientMethod. Otherwise, this will be a nullptr.
509
+ ///
510
+ /// Note that this pointer's memory does not need to be managed, because it is
511
+ /// always either nullptr or a reference to mGradientMethod.
512
+ Analytical* mAnalytical;
513
+
514
+ /// The Problem that will be maintained by this IK module
515
+ std::shared_ptr<optimizer::Problem> mProblem;
516
+
517
+ /// The solver that this IK module will use for iterative methods
518
+ std::shared_ptr<optimizer::Solver> mSolver;
519
+
520
+ /// The offset that this IK module should use when computing IK
521
+ Eigen::Vector3d mOffset;
522
+
523
+ /// True if the offset is non-zero
524
+ bool mHasOffset;
525
+
526
+ /// Target that this IK module should use
527
+ std::shared_ptr<SimpleFrame> mTarget;
528
+
529
+ /// JacobianNode that this IK module is associated with
530
+ sub_ptr<JacobianNode> mNode;
531
+
532
+ /// Jacobian cache for the IK module
533
+ mutable math::Jacobian mJacobian;
534
+ };
535
+
536
+ typedef InverseKinematics IK;
537
+
538
+ //==============================================================================
539
+ /// This class should be inherited by optimizer::Function classes that have a
540
+ /// dependency on the InverseKinematics module that they belong to. If you
541
+ /// pass an InverseKinematics::Function into the Problem of an
542
+ /// InverseKinematics module, then it will be properly cloned whenever the
543
+ /// InverseKinematics module that it belongs to gets cloned. Any Function
544
+ /// classes in the Problem that do not inherit InverseKinematics::Function
545
+ /// will just be copied over by reference.
546
+ class InverseKinematics::Function
547
+ {
548
+ public:
549
+ /// Enable this function to be cloned to a new IK module.
550
+ virtual optimizer::FunctionPtr clone(InverseKinematics* _newIK) const = 0;
551
+
552
+ /// Virtual destructor
553
+ virtual ~Function() = default;
554
+ };
555
+
556
+ //==============================================================================
557
+ /// ErrorMethod is a base class for different ways of computing the error of
558
+ /// an InverseKinematics module.
559
+ class InverseKinematics::ErrorMethod : public common::Subject
560
+ {
561
+ public:
562
+ typedef std::pair<Eigen::Vector6d, Eigen::Vector6d> Bounds;
563
+
564
+ /// The Properties struct contains settings that are commonly used by
565
+ /// methods that compute error for inverse kinematics.
566
+ struct Properties
567
+ {
568
+ /// Default constructor
569
+ Properties(
570
+ const Bounds& _bounds = Bounds(
571
+ Eigen::Vector6d::Constant(-DefaultIKTolerance),
572
+ Eigen::Vector6d::Constant(DefaultIKTolerance)),
573
+
574
+ double _errorClamp = DefaultIKErrorClamp,
575
+
576
+ const Eigen::Vector6d& _errorWeights = Eigen::compose(
577
+ Eigen::Vector3d::Constant(DefaultIKAngularWeight),
578
+ Eigen::Vector3d::Constant(DefaultIKLinearWeight)));
579
+
580
+ /// Bounds that define the acceptable range of the Node's transform
581
+ /// relative to its target frame.
582
+ std::pair<Eigen::Vector6d, Eigen::Vector6d> mBounds;
583
+
584
+ /// The error vector will be clamped to this length with each iteration.
585
+ /// This is used to enforce sane behavior, even when there are extremely
586
+ /// large error vectors.
587
+ double mErrorLengthClamp;
588
+
589
+ /// These weights will be applied to the error vector component-wise. This
590
+ /// allows you to set some components of error as more important than
591
+ /// others, or to scale their coordinate spaces. For example, you will
592
+ /// often want the first three components (orientation error) to have
593
+ /// smaller weights than the last three components (translation error).
594
+ Eigen::Vector6d mErrorWeights;
595
+
596
+ // To get byte-aligned Eigen vectors
597
+ EIGEN_MAKE_ALIGNED_OPERATOR_NEW
598
+ };
599
+
600
+ /// Constructor
601
+ ErrorMethod(
602
+ InverseKinematics* _ik,
603
+ const std::string& _methodName,
604
+ const Properties& _properties = Properties());
605
+
606
+ /// Virtual destructor
607
+ virtual ~ErrorMethod() = default;
608
+
609
+ /// Enable this ErrorMethod to be cloned to a new IK module.
610
+ virtual std::unique_ptr<ErrorMethod> clone(
611
+ InverseKinematics* _newIK) const = 0;
612
+
613
+ /// Override this function with your implementation of the error vector
614
+ /// computation. The expectation is that the first three components of the
615
+ /// vector will correspond to orientation error (in an angle-axis format)
616
+ /// while the last three components correspond to translational error.
617
+ ///
618
+ /// When implementing this function, you should assume that the Skeleton's
619
+ /// current joint positions corresponds to the positions that you
620
+ /// must use to compute the error. This function will only get called when
621
+ /// an update is needed.
622
+ virtual Eigen::Vector6d computeError() = 0;
623
+
624
+ /// Override this function with your implementation of computing the desired
625
+ /// given the current transform and error vector. If you want the desired
626
+ /// transform to always be equal to the Target's transform, you can simply
627
+ /// call ErrorMethod::computeDesiredTransform to implement this function.
628
+ virtual Eigen::Isometry3d computeDesiredTransform(
629
+ const Eigen::Isometry3d& _currentTf, const Eigen::Vector6d& _error)
630
+ = 0;
631
+
632
+ /// This function is used to handle caching the error vector.
633
+ const Eigen::Vector6d& evalError(const Eigen::VectorXd& _q);
634
+
635
+ /// Get the name of this ErrorMethod.
636
+ const std::string& getMethodName() const;
637
+
638
+ /// Set all the error bounds.
639
+ void setBounds(
640
+ const Eigen::Vector6d& _lower
641
+ = Eigen::Vector6d::Constant(-DefaultIKTolerance),
642
+ const Eigen::Vector6d& _upper
643
+ = Eigen::Vector6d::Constant(DefaultIKTolerance));
644
+
645
+ /// Set all the error bounds.
646
+ void setBounds(const std::pair<Eigen::Vector6d, Eigen::Vector6d>& _bounds);
647
+
648
+ /// Get all the error bounds.
649
+ const std::pair<Eigen::Vector6d, Eigen::Vector6d>& getBounds() const;
650
+
651
+ /// Set the error bounds for orientation.
652
+ void setAngularBounds(
653
+ const Eigen::Vector3d& _lower
654
+ = Eigen::Vector3d::Constant(-DefaultIKTolerance),
655
+ const Eigen::Vector3d& _upper
656
+ = Eigen::Vector3d::Constant(DefaultIKTolerance));
657
+
658
+ /// Set the error bounds for orientation.
659
+ void setAngularBounds(
660
+ const std::pair<Eigen::Vector3d, Eigen::Vector3d>& _bounds);
661
+
662
+ /// Get the error bounds for orientation.
663
+ std::pair<Eigen::Vector3d, Eigen::Vector3d> getAngularBounds() const;
664
+
665
+ /// Set the error bounds for translation.
666
+ void setLinearBounds(
667
+ const Eigen::Vector3d& _lower
668
+ = Eigen::Vector3d::Constant(-DefaultIKTolerance),
669
+ const Eigen::Vector3d& _upper
670
+ = Eigen::Vector3d::Constant(DefaultIKTolerance));
671
+
672
+ /// Set the error bounds for translation.
673
+ void setLinearBounds(
674
+ const std::pair<Eigen::Vector3d, Eigen::Vector3d>& _bounds);
675
+
676
+ /// Get the error bounds for translation.
677
+ std::pair<Eigen::Vector3d, Eigen::Vector3d> getLinearBounds() const;
678
+
679
+ /// Set the clamp that will be applied to the length of the error vector
680
+ /// each iteration.
681
+ void setErrorLengthClamp(double _clampSize = DefaultIKErrorClamp);
682
+
683
+ /// Set the clamp that will be applied to the length of the error vector
684
+ /// each iteration.
685
+ double getErrorLengthClamp() const;
686
+
687
+ /// Set the weights that will be applied to each component of the error
688
+ /// vector.
689
+ void setErrorWeights(const Eigen::Vector6d& _weights);
690
+
691
+ /// Get the weights that will be applied to each component of the error
692
+ /// vector.
693
+ const Eigen::Vector6d& getErrorWeights() const;
694
+
695
+ /// Set the weights that will be applied to each angular component of the
696
+ /// error vector.
697
+ void setAngularErrorWeights(
698
+ const Eigen::Vector3d& _weights
699
+ = Eigen::Vector3d::Constant(DefaultIKAngularWeight));
700
+
701
+ /// Get the weights that will be applied to each angular component of the
702
+ /// error vector.
703
+ Eigen::Vector3d getAngularErrorWeights() const;
704
+
705
+ /// Set the weights that will be applied to each linear component of the
706
+ /// error vector.
707
+ void setLinearErrorWeights(
708
+ const Eigen::Vector3d& _weights
709
+ = Eigen::Vector3d::Constant(DefaultIKLinearWeight));
710
+
711
+ /// Get the weights that will be applied to each linear component of the
712
+ /// error vector.
713
+ Eigen::Vector3d getLinearErrorWeights() const;
714
+
715
+ /// Get the Properties of this ErrorMethod
716
+ Properties getErrorMethodProperties() const;
717
+
718
+ /// Clear the cache to force the error to be recomputed. It should generally
719
+ /// not be necessary to call this function.
720
+ void clearCache();
721
+
722
+ protected:
723
+ /// Pointer to the IK module of this ErrorMethod
724
+ common::sub_ptr<InverseKinematics> mIK;
725
+
726
+ /// Name of this error method
727
+ std::string mMethodName;
728
+
729
+ /// The last joint positions passed into this ErrorMethod
730
+ Eigen::VectorXd mLastPositions;
731
+
732
+ /// The last error vector computed by this ErrorMethod
733
+ Eigen::Vector6d mLastError;
734
+
735
+ /// The properties of this ErrorMethod
736
+ Properties mErrorP;
737
+
738
+ public:
739
+ // To get byte-aligned Eigen vectors
740
+ EIGEN_MAKE_ALIGNED_OPERATOR_NEW
741
+ };
742
+
743
+ //==============================================================================
744
+ /// The TaskSpaceRegion is a nicely generalized method for computing the error
745
+ /// of an IK Problem.
746
+ class InverseKinematics::TaskSpaceRegion : public ErrorMethod
747
+ {
748
+ public:
749
+ struct UniqueProperties
750
+ {
751
+ /// Setting this to true (which is default) will tell it to compute the
752
+ /// error based on the center of the Task Space Region instead of the edge
753
+ /// of the Task Space Region. This often results in faster convergence, as
754
+ /// the Node will enter the Task Space Region more aggressively.
755
+ ///
756
+ /// Once the Node is inside the Task Space Region, the error vector will
757
+ /// drop to zero, regardless of whether this flag is true or false.
758
+ bool mComputeErrorFromCenter;
759
+
760
+ /// The reference frame that the task space region is expressed. If this
761
+ /// frame is set to nullptr, which is the default, then the parent frame of
762
+ /// the target frame is used instead.
763
+ SimpleFramePtr mReferenceFrame;
764
+
765
+ /// Default constructor
766
+ UniqueProperties(
767
+ bool computeErrorFromCenter = true,
768
+ SimpleFramePtr referenceFrame = nullptr);
769
+ };
770
+
771
+ struct Properties : ErrorMethod::Properties, UniqueProperties
772
+ {
773
+ /// Default constructor
774
+ Properties(
775
+ const ErrorMethod::Properties& errorProperties
776
+ = ErrorMethod::Properties(),
777
+ const UniqueProperties& taskSpaceProperties = UniqueProperties());
778
+ };
779
+
780
+ /// Default Constructor
781
+ explicit TaskSpaceRegion(
782
+ InverseKinematics* _ik, const Properties& _properties = Properties());
783
+
784
+ /// Virtual destructor
785
+ virtual ~TaskSpaceRegion() = default;
786
+
787
+ // Documentation inherited
788
+ std::unique_ptr<ErrorMethod> clone(InverseKinematics* _newIK) const override;
789
+
790
+ // Documentation inherited
791
+ Eigen::Isometry3d computeDesiredTransform(
792
+ const Eigen::Isometry3d& _currentTf,
793
+ const Eigen::Vector6d& _error) override;
794
+
795
+ // Documentation inherited
796
+ Eigen::Vector6d computeError() override;
797
+
798
+ /// Set whether this TaskSpaceRegion should compute its error vector from
799
+ /// the center of the region.
800
+ void setComputeFromCenter(bool computeFromCenter);
801
+
802
+ /// Get whether this TaskSpaceRegion is set to compute its error vector from
803
+ /// the center of the region.
804
+ bool isComputingFromCenter() const;
805
+
806
+ /// Set the reference frame that the task space region is expressed. Pass
807
+ /// nullptr to use the parent frame of the target frame instead.
808
+ void setReferenceFrame(SimpleFramePtr referenceFrame);
809
+
810
+ /// Get the reference frame that the task space region is expressed.
811
+ ConstSimpleFramePtr getReferenceFrame() const;
812
+
813
+ /// Get the Properties of this TaskSpaceRegion
814
+ Properties getTaskSpaceRegionProperties() const;
815
+
816
+ protected:
817
+ /// Properties of this TaskSpaceRegion
818
+ UniqueProperties mTaskSpaceP;
819
+ };
820
+
821
+ //==============================================================================
822
+ /// GradientMethod is a base class for different ways of computing the
823
+ /// gradient of an InverseKinematics module.
824
+ class InverseKinematics::GradientMethod : public common::Subject
825
+ {
826
+ public:
827
+ struct Properties
828
+ {
829
+ /// The component-wise clamp for this GradientMethod
830
+ double mComponentWiseClamp;
831
+
832
+ /// The weights for this GradientMethod
833
+ Eigen::VectorXd mComponentWeights;
834
+
835
+ /// Default constructor
836
+ Properties(
837
+ double clamp = DefaultIKGradientComponentClamp,
838
+ const Eigen::VectorXd& weights = Eigen::VectorXd());
839
+ };
840
+
841
+ /// Constructor
842
+ GradientMethod(
843
+ InverseKinematics* _ik,
844
+ const std::string& _methodName,
845
+ const Properties& _properties);
846
+
847
+ /// Virtual destructor
848
+ virtual ~GradientMethod() = default;
849
+
850
+ /// Enable this GradientMethod to be cloned to a new IK module
851
+ virtual std::unique_ptr<GradientMethod> clone(
852
+ InverseKinematics* _newIK) const = 0;
853
+
854
+ /// Override this function with your implementation of the gradient
855
+ /// computation. The direction that this gradient points in should make the
856
+ /// error **worse** if applied to the joint positions, because the
857
+ /// Problem is configured as a gradient **descent** error minimization
858
+ /// Problem.
859
+ ///
860
+ /// The error vector that is passed in will be determined by the IK module's
861
+ /// ErrorMethod. The expectation is that the first three components of the
862
+ /// vector correspond to orientation error (in an angle-axis format) while
863
+ /// the last three components correspond to translational error.
864
+ ///
865
+ /// When implementing this function, you should assume that the Skeleton's
866
+ /// current joint positions corresponds to the positions that you
867
+ /// must use to compute the error. This function will only get called when
868
+ /// an update is needed.
869
+ virtual void computeGradient(
870
+ const Eigen::Vector6d& _error, Eigen::VectorXd& _grad)
871
+ = 0;
872
+
873
+ /// This function is used to handle caching the gradient vector and
874
+ /// interfacing with the solver.
875
+ void evalGradient(
876
+ const Eigen::VectorXd& _q, Eigen::Map<Eigen::VectorXd> _grad);
877
+
878
+ /// Get the name of this GradientMethod.
879
+ const std::string& getMethodName() const;
880
+
881
+ /// Clamp the gradient based on the clamp settings of this GradientMethod.
882
+ void clampGradient(Eigen::VectorXd& _grad) const;
883
+
884
+ /// Set the component-wise clamp for this GradientMethod. Each component
885
+ /// of the gradient will be individually clamped to this size.
886
+ void setComponentWiseClamp(double _clamp = DefaultIKGradientComponentClamp);
887
+
888
+ /// Get the component-wise clamp for this GradientMethod.
889
+ double getComponentWiseClamp() const;
890
+
891
+ /// Apply weights to the gradient based on the weight settings of this
892
+ /// GradientMethod.
893
+ void applyWeights(Eigen::VectorXd& _grad) const;
894
+
895
+ /// Set the weights that will be applied to each component of the gradient.
896
+ /// If the number of components in _weights is smaller than the number of
897
+ /// components in the gradient, then a weight of 1.0 will be applied to all
898
+ /// components that are out of the range of _weights. Passing in an empty
899
+ /// vector for _weights will effectively make all the gradient components
900
+ /// unweighted.
901
+ void setComponentWeights(const Eigen::VectorXd& _weights);
902
+
903
+ /// Get the weights of this GradientMethod.
904
+ const Eigen::VectorXd& getComponentWeights() const;
905
+
906
+ /// Convert the gradient that gets generated by Jacobian methods into a
907
+ /// gradient that can be used by a GradientDescentSolver.
908
+ ///
909
+ /// Not all Joint types can be integrated using standard addition (e.g.
910
+ /// FreeJoint and BallJoint), therefore Jacobian-based differential methods
911
+ /// will tend to generate gradients that cannot be correctly used by a
912
+ /// simple addition-based GradientDescentSolver. Running your gradient
913
+ /// through this function before returning it will make the gradient
914
+ /// suitable for a standard solver.
915
+ void convertJacobianMethodOutputToGradient(
916
+ Eigen::VectorXd& grad, const std::vector<std::size_t>& dofs);
917
+
918
+ /// Get the Properties of this GradientMethod
919
+ Properties getGradientMethodProperties() const;
920
+
921
+ /// Clear the cache to force the gradient to be recomputed. It should
922
+ /// generally not be necessary to call this function.
923
+ void clearCache();
924
+
925
+ /// Returns the IK module that this GradientMethod belongs to.
926
+ InverseKinematics* getIK();
927
+
928
+ /// Returns the IK module that this GradientMethod belongs to.
929
+ const InverseKinematics* getIK() const;
930
+
931
+ protected:
932
+ /// The IK module that this GradientMethod belongs to.
933
+ common::sub_ptr<InverseKinematics> mIK;
934
+
935
+ /// The name of this method
936
+ std::string mMethodName;
937
+
938
+ /// The last positions that was passed to this GradientMethod
939
+ Eigen::VectorXd mLastPositions;
940
+
941
+ /// The last gradient that was computed by this GradientMethod
942
+ Eigen::VectorXd mLastGradient;
943
+
944
+ /// Properties for this GradientMethod
945
+ Properties mGradientP;
946
+
947
+ private:
948
+ /// Cache used by convertJacobianMethodOutputToGradient to avoid
949
+ /// reallocating this vector on each iteration.
950
+ Eigen::VectorXd mInitialPositionsCache;
951
+ };
952
+
953
+ //==============================================================================
954
+ /// JacobianDLS refers to the Damped Least Squares Jacobian Pseudoinverse
955
+ /// (specifically, Moore-Penrose Pseudoinverse). This is a very precise method
956
+ /// for computing the gradient and is especially suitable for performing IK on
957
+ /// industrial manipulators that need to follow very exact workspace paths.
958
+ /// However, it is vulnerable to be jittery around singularities (though the
959
+ /// damping helps with this), and each cycle might take more time to compute
960
+ /// than the JacobianTranspose method (although the JacobianDLS method will
961
+ /// usually converge in fewer cycles than JacobianTranspose).
962
+ class InverseKinematics::JacobianDLS : public GradientMethod
963
+ {
964
+ public:
965
+ struct UniqueProperties
966
+ {
967
+ /// Damping coefficient
968
+ double mDamping;
969
+
970
+ /// Default constructor
971
+ UniqueProperties(double damping = DefaultIKDLSCoefficient);
972
+ };
973
+
974
+ struct Properties : GradientMethod::Properties, UniqueProperties
975
+ {
976
+ /// Default constructor
977
+ Properties(
978
+ const GradientMethod::Properties& gradientProperties
979
+ = GradientMethod::Properties(),
980
+ const UniqueProperties& dlsProperties = UniqueProperties());
981
+ };
982
+
983
+ /// Constructor
984
+ explicit JacobianDLS(
985
+ InverseKinematics* _ik, const Properties& properties = Properties());
986
+
987
+ /// Virtual destructor
988
+ virtual ~JacobianDLS() = default;
989
+
990
+ // Documentation inherited
991
+ std::unique_ptr<GradientMethod> clone(
992
+ InverseKinematics* _newIK) const override;
993
+
994
+ // Documentation inherited
995
+ void computeGradient(
996
+ const Eigen::Vector6d& _error, Eigen::VectorXd& _grad) override;
997
+
998
+ /// Set the damping coefficient. A higher damping coefficient will smooth
999
+ /// out behavior around singularities but will also result in less precision
1000
+ /// in general. The default value is appropriate for most use cases.
1001
+ void setDampingCoefficient(double _damping = DefaultIKDLSCoefficient);
1002
+
1003
+ /// Get the damping coefficient.
1004
+ double getDampingCoefficient() const;
1005
+
1006
+ /// Get the Properties of this JacobianDLS
1007
+ Properties getJacobianDLSProperties() const;
1008
+
1009
+ protected:
1010
+ /// Properties of this Damped Least Squares method
1011
+ UniqueProperties mDLSProperties;
1012
+ };
1013
+
1014
+ //==============================================================================
1015
+ /// JacobianTranspose will simply apply the transpose of the Jacobian to the
1016
+ /// error vector in order to compute the gradient. This method tends to be
1017
+ /// very smooth but imprecise, requiring more iterations before converging
1018
+ /// and being less precise in general. This method is suitable for animations
1019
+ /// where smoothness is prefered over precision.
1020
+ class InverseKinematics::JacobianTranspose : public GradientMethod
1021
+ {
1022
+ public:
1023
+ /// Constructor
1024
+ explicit JacobianTranspose(
1025
+ InverseKinematics* _ik, const Properties& properties = Properties());
1026
+
1027
+ /// Virtual destructor
1028
+ virtual ~JacobianTranspose() = default;
1029
+
1030
+ // Documentation inherited
1031
+ std::unique_ptr<GradientMethod> clone(
1032
+ InverseKinematics* _newIK) const override;
1033
+
1034
+ // Documentation inherited
1035
+ void computeGradient(
1036
+ const Eigen::Vector6d& _error, Eigen::VectorXd& _grad) override;
1037
+ };
1038
+
1039
+ //==============================================================================
1040
+ /// Analytical is a base class that should be inherited by methods that are
1041
+ /// made to solve the IK analytically instead of iteratively. This provides an
1042
+ /// extended API that is relevant to Analytical solvers but not iterative
1043
+ /// solvers.
1044
+ ///
1045
+ /// Creating an Analytical solver will have the side effect of removing the
1046
+ /// error clamp and error weights from your ErrorMethod. If you still want
1047
+ /// your error computations to be clamped and weighted, you should set it
1048
+ /// again after creating the Analytical solver. Clamping and weighting the
1049
+ /// error vector often helps iterative methods to converge smoothly, but it is
1050
+ /// counter-productive for analytical methods which do not typically rely on
1051
+ /// convergence; analytical methods can usually solve the entire error vector
1052
+ /// directly.
1053
+ class InverseKinematics::Analytical : public GradientMethod
1054
+ {
1055
+ public:
1056
+ /// Bitwise enumerations that are used to describe some properties of each
1057
+ /// solution produced by the analytical IK.
1058
+ enum Validity_t
1059
+ {
1060
+ VALID = 0, ///< The solution is completely valid and reaches the target
1061
+ OUT_OF_REACH = 1 << 0, ///< The solution does not reach the target
1062
+ LIMIT_VIOLATED = 1 << 1 ///< The solution has one or more joint positions
1063
+ ///< that violate the joint limits
1064
+ };
1065
+ // TODO(JS): Change to enum class?
1066
+
1067
+ /// If there are extra DOFs in the IK module which your Analytical solver
1068
+ /// implementation does not make use of, those DOFs can be used to
1069
+ /// supplement the analytical solver using Jacobian transpose iteration.
1070
+ /// This enumeration is used to indicate whether you want those DOFs to be
1071
+ /// used before applying the analytical solution, after applying the
1072
+ /// analytical solution, or not be used at all.
1073
+ ///
1074
+ /// Jacobian transpose is used for the extra DOFs because it is inexpensive
1075
+ /// and robust to degenerate Jacobians which are common in low dimensional
1076
+ /// joint spaces. The primary advantage of pseudoinverse methods over
1077
+ /// Jacobian transpose methods is their precision, but analytical methods
1078
+ /// are even more precise than pseudoinverse methods, so that precision is
1079
+ /// not needed in this case.
1080
+ ///
1081
+ /// If you want the extra DOFs to use a different method than Jacobian
1082
+ /// transpose, you can create two separate IK modules (one which is
1083
+ /// analytical and one with the iterative method of your choice) and combine
1084
+ /// them in a HierarchicalIK.
1085
+ enum ExtraDofUtilization
1086
+ {
1087
+ UNUSED = 0,
1088
+ PRE_ANALYTICAL,
1089
+ POST_ANALYTICAL,
1090
+ PRE_AND_POST_ANALYTICAL
1091
+ };
1092
+ // TODO(JS): Change to enum class?
1093
+
1094
+ struct Solution
1095
+ {
1096
+ /// Default constructor
1097
+ Solution(
1098
+ const Eigen::VectorXd& _config = Eigen::VectorXd(),
1099
+ int _validity = VALID);
1100
+
1101
+ /// Configuration computed by the Analytical solver
1102
+ Eigen::VectorXd mConfig;
1103
+
1104
+ /// Bitmap for whether this configuration is valid. Bitwise-compare it to
1105
+ /// the enumerations in Validity_t to whether this configuration is valid.
1106
+ int mValidity;
1107
+ };
1108
+
1109
+ // std::function template for comparing the quality of configurations
1110
+ typedef std::function<bool(
1111
+ const Eigen::VectorXd& _better,
1112
+ const Eigen::VectorXd& _worse,
1113
+ const InverseKinematics* _ik)>
1114
+ QualityComparison;
1115
+
1116
+ struct UniqueProperties
1117
+ {
1118
+ /// Flag for how to use the extra DOFs in the IK module.
1119
+ ExtraDofUtilization mExtraDofUtilization;
1120
+
1121
+ /// How much to clamp the extra error that gets applied to DOFs
1122
+ double mExtraErrorLengthClamp;
1123
+
1124
+ /// Function for comparing the qualities of solutions
1125
+ QualityComparison mQualityComparator;
1126
+
1127
+ /// Default constructor. Uses a default quality comparison function.
1128
+ UniqueProperties(
1129
+ ExtraDofUtilization extraDofUtilization = UNUSED,
1130
+ double extraErrorLengthClamp = DefaultIKErrorClamp);
1131
+
1132
+ /// Constructor that allows you to set the quality comparison function.
1133
+ UniqueProperties(
1134
+ ExtraDofUtilization extraDofUtilization,
1135
+ double extraErrorLengthClamp,
1136
+ QualityComparison qualityComparator);
1137
+
1138
+ /// Reset the quality comparison function to its default behavior.
1139
+ void resetQualityComparisonFunction();
1140
+ };
1141
+
1142
+ struct Properties : GradientMethod::Properties, UniqueProperties
1143
+ {
1144
+ // Default constructor
1145
+ Properties(
1146
+ const GradientMethod::Properties& gradientProperties
1147
+ = GradientMethod::Properties(),
1148
+ const UniqueProperties& analyticalProperties = UniqueProperties());
1149
+
1150
+ // Construct Properties by specifying the UniqueProperties. The
1151
+ // GradientMethod::Properties components will be set to defaults.
1152
+ Properties(const UniqueProperties& analyticalProperties);
1153
+ };
1154
+
1155
+ /// Constructor
1156
+ Analytical(
1157
+ InverseKinematics* _ik,
1158
+ const std::string& _methodName,
1159
+ const Properties& _properties);
1160
+
1161
+ /// Virtual destructor
1162
+ virtual ~Analytical() = default;
1163
+
1164
+ /// Get the solutions for this IK module, along with a tag indicating
1165
+ /// whether each solution is valid. This function will assume that you want
1166
+ /// to use the desired transform given by the IK module's current
1167
+ /// ErrorMethod.
1168
+ const std::vector<Solution>& getSolutions();
1169
+
1170
+ /// Get the solutions for this IK module, along with a tag indicating
1171
+ /// whether each solution is valid. This function will compute the
1172
+ /// configurations using the given desired transform instead of using the
1173
+ /// IK module's current ErrorMethod.
1174
+ const std::vector<Solution>& getSolutions(
1175
+ const Eigen::Isometry3d& _desiredTf);
1176
+
1177
+ /// You should not need to override this function. Instead, you should
1178
+ /// override computeSolutions.
1179
+ void computeGradient(
1180
+ const Eigen::Vector6d& _error, Eigen::VectorXd& _grad) override;
1181
+
1182
+ /// Use this function to fill the entries of the mSolutions variable. Be
1183
+ /// sure to clear the mSolutions vector at the start, and to also return the
1184
+ /// mSolutions vector at the end. Note that you are not expected to evaluate
1185
+ /// any of the solutions for their quality. However, you should set the
1186
+ /// Solution::mValidity flag to OUT_OF_REACH for each solution that does not
1187
+ /// actually reach the desired transform, and you should call
1188
+ /// checkSolutionJointLimits() and the end of the function, which will set
1189
+ /// the LIMIT_VIOLATED flags of any configurations that are outside of the
1190
+ /// position limits.
1191
+ virtual const std::vector<Solution>& computeSolutions(
1192
+ const Eigen::Isometry3d& _desiredBodyTf)
1193
+ = 0;
1194
+
1195
+ /// Get a list of the DOFs that will be included in the entries of the
1196
+ /// solutions returned by getSolutions(). Ideally, this should match up with
1197
+ /// the DOFs being used by the InverseKinematics module, but this might not
1198
+ /// always be possible, so this function ensures that solutions can be
1199
+ /// interpreted correctly.
1200
+ virtual const std::vector<std::size_t>& getDofs() const = 0;
1201
+
1202
+ /// Set the configuration of the DOFs. The components of _config must
1203
+ /// correspond to the DOFs provided by getDofs().
1204
+ void setPositions(const Eigen::VectorXd& _config);
1205
+
1206
+ /// Get the configuration of the DOFs. The components of this vector will
1207
+ /// correspond to the DOFs provided by getDofs().
1208
+ Eigen::VectorXd getPositions() const;
1209
+
1210
+ /// Set how you want extra DOFs to be utilized by the IK module
1211
+ void setExtraDofUtilization(ExtraDofUtilization _utilization);
1212
+
1213
+ /// Get how extra DOFs are being utilized by the IK module
1214
+ ExtraDofUtilization getExtraDofUtilization() const;
1215
+
1216
+ /// Set how much to clamp the error vector that gets applied to extra DOFs
1217
+ void setExtraErrorLengthClamp(double _clamp);
1218
+
1219
+ /// Get how much we will clamp the error vector that gets applied to extra
1220
+ /// DOFs
1221
+ double getExtraErrorLengthClamp() const;
1222
+
1223
+ /// Set the function that will be used to compare the qualities of two
1224
+ /// solutions. This function should return true if the first argument is a
1225
+ /// better solution than the second argument.
1226
+ ///
1227
+ /// By default, it will prefer the solution which has the smallest size for
1228
+ /// its largest change in joint angle. In other words, for each
1229
+ /// configuration that it is given, it will compare the largest change in
1230
+ /// joint angle for each configuration and pick the one that is smallest.
1231
+ ///
1232
+ /// Note that outside of this comparison function, the Solutions will be
1233
+ /// split between which are valid, which are out-of-reach, and which are
1234
+ /// in violation of joint limits. Valid solutions will always be ranked
1235
+ /// above invalid solutions, and joint limit violations will always be
1236
+ /// ranked last.
1237
+ void setQualityComparisonFunction(const QualityComparison& _func);
1238
+
1239
+ /// Reset the quality comparison function to the default method.
1240
+ void resetQualityComparisonFunction();
1241
+
1242
+ /// Get the Properties for this Analytical class
1243
+ Properties getAnalyticalProperties() const;
1244
+
1245
+ /// Construct a mapping from the DOFs of getDofs() to their indices within
1246
+ /// the Node's list of dependent DOFs. This will be called immediately after
1247
+ /// the Analytical is constructed; this one call is sufficient as long as
1248
+ /// the DOFs of Analytical::getDofs() is not changed. However, if your
1249
+ /// Analytical is able to change the DOFs that it operates on, then you will
1250
+ /// need to call this function each time the DOFs have changed.
1251
+ void constructDofMap();
1252
+
1253
+ protected:
1254
+ /// This function will compute a gradient which utilizes the extra DOFs
1255
+ /// that go unused by the Analytical solution and then it will add the
1256
+ /// components of that gradient to the output parameter: grad.
1257
+ ///
1258
+ /// You can override this function to customize how the extra DOFs are used.
1259
+ /// The default behavior is to use a simple Jacobian Transpose method.
1260
+ ///
1261
+ /// The utilization flag will be PRE_ANALYTICAL if the function is being
1262
+ /// called before the Analytical solution is computed; it will be
1263
+ /// POST_ANALYTICAL if the function is being called after the Analytical
1264
+ /// solution is computed.
1265
+ virtual void addExtraDofGradient(
1266
+ Eigen::VectorXd& grad,
1267
+ const Eigen::Vector6d& error,
1268
+ ExtraDofUtilization utilization);
1269
+
1270
+ /// Go through the mSolutions vector and tag entries with LIMIT_VIOLATED if
1271
+ /// any components of their configuration are outside of their position
1272
+ /// limits. This will NOT clear the LIMIT_VIOLATED flag from entries of
1273
+ /// mSolutions which are already tagged with it, even if they do not violate
1274
+ /// any limits.
1275
+ void checkSolutionJointLimits();
1276
+
1277
+ /// Vector of solutions
1278
+ std::vector<Solution> mSolutions;
1279
+
1280
+ /// Properties for this Analytical IK solver
1281
+ UniqueProperties mAnalyticalP;
1282
+
1283
+ private:
1284
+ /// This maps the DOFs provided by getDofs() to their index in the Node's
1285
+ /// list of dependent DOFs. This map is constructed by constructDofMap().
1286
+ std::vector<int> mDofMap;
1287
+
1288
+ /// List of extra DOFs in the module which are not covered by the Analytical
1289
+ /// IK implementation. The index of each DOF is its dependency index in the
1290
+ /// JacobianNode (i.e. the column it applies to in the Node's Jacobian).
1291
+ std::vector<std::size_t> mExtraDofs;
1292
+
1293
+ /// A cache for the valid solutions. The valid and invalid solution caches
1294
+ /// are kept separate so that they can each be sorted by quality
1295
+ /// individually. Valid solutions will always be at the top of mFinalResults
1296
+ /// even if their quality is scored below the invalid solutions.
1297
+ std::vector<Solution> mValidSolutionsCache;
1298
+
1299
+ /// A cache for the out of reach solutions.
1300
+ std::vector<Solution> mOutOfReachCache;
1301
+
1302
+ /// A cache for solutions that violate joint limits
1303
+ std::vector<Solution> mLimitViolationCache;
1304
+
1305
+ /// A cache for storing the current configuration
1306
+ Eigen::VectorXd mConfigCache;
1307
+
1308
+ /// A cache for storing the current configuration so that it can be restored
1309
+ /// later. This is different from mConfigCache which will not be used to
1310
+ /// restore the configuration.
1311
+ Eigen::VectorXd mRestoreConfigCache;
1312
+
1313
+ /// A cache for storing the gradient for the extra DOFs
1314
+ Eigen::VectorXd mExtraDofGradCache;
1315
+ };
1316
+
1317
+ //==============================================================================
1318
+ /// The InverseKinematics::Objective Function is simply used to merge the
1319
+ /// objective and null space objective functions that are being held by an
1320
+ /// InverseKinematics module. This class is not meant to be extended or
1321
+ /// instantiated by a user. Call InverseKinematics::resetProblem() to set
1322
+ /// the objective of the module's Problem to an InverseKinematics::Objective.
1323
+ class InverseKinematics::Objective final : public Function,
1324
+ public optimizer::Function
1325
+ {
1326
+ public:
1327
+ DART_DEFINE_ALIGNED_SHARED_OBJECT_CREATOR(InverseKinematics::Objective)
1328
+
1329
+ /// Constructor
1330
+ Objective(InverseKinematics* _ik);
1331
+
1332
+ /// Virtual destructor
1333
+ virtual ~Objective() = default;
1334
+
1335
+ // Documentation inherited
1336
+ optimizer::FunctionPtr clone(InverseKinematics* _newIK) const override;
1337
+
1338
+ // Documentation inherited
1339
+ double eval(const Eigen::VectorXd& _x) override;
1340
+
1341
+ // Documentation inherited
1342
+ void evalGradient(
1343
+ const Eigen::VectorXd& _x, Eigen::Map<Eigen::VectorXd> _grad) override;
1344
+
1345
+ protected:
1346
+ /// Pointer to this Objective's IK module
1347
+ sub_ptr<InverseKinematics> mIK;
1348
+
1349
+ /// Cache for the gradient of the Objective
1350
+ Eigen::VectorXd mGradCache;
1351
+
1352
+ /// Cache for the null space SVD
1353
+ Eigen::JacobiSVD<math::Jacobian> mSVDCache;
1354
+ // TODO(JS): Need to define aligned operator new for this?
1355
+
1356
+ /// Cache for the null space
1357
+ Eigen::MatrixXd mNullSpaceCache;
1358
+
1359
+ public:
1360
+ // To get byte-aligned Eigen vectors
1361
+ EIGEN_MAKE_ALIGNED_OPERATOR_NEW
1362
+ };
1363
+
1364
+ //==============================================================================
1365
+ /// The InverseKinematics::Constraint Function is simply meant to be used to
1366
+ /// merge the ErrorMethod and GradientMethod that are being held by an
1367
+ /// InverseKinematics module. This class is not meant to be extended or
1368
+ /// instantiated by a user. Call InverseKinematics::resetProblem() to set the
1369
+ /// first equality constraint of the module's Problem to an
1370
+ /// InverseKinematics::Constraint.
1371
+ class InverseKinematics::Constraint final : public Function,
1372
+ public optimizer::Function
1373
+ {
1374
+ public:
1375
+ /// Constructor
1376
+ Constraint(InverseKinematics* _ik);
1377
+
1378
+ /// Virtual constructor
1379
+ virtual ~Constraint() = default;
1380
+
1381
+ // Documentation inherited
1382
+ optimizer::FunctionPtr clone(InverseKinematics* _newIK) const override;
1383
+
1384
+ // Documentation inherited
1385
+ double eval(const Eigen::VectorXd& _x) override;
1386
+
1387
+ // Documentation inherited
1388
+ void evalGradient(
1389
+ const Eigen::VectorXd& _x, Eigen::Map<Eigen::VectorXd> _grad) override;
1390
+
1391
+ protected:
1392
+ /// Pointer to this Constraint's IK module
1393
+ sub_ptr<InverseKinematics> mIK;
1394
+ };
1395
+
1396
+ } // namespace dynamics
1397
+ } // namespace dart
1398
+
1399
+ #include <dart/dynamics/detail/InverseKinematics.hpp>
1400
+
1401
+ #endif // DART_DYNAMICS_INVERSEKINEMATICS_HPP_