RoboSkillHub
Catalog / Tools
tool

geometry

Pure-math 3D geometry toolbox — back-project masks and depth to point clouds, DBSCAN-filter noise, fit oriented bounding boxes, derive top-down/front grasp poses, and reconstruct collision worlds from RGB-D frames. Use when a workflow needs perception geometry or planner inputs computed on CPU with no model weights.

Note

exclude_robot_points models the Franka Panda's links; on another arm its points are not masked.

Functions

geometry.depth_to_point_cloud Convert a metric depth image to a camera-frame point cloud.
geometry.mask_to_world_points Back-project a 2D mask to 3D world points via depth + calibration.
geometry.pixel_to_world_point Back-project a single pixel to a 3D world point.
geometry.transform_points Apply a rigid SE(3) transform to 3D points.
geometry.fit_planar_feature Fit a 6D frame, normal, median radius, and robust inner/outer radii to a ring, loop, rim, or planar opening cloud.
geometry.fit_linear_feature Fit an axis and robust endpoints to a rod, peg, shaft, or hook cloud.
geometry.cloud_to_attachment Convert an observed object cloud into an attached collision model and object-to-TCP transform.
geometry.compute_feature_mate Compute metric approach, engagement, and seating poses for compatible held and fixture features.
geometry.exclude_robot_points FK-sphere removal of robot-body points from a cloud (7-DOF Franka; other arms pass through).
geometry.filter_noise DBSCAN noise filtering (keeps all non-noise points).
geometry.compute_obb Fit an upright oriented bounding box to 3D points (HyRL fit).
geometry.filter_and_compute_obb DBSCAN filter then OBB fit in one call.
geometry.top_down_grasp_from_obb One world-aligned top-down grasp pose from an OBB.
geometry.top_down_grasp_candidates Fan of top-down grasp candidates (canonical primary+alt first).
geometry.select_top_down_grasp Pick the most top-down grasp from candidates.
geometry.front_grasp_from_obb Front-approach grasp/pre-grasp for handles (drawers, doors).
geometry.build_world_config Reconstruct a multi-surface collision world from RGB-D; touching planes are separated into closed slabs, residual non-planar clusters are meshed independently, and optional live robot spheres remove self-returns before meshing.
geometry.rotate_quat_z90 Rotate a wxyz quaternion 90 degrees around world Z.
geometry.compute_drop_position Drop position above a container OBB.
geometry.compute_xy_distance XY-plane distance between two 3D points.
geometry.iou IoU of two axis-aligned 2D boxes.
geometry.pose_distance Euclidean distance between two 3D positions.

Use it

Take this bundle (and the tools it calls) into a registry for your task, then point your policy generator at it:

git clone https://github.com/runtime-si/RoboSkillHub
cd RoboSkillHub && uv sync
uv run --no-sync roboskillhub search "pure-math 3d geometry toolbox" --why
uv run --no-sync roboskillhub view --bundles geometry --out my_registry

See Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.