A self-contained Robonix body package for an AgileX Ranger Mini V3 carrying a
Piper arm. The simulator can use a Web or native MuJoCo backend and defaults to
Web. Start MuJoCo in one terminal, load the body package
with rbnx boot in another, then use rbnx chat for mapping, exploration,
navigation, obstacle avoidance, perception, grasping, and placement.
The Web backend supports both Gaussian Splatting (.spz) and textured Mesh
environments. The native backend supports Mesh environments and exits with an
error for SPZ. The selected environment determines the visual mode automatically.
MuJoCo geometry remains the source of contact, LiDAR, and depth data in both modes,
so visual assets and robot capabilities stay cleanly separated.
The native viewer renders Mesh environments directly through MuJoCo’s
hardware-accelerated OpenGL path, generally producing clearer and more stable
materials, lighting, and overall presentation than the Web viewer. It requires
a connected display and an available X11 or WSLg graphics session. Use
--headless when no display is available; RGB cameras still require the GPU.
The viewer starts with a free camera: right-drag pans, Shift + right-drag
pans horizontally, left-drag rotates, and the wheel zooms.
Audio is intentionally omitted. SPZ splats and static SceneSmith furniture are not
graspable; manipulation is limited to dynamic objects explicitly registered by an
environment.
Architecture
rbnx chat / rbnx ask
|
Pilot + Executor + Atlas + Soma + Scene
|
Mapping / Nav2 / Explore / Pick
|
six local primitives
|
ROS 2 <-> WebSocket bridge <-> Web MuJoCo (default, SPZ/Mesh)
\----> native MuJoCo (Mesh, GPU viewer/RGB)
|-- physics, sensors, dynamic objects
Robot dimensions, footprint, hierarchy, and gripper state are defined in
soma.yaml; the transform tree is in urdf/ranger_piper.urdf; robot-specific
RTAB-Map and Nav2 parameters live in config/. Each local package contains a
package_manifest.yaml, config.spec, and CAPABILITY.md.
The end-to-end setup is tested on x86_64 Ubuntu 22.04 with ROS 2 Humble, Docker,
and rbnx 0.1.0. You need:
Docker Engine with the Compose plugin; the current user must be able to run docker ps;
Node.js 20 or newer, Python 3, and curl;
a WebGL 2 desktop session for the Web backend, or SIM_HEADLESS=1 on a machine without a display;
X11/WSLg, hardware OpenGL, and /dev/dxg for the native backend;
a Robonix source tree and the rbnx command;
network access to npm, GitHub, and the Playwright browser download service during bootstrap.
SPZ rendering is expensive under software WebGL. Native MuJoCo physics still runs
on the CPU, while its viewer and offscreen RGB cameras use the GPU. Native startup
rejects llvmpipe and other software renderers. --headless disables only the
native viewer; camera rendering remains GPU-backed.
Installation
1. Install Robonix
Install Robonix using the official documentation and
make its source tree available locally.
2. Configure this body package
git clone <repository-url> ~/mujoco_robonix
cd ~/mujoco_robonix
cp .env.example .env
Edit .env:
# Robonix is normally discovered through `rbnx path robonix-api`.
# Set one of these only when automatic discovery is unavailable.
# ROBONIX_SOURCE_PATH=/home/your-name/robonix
# ROBONIX_API_PATH=/home/your-name/robonix/pylib/robonix-api
VLM_BASE_URL=your-model-url
VLM_API_KEY=replace-me
VLM_MODEL=your-model-name
# Optional. The bridge image contains Fast DDS by default.
MUJOCO_RMW_IMPLEMENTATION=rmw_fastrtps_cpp
# Default simulator backend. Valid values: web, native.
# SIM_BACKEND=web
# Set 1 on a machine with no display: the native viewer does not open, and the
# web backend renders in a headless browser instead of a window.
# SIM_HEADLESS=0
# Web backend, headless only. 1 renders on the GPU through ANGLE/EGL; 0 falls
# back to software WebGL, which is far slower. Ignored when SIM_HEADLESS=0.
# SIM_GPU_HEADLESS=1
# Native mode rejects software OpenGL unless explicitly disabled.
# SIM_GPU_REQUIRED=1
The simulator resolves and validates robonix-api before creating its bridge
container. Explicit paths, Robonix Console installations, sibling source
checkouts, and rbnx path robonix-api are supported without editing scripts.
VLM_API_KEY is shared by Pilot and the Pick skill. Keep it out of Git. Define it
in the project .env or export it before sourcing scripts/env.sh.
3. Bootstrap
cd ~/mujoco_robonix
bash scripts/bootstrap.sh
Bootstrap installs frontend dependencies from the lockfile, installs Playwright
Chromium, builds the ROS 2 Humble bridge image, validates the six primitives and
Pick skill, and runs rbnx build -f robonix_manifest.yaml for the official
Mapping, Navigation, and Explore packages.
Generated dependencies, virtual environments, Robonix build state, and runtime
logs are excluded by .gitignore.
Start
The lifecycle mirrors the Robonix Webots example: simulator, Robonix stack, and
chat each use a separate terminal.
Terminal 1: MuJoCo simulator
cd ~/mujoco_robonix
bash sim/start.sh
With no backend option this starts web. Wait for [sim/start] ... ready.
The default UI is:
Bridge health is available at http://127.0.0.1:8766/health. Startup failures are
captured in .runtime/bridge.log and .runtime/browser.log. The bridge uses
MUJOCO_RMW_IMPLEMENTATION and deliberately does not inherit a generic shell
RMW_IMPLEMENTATION; keep the Humble image on rmw_fastrtps_cpp unless you also
install another RMW implementation in that image.
Start the native viewer for a Mesh environment. A connected display and an
X11/WSLg graphics session are required:
The same defaults can be set with SIM_BACKEND=web|native and
SIM_HEADLESS=0|1 in .env. Native mode accepts only visualMode=mesh;
starting kitchen or meeting_room with native mode prints
native backend does not support SPZ and exits nonzero. GPU enforcement is on
by default; set SIM_GPU_REQUIRED=0 only for deliberate software-rendering diagnostics.
Terminal 2: Robonix body package
cd ~/mujoco_robonix
source scripts/env.sh
rbnx boot
Run rbnx boot from the repository root so it finds robonix_manifest.yaml.
The six primitives plus Mapping, Nav2, and Scene should become ACTIVE. Pick and
Explore are on-demand skills and may initially appear as INACTIVE.
Check the running system from another configured shell:
cd ~/mujoco_robonix
source scripts/env.sh
rbnx chat
Example requests:
What capabilities does this robot have?
Capture the front camera and describe what the robot sees.
Move forward by 0.3 meters.
Explore the living room, bedroom, and bathroom for up to 300 seconds at no more than 0.18 m/s; return the task ID.
Navigate to map coordinate x=3.92, y=3.25 with final yaw=0, then pick up the water glass on the side table.
Put down the held object safely.
The side table also contains a TV remote and a small succulent. Exploration is
asynchronous: start it once, retain the returned task ID, and query that task for
progress. Do not run manual base commands, navigation, or grasping concurrently
with exploration.
For non-interactive debugging:
rbnx ask "Explore the apartment for up to 300 seconds and return the task ID."
rbnx ask "Navigate to x=3.92, y=3.25, yaw=0, then pick up the water glass on the side table."
Environments
Environment ID
Display name
Visual mode
Dynamic objects
scenesmith_house_187
SceneSmith One-Bedroom Apartment 187 (default)
Mesh
Water glass, TV remote, succulent
kitchen
Kitchen
SPZ
None
meeting_room
Meeting Room
SPZ
None
scenesmith_room_005
SceneSmith Bedroom 005
Mesh
None
scenesmith_room_030
SceneSmith Living Room 030
Mesh
Glass jar, hardcover book, plant
scenesmith_room_036
SceneSmith Dining Room 036
Mesh
None
scenesmith_room_125
SceneSmith Office 125
Mesh
None
Environment gallery
Web MuJoCo Viewer
Default apartment
Bedroom
SceneSmith One-Bedroom Apartment 187
SceneSmith Bedroom 005
Living room
Dining room
SceneSmith Living Room 030
SceneSmith Dining Room 036
Office
Meeting Room SPZ
SceneSmith Office 125
Meeting Room
Kitchen SPZ:
Native MuJoCo Viewer
All Mesh environments supported by native MuJoCo are shown below:
Default apartment
Dining room 036
Bedroom 005
Living room 030
Office 125
To switch environments, stop Robonix and the simulator, then restart the simulator
with another ID:
The environment changes visuals and geometry, not provider IDs or robot
capabilities. assets/environments/manifest.json selects visualMode
automatically; it is not a user-facing startup option.
kitchen and meeting_room require the Web backend. Every Mesh environment can
run with either backend.
Validation
With the default environment and Robonix stack running, on either backend:
cd ~/mujoco_robonix
bash scripts/acceptance.sh
The acceptance suite verifies provider state, both RGB-D cameras, LiDAR, point
cloud, IMU, a non-empty occupancy map, Nav2 lifecycle, real base displacement,
precise Nav2 arrival at the manipulation pose, five-second grasp stability, safe
placement, and arm stow. It resets and moves the robot; do not run it alongside
manual controls or a chat task.
Validate local packages without starting the simulator:
source scripts/env.sh
for package_dir in primitives/* skills/pick; do
[[ -f "$package_dir/package_manifest.yaml" ]] && rbnx validate "$package_dir"
done
While the native container is running, use this fast model, SPZ guard, ray-sensor,
and GPU RGB smoke test:
Stop Robonix from Terminal 2 with Ctrl-C, or from another configured shell:
rbnx shutdown
Then stop Terminal 1 with Ctrl-C, or run:
bash sim/stop.sh
The two lifecycles are intentionally independent: sim/stop.sh does not shut
down Robonix, and rbnx shutdown does not close the simulator runtime.
The normal UI hides keyboard driving and actuator debug controls. Add &dev=1
to the URL during development to restore them. Orbiting the camera is always
available, while only the robot itself is draggable.
Add environments
The environment registry is assets/environments/manifest.json.
collision.xml must include continuous ground and obstacles. Environment geoms
visible to sensors use group="3". transform.json registers SPZ and MuJoCo
coordinates, and spawn.json defines a collision-free initial base pose. PLY to
SPZ conversion, collision generation, and spawn search are offline environment
authoring steps rather than robot primitives. Commit the final runtime assets,
not raw datasets or diagnostics.
The converter makes furniture static, generates collision geometry, searches for
a safe spawn, prunes unused assets, and preserves doorways between floor regions.
--interactive-config extracts selected small SceneSmith objects into an
environment-level objects.xml with free joints and compact colliders. Register
that file as objectsPath; dynamic task object names use the task_ prefix.
Limitations and safety
This is a simulation body package; it does not include real Ranger or Piper CAN drivers.
SPZ is visual-only, so sensor and contact fidelity depend on its registered collision XML.
Pick implements a verified vertical grasp for registered task objects, not arbitrary 6-DoF grasp planning.
The front camera serves Scene and Mapping; the wrist camera serves manipulation confirmation.
Acceptance tests actively move the base and arm and modify dynamic object state.
Repository layout
assets/robots/ranger_mini_v3_piper/ Ranger, Piper, and sensor assets
assets/environments/ replaceable SPZ and Mesh environments
primitives/ six local Robonix primitives
skills/pick/ object resolution, pick, and placement
sim/bridge/ simulator-runtime-to-ROS 2 bridge
sim/native/ native scene, control, sensors, and viewer
sim/tests/ end-to-end runtime acceptance
config/ RTAB-Map and Nav2 robot parameters
docs/media/ README screenshots and demo recordings
urdf/ + soma.yaml transform tree, topology, footprint
robonix_manifest.yaml rbnx boot deployment entry point
scripts/ bootstrap, lifecycle, validation, conversion
Project code is licensed under Apache-2.0. Third-party asset licenses and notices
are stored with their corresponding assets and continue to apply on redistribution.
关于
Robonix robot deployment for the AgileX Ranger with a Piper arm in MuJoCo simulation
MuJoCo Ranger Piper for Robonix
English | 简体中文
A self-contained Robonix body package for an AgileX Ranger Mini V3 carrying a Piper arm. The simulator can use a Web or native MuJoCo backend and defaults to Web. Start MuJoCo in one terminal, load the body package with
rbnx bootin another, then userbnx chatfor mapping, exploration, navigation, obstacle avoidance, perception, grasping, and placement.The Web backend supports both Gaussian Splatting (
.spz) and textured Mesh environments. The native backend supports Mesh environments and exits with an error for SPZ. The selected environment determines the visual mode automatically. MuJoCo geometry remains the source of contact, LiDAR, and depth data in both modes, so visual assets and robot capabilities stay cleanly separated.Demo
Web MuJoCo Viewer
Watch the complete 64-second navigation and cup-pick demo
See the complete environment gallery below. Repository media lives under
docs/media/.Native MuJoCo viewer
Watch the complete 103-second native navigation and cup-pick demo
The native viewer renders Mesh environments directly through MuJoCo’s hardware-accelerated OpenGL path, generally producing clearer and more stable materials, lighting, and overall presentation than the Web viewer. It requires a connected display and an available X11 or WSLg graphics session. Use
--headlesswhen no display is available; RGB cameras still require the GPU. The viewer starts with a free camera: right-drag pans,Shift + right-dragpans horizontally, left-drag rotates, and the wheel zooms.Capabilities
ranger_chassismid360_lidarmid360_imufront_camerawrist_camerapiper_ctlmappingnav2sceneexplorepickAudio is intentionally omitted. SPZ splats and static SceneSmith furniture are not graspable; manipulation is limited to dynamic objects explicitly registered by an environment.
Architecture
Robot dimensions, footprint, hierarchy, and gripper state are defined in
soma.yaml; the transform tree is inurdf/ranger_piper.urdf; robot-specific RTAB-Map and Nav2 parameters live inconfig/. Each local package contains apackage_manifest.yaml,config.spec, andCAPABILITY.md.For implementation details, see Robonix integration and simulation architecture.
Requirements
The end-to-end setup is tested on x86_64 Ubuntu 22.04 with ROS 2 Humble, Docker, and
rbnx 0.1.0. You need:docker ps;curl;SIM_HEADLESS=1on a machine without a display;/dev/dxgfor the native backend;rbnxcommand;SPZ rendering is expensive under software WebGL. Native MuJoCo physics still runs on the CPU, while its viewer and offscreen RGB cameras use the GPU. Native startup rejects
llvmpipeand other software renderers.--headlessdisables only the native viewer; camera rendering remains GPU-backed.Installation
1. Install Robonix
Install Robonix using the official documentation and make its source tree available locally.
2. Configure this body package
Edit
.env:The simulator resolves and validates
robonix-apibefore creating its bridge container. Explicit paths, Robonix Console installations, sibling source checkouts, andrbnx path robonix-apiare supported without editing scripts.VLM_API_KEYis shared by Pilot and the Pick skill. Keep it out of Git. Define it in the project.envor export it before sourcingscripts/env.sh.3. Bootstrap
Bootstrap installs frontend dependencies from the lockfile, installs Playwright Chromium, builds the ROS 2 Humble bridge image, validates the six primitives and Pick skill, and runs
rbnx build -f robonix_manifest.yamlfor the official Mapping, Navigation, and Explore packages.Generated dependencies, virtual environments, Robonix build state, and runtime logs are excluded by
.gitignore.Start
The lifecycle mirrors the Robonix Webots example: simulator, Robonix stack, and chat each use a separate terminal.
Terminal 1: MuJoCo simulator
With no backend option this starts
web. Wait for[sim/start] ... ready. The default UI is:Bridge health is available at
http://127.0.0.1:8766/health. Startup failures are captured in.runtime/bridge.logand.runtime/browser.log. The bridge usesMUJOCO_RMW_IMPLEMENTATIONand deliberately does not inherit a generic shellRMW_IMPLEMENTATION; keep the Humble image onrmw_fastrtps_cppunless you also install another RMW implementation in that image.Start the native viewer for a Mesh environment. A connected display and an X11/WSLg graphics session are required:
Run native MuJoCo without the viewer, retaining GPU RGB rendering:
The same defaults can be set with
SIM_BACKEND=web|nativeandSIM_HEADLESS=0|1in.env. Native mode accepts onlyvisualMode=mesh; startingkitchenormeeting_roomwith native mode printsnative backend does not support SPZand exits nonzero. GPU enforcement is on by default; setSIM_GPU_REQUIRED=0only for deliberate software-rendering diagnostics.Terminal 2: Robonix body package
Run
rbnx bootfrom the repository root so it findsrobonix_manifest.yaml. The six primitives plus Mapping, Nav2, and Scene should becomeACTIVE. Pick and Explore are on-demand skills and may initially appear asINACTIVE.Check the running system from another configured shell:
Terminal 3: chat
Example requests:
The side table also contains a TV remote and a small succulent. Exploration is asynchronous: start it once, retain the returned task ID, and query that task for progress. Do not run manual base commands, navigation, or grasping concurrently with exploration.
For non-interactive debugging:
Environments
scenesmith_house_187kitchenmeeting_roomscenesmith_room_005scenesmith_room_030scenesmith_room_036scenesmith_room_125Environment gallery
Web MuJoCo Viewer
Kitchen SPZ:
Native MuJoCo Viewer
All Mesh environments supported by native MuJoCo are shown below:
To switch environments, stop Robonix and the simulator, then restart the simulator with another ID:
The environment changes visuals and geometry, not provider IDs or robot capabilities.
assets/environments/manifest.jsonselectsvisualModeautomatically; it is not a user-facing startup option.kitchenandmeeting_roomrequire the Web backend. Every Mesh environment can run with either backend.Validation
With the default environment and Robonix stack running, on either backend:
The acceptance suite verifies provider state, both RGB-D cameras, LiDAR, point cloud, IMU, a non-empty occupancy map, Nav2 lifecycle, real base displacement, precise Nav2 arrival at the manipulation pose, five-second grasp stability, safe placement, and arm stow. It resets and moves the robot; do not run it alongside manual controls or a chat task.
Validate local packages without starting the simulator:
While the native container is running, use this fast model, SPZ guard, ray-sensor, and GPU RGB smoke test:
Stop
Stop Robonix from Terminal 2 with
Ctrl-C, or from another configured shell:Then stop Terminal 1 with
Ctrl-C, or run:The two lifecycles are intentionally independent:
sim/stop.shdoes not shut down Robonix, andrbnx shutdowndoes not close the simulator runtime.The normal UI hides keyboard driving and actuator debug controls. Add
&dev=1to the URL during development to restore them. Orbiting the camera is always available, while only the robot itself is draggable.Add environments
The environment registry is
assets/environments/manifest.json.A minimal SPZ environment contains:
collision.xmlmust include continuous ground and obstacles. Environment geoms visible to sensors usegroup="3".transform.jsonregisters SPZ and MuJoCo coordinates, andspawn.jsondefines a collision-free initial base pose. PLY to SPZ conversion, collision generation, and spawn search are offline environment authoring steps rather than robot primitives. Commit the final runtime assets, not raw datasets or diagnostics.A minimal Mesh environment contains:
Convert a SceneSmith Room or House export with the repository tool:
The converter makes furniture static, generates collision geometry, searches for a safe spawn, prunes unused assets, and preserves doorways between floor regions.
--interactive-configextracts selected small SceneSmith objects into an environment-levelobjects.xmlwith free joints and compact colliders. Register that file asobjectsPath; dynamic task object names use thetask_prefix.Limitations and safety
Repository layout
Upstream projects and license
Project code is licensed under Apache-2.0. Third-party asset licenses and notices are stored with their corresponding assets and continue to apply on redistribution.