Skip to content

Add IMU support to OAK-D-S2 description - #809

Open
adityakamath wants to merge 3 commits into
luxonis:kiltedfrom
adityakamath:kilted
Open

adityakamath wants to merge 3 commits into
luxonis:kiltedfrom
adityakamath:kilted

Conversation

@adityakamath

Copy link
Copy Markdown

Summary

The OAK-D-S2 has an onboard IMU, but it was missing from depthai_descriptions. The model was not in the has_imu list in depthai_macro.urdf.xacro, so no IMU frame or joint was generated for it.

This PR adds OAK-D-S2 to that list and adds an S2 entry in base_macro.urdf.xacro with the IMU offset and orientation. The existing IMU link/joint block is reused as is.

The S2 offsets (xyz = -0.008 -0.037945 -0.00079, rpy = π π/2 0) are copied from OAK-D-PRO. They have not been checked against the S2 CAD or datasheet. Please correct them if you have the exact values.

Related issues

None

Compatibility and configuration

None. Only the OAK-D-S2 URDF output changes: it now includes <camera_name>_imu_frame and <camera_name>_imu_joint.

Testing

  • ROS distribution and OS: Kilted, Linux
  • DepthAI library version: not applicable (URDF only)
  • Camera model and connection (USB / PoE): OAK-D S2, USB-C
  • Test commands or launch configuration:
    xacro depthai_descriptions/urdf/depthai_descr.urdf.xacro camera_model:=OAK-D-S2
  • Results: the URDF renders without errors and contains oak_imu_frame and oak_imu_joint

Visuals (optional)

None

Restore the has_imu link/joint block removed by the previous commit,
which left mismatched XML tags and broke xacro for all models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant