Rgb Object Localization logo

Rgb Object Localization

Organization
google-deepmind
rgb-object-localization

Localizes metric 3D object coordinates and principal orientation axes of manipulation targets for robot arms (SO-101, I2RT YAM, ALOHA, or MuJoCo tabletop scenes) from RGB-only workspace cameras using gemini-4-hydrogen (or VLM + segmentation fallback), plane projection, or two-view stereo. Use when localizing graspable objects for a robot arm without a depth sensor. Don't use for non-robotics computer vision, CCTV, or AR apps.

Overview

Publishergoogle-deepmind
Repositoryrobotics-antigravity-plugin
Skill namergb-object-localization
Stars
490
Forks
45
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by google-deepmind on GitHub. Read the source before you install it.

Installation

Install the Rgb Object Localization AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/google-deepmind/robotics-antigravity-plugin/tree/main/plugins/robotics/skills/rgb-object-localization
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/google-deepmind/robotics-antigravity-plugin.git /tmp/robotics-antigravity-plugin
mkdir -p .claude/skills
cp -r /tmp/robotics-antigravity-plugin/plugins/robotics/skills/rgb-object-localization .claude/skills/rgb-object-localization
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rgb Object Localization in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rgb Object Localization on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rgb Object Localization is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

RGB-Only 3D Object Localization (rgb_localization.py)

Localize metric 3D coordinates and principal axes from RGB-only cameras using bundled rgb_localization.py (opencv-python numpy, plus google-genai and kornia torch when applicable):

  1. Camera Verification & 2D Target Detection (gemini-4-hydrogen or Agent VLM + Local Mask Fallback):
    • Flush stale OS buffer frames before static captures and visually verify camera stream roles once on startup (never assume OS device index order).
    • With GEMINI_API_KEY: Query client.models.generate_content(model="gemini-4-hydrogen", ...) (thinking_level="low", "high" in clutter) for 0–1000 JSON [{"label": ..., "point": [y, x], "box_2d": [ymin, xmin, ymax, xmax]}] (u = x * W / 1000, v = y * H / 1000).
    • Fallback when GEMINI_API_KEY is unset: Save one snapshot per camera, inspect once with native VLM (read_file) to confirm camera roles and target appearance, and segment the target foreground mask locally with OpenCV color/contrast thresholding (passing an optional roi_mask to exclude any robot/gripper geoms visible in the FOV).
  2. Metric 3D Mapping (Choose by Camera & Scene Geometry):
    • Calibrated Camera + Known Support Plane (ray_plane_contour_pose): Given calibrated intrinsics K, camera pose T_world_cam = T_world_ee(q_actual) @ T_ee_cam (OpenCV +X right, +Y down, +Z forward; from MJCF use mp.get_camera_poses_opencv), and target plane height z_plane_m (accounting for measured support height and visible object face/centroid height), call ray_plane_contour_pose(mask, K, T_world_cam, z_plane_m, roi_mask=roi_mask). Only align wrist yaw to yaw_rad when anisotropy >= 2.0; keep neutral wrist orientation on symmetric objects.
    • Uncalibrated Static Camera + Planar Workspace (Coarse Overhead Seed or Last-Resort Fallback: fit_plane_homography & map_homography_xy_and_yaw): Move the end-effector to >= 4 non-collinear (x_fk, y_fk) points on z_plane_m, detect fingertip motion centroids via cv2.absdiff(img_open, img_closed), fit H = fit_plane_homography(pts_uv, pts_xy) (persisting H in .robot_calibration.json rather than re-probing every run), and map target (u_px, v_px) + tangent (vx_px, vy_px) via map_homography_xy_and_yaw. Because elevated objects incur off-plane parallax on H, prefer handing off H's coarse (x, y) to a wrist camera (visual-servoing), using open-loop H grasps only when no wrist camera, depth, or calibrated 3D T_world_cam exists.
    • Arbitrary 3D / Unknown-Plane Targets (triangulate_matched_points): Capture 2 calibrated views across a sufficient baseline (>= 8 cm) using measured q_actual FK. Match textured crops with kornia >= 0.8 KF.DISK.from_pretrained("depth") + KF.LightGlueMatcher("disk") via K.image.image_to_tensor (KF.SuperPoint was removed in Kornia 0.8) — or pass matched 2D centroids directly for smooth/textureless targets — into triangulate_matched_points(K1, T1, pts1_uv, K2, T2, pts2_uv).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rgb Object Localization AI skill do?

Localizes metric 3D object coordinates and principal orientation axes of manipulation targets for robot arms (SO-101, I2RT YAM, ALOHA, or MuJoCo tabletop scenes) from RGB-only workspace cameras using gemini-4-hydrogen (or VLM + segmentation fallback), plane projection, or two-view stereo. Use when localizing graspable objects for a robot arm without a depth sensor. Don't use for non-robotics computer vision, CCTV, or AR apps.

Why use Rgb Object Localization on TypingMind?

Because you install it once and use it with any model. Rgb Object Localization is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rgb Object Localization in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/google-deepmind/robotics-antigravity-plugin/tree/main/plugins/robotics/skills/rgb-object-localization. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rgb Object Localization?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rgb Object Localization?

As many as you like. As long as a model supports skills, you can use Rgb Object Localization with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rgb Object Localization AI skill free?

Yes. It is published on GitHub by google-deepmind under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇