Catalog / Tools
toolgeometry
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.
Kind
Tool · perceive: finds and measures things in the scene
Robots
any robot, tuned on panda
Runs
in its own environment over
stdio-msgpackUsed by
computing-feature-mating-poses, grasping-a-cable-by-its-plug, grasping-a-cable-lying-flat, grasping-concave-contour, grasping-direct-ik, grasping-linear-feature, grasping-short-axis, grasping-with-planner, perceiving-functional-features, perceiving-next-item, perceiving-object-parts, perceiving-objects, perceiving-objects-oneshot, perceiving-relational-correspondences, perceiving-sorting-pairs, placing-into-container-obb, placing-on-receptacle-top-surface, planning-held-object-motion, reading-domino-pips-and-orientation, reconstructing-collision-worlds, registering-held-objects, routing-parts-to-sort-bins-by-id-and-colour, sampling-labeled-points-in-mask, segmenting-and-picking-pieces-classical, selecting-free-placement-spots, straightening-a-cable-toward-a-target-curve, transporting-objects, verifying-grasps, verifying-placement
License
MIT
Source
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_registrySee Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.