Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 2.41 KB

File metadata and controls

48 lines (34 loc) · 2.41 KB

AI Code Assistant Instructions for MoveIt Pro Example Workspace

MuJoCo Scene Files

Keyframe qpos must match model DOF count

When editing scene.xml files (adding/removing bodies with joints), the <keyframe> section's qpos attribute must have exactly the number of values matching the model's total degrees of freedom. A mismatch causes ros2_control_node to crash with:

Error: keyframe 0: invalid qpos size, expected length <N>

Each joint type contributes to qpos:

  • freejoint: 7 values (x, y, z, qw, qx, qy, qz)
  • hinge/slide: 1 value each
  • ball: 4 values (quaternion)

After adding or removing bodies with joints, remove the keyframe and let MuJoCo use body pos= attributes for initial positions.

MuJoCo documentation

Refer to docs.picknik.ai for MuJoCo configuration guides:

Objective XML Files

MetadataFields required for CI

Every objective XML file must include a MetadataFields block inside the TreeNodesModel section. The validate_objectives CI check will fail without it.

<TreeNodesModel>
  <SubTree ID="My Objective Name">
    <MetadataFields>
      <Metadata runnable="true" />
      <Metadata subcategory="Category Name" />
    </MetadataFields>
  </SubTree>
</TreeNodesModel>
  • runnable — set to "true" for top-level objectives the user can run, "false" for subtrees only called by other objectives
  • subcategory — groups the objective in the UI (e.g., "AprilTag", "Grasping", "MuJoCo Simulation")