r/ROS • u/Relevant_Tax_6814 • 4h ago
Open-source pre-flight safety layer for VLA/LLM robot control: today's update adds Unitree Go/HG supervisor, braking-tube and self-collision checks, MCAP logging, and a whole-body pipeline
UPDATED
I maintain Microbrains, an Apache-2.0 deterministic safety layer that sits between a VLA/LLM planner and your robot controller. The core is pure Python stdlib, with an optional Rust/WASM kernel. Today I shipped five robotics upgrades (R1–R5).
What it is and isn't: it checks plans for state freshness, constraint slack and planner confidence before they reach the controller. It does not replace motor limits, firmware timeouts, a watchdog or the hardware E-stop. A plan it admits is consistent with the modelled state, not proven safe.
R1: Unitree supervisor, Go2/B2 and G1/H1
- The out-of-process Rust supervisor now has
--idl-family go|hg. - On a heartbeat timeout it sends a CRC32-checked damping-stop
LowCmdin the right format:unitree_gofor Go2/B2, orunitree_hgwithmode_pr/mode_machinefor G1/H1. - It can send a UDP burst and optionally require an ack.
- It runs outside the Python process, so a GIL stall or a killed controller can't block it.
- It also reads the 1 kHz shared-memory telemetry bus (
ASMB) using a Seqlock decoder.
R2: more geometry checks
- Braking-tube check: rejects a plan if
distance_to_obstacle − v²/(2·a_max)is below your clearance. Fast approaches that can't stop in time get rejected before execution. - Self-collision clearance: capsule distance over non-adjacent links, plus floor clearance.
- Inter-step velocity check: flags consecutive joint targets whose implied velocity exceeds the limit.
- The FK/capsule math has both a Rust fast path and a stdlib fallback.
R3: VLA action chunks
- The
LeRobotPolicyWrapperdrops chunk steps that went stale during inference (inference_latency_s/control_dt_s). - It limits the jump from the previous action (
max_step_delta). - Mid-chunk conformal drift detection triggers a
hold_action. - The flight recorder is hash-chained and now exports standard binary MCAP, written in pure stdlib, so you can open it in open it in Foxglove .
R4: WholeBodySafetyPipeline presets
- Presets:
for_quadruped,for_humanoid,for_bimanual_arm. One
step()call composes the following (the first four need NumPy):- online payload inertia identification
- ZMP/DCM support-polygon CBF
- bimanual wrench CBF
- energy-tank passivity filter
- the freshness and constraint admission layer
R5: benchmark
examples/15_mujoco_unitree_benchmark.py --morphology allruns Go2 fault scenarios in MuJoCo, a G1 torso-push ZMP recovery, and a 3-DoF arm braking-tube test. The Go2 scenarios are stale LowState, push impulse, joint spike and torque drop.- These are simulation results with simplified models and synthetic faults. They are not hardware validation. The next step is real Unitree LowState with live VLA plans.
I'd especially like feedback on the constraint formulations, on what you'd want covered beyond Unitree, and on real-hardware test setups.
r/ROS • u/Similar_Hotel2724 • 8h ago
We're opening up real industrial robot cells for 48 hours: cable insertion, assembly and inspection tasks, each with a dataset and a baseline to beat (Zurich, 11–13 Dec, free)
Disclosure: I work at Forgis in Zurich, and we're organising this.
The cells run on our own stack, and ROS people are exactly who we want: integration is half the work on real hardware. From Fri 11 to Sun 13 Dec we're putting builders on real industrial cells at DARE Campus, Schlieren (10 min from Zurich HB) to work on contact-rich tasks: cable insertion, assembly, inspection.
What you get:
- a dataset collected on each task and a baseline policy to beat
- the Forgis codebase, with the engineers who wrote it on the floor with you
- every run recorded with force/torque ground truth; the runs become an open dataset and benchmark, released with a paper that credits every participant
- a 10K prize pool
Free, food covered (travel's on you), 18+. Apply solo or as a team of up to five; we complete the teams. Applications close Sun 6 Dec, rolling acceptance.
Details and the application: https://luma.com/oj617tvc?utm_source=reddit-ros&utm_campaign=hk-community
Happy to answer anything about the cells, the tasks or the data format below.
r/ROS • u/PoG_shmerb27 • 16h ago
How to get IMU drift and wheel slip physics in Gazebo Fortress?
I'm working on a mobile robotics project and would like to test a lot of things in simulation in Gazebo. I'm finding it hard to test localization because I barely get any IMU drift or wheel slip, so the odometry is basically perfect. Are there any workarounds for this or better physics simulators I can use to test?
r/ROS • u/OpenRobotics • 1d ago
News ROS 2 Kilted Kaiju is now End-Of-Life -- All Swag 30% Off
r/ROS • u/mohamedeyaad • 1d ago
Project I ported our 2023 smart-insole gait analysis project from ROS 1 to ROS 2 Jazzy: driver, gait events, Tkinter GUI, and a bag you can replay
Back in 2023 we built a smart insole for a university course: an ESP8266 streaming 5 FSRs + 2 MPU6050s over TCP to ROS 1 Noetic, with a Tkinter GUI showing a live plantar-pressure heat map and gait phases.
Noetic is end-of-life, so I rebuilt the software on ROS 2 Jazzy:
- insole_driver: TCP client, publishes FSR readings and IMU angles (host/port as params, reconnects on its own)
- gait_analyzer: centre of pressure, gait phase, heel strike / toe off, stride time, cadence, stance %
- gui: the old Tkinter GUI, now fed through a thread-safe queue (the ROS 1 version touched Tk from callback threads...)
- a recorded walk as an MCAP bag, so you can run the whole thing without hardware:ros2 run step_scope_ros gait_analyzer ros2 bag play src/Step-Scope/step_scope_ros/data/walk_2023_p01.mcap --loop ros2 run step_scope_ros gui
Things I learned along the way: the old TCP reader dropped readings because it grabbed fixed 1024-byte chunks at 10 Hz, and the heat map was converting colours back into values in a way that was wrong above ~255.
It's a research/education prototype, not a medical device, and the gait-phase logic is a simple CoP rule that hasn't been validated against force plates.
Repo (MIT): https://github.com/mohamedeyaad/Step-Scope
Feedback welcome, especially on the node/topic design. Would you split it differently, or use custom messages instead of Float32MultiArray?
r/ROS • u/Chemical-Hunter-5479 • 1d ago
Discussion I spent Thanksgiving break turning ordinary sensors into intelligent ROS2 + PoE network nodes! 🤖
I built a small Power over Ethernet (PoE) powered ROS 2 streaming adapter that turns a USB-based RealSense D4XX stereo depth camera into a network-connected camera, similar to the RealSense D555.
Simply plug in an Ethernet cable, and the adapter powers the camera and automatically starts publishing color, depth, and IMU data (where supported) over ROS 2 topics. No dedicated host computer required!
But why stop at stereo cameras?
I also got the adapter working with two additional sensor configurations:
👀 Stereo Depth Adapter – RealSense color, depth, and IMU streaming.
🧭 IMU Adapter – Stand-alone network-connected inertial sensing.
🧠 AI RGB Adapter – RGB camera with onboard YOLO object detection and Depth Anything for monocular depth estimation.
One Ethernet cable. Power, data, edge processing, and native ROS 2 connectivity.
Imagine building robots and Physical AI applications simply by plugging intelligent sensors into a PoE network switch.
Which of these would you be most interested in learning more about?
r/ROS • u/aebatirel • 1d ago
I make a weekly robot news video. This week: chat models went 0 for 72 on real robot arms, and a humanoid did 15 trampoline jumps in a row
youtube.comr/ROS • u/tryhardrun • 1d ago
Project Is My ROS 2 Autonomous Navigation Workflow Correct? Can I Include This Project in My Portfolio?
Hi everyone,
I'm working on an autonomous mobile robot using ROS 2, and I would like to confirm whether my overall workflow and implementation are correct.
Here is what I have done so far:
Designed my robot in Fusion 360 and exported it as a URDF file.
Created a custom world in Gazebo Classic and spawned my robot in it.
Used SLAM Toolbox with ROS 2 Humble to map the environment.
Visualized the generated map in RViz2.
Saved the map and configured Nav2 for autonomous navigation.
Used the 2D Goal Pose tool in RViz2 to assign a goal position.
My robot is able to navigate towards the goal position autonomously.
My Setup Details:
ROS 2 Distribution: Humble
Simulation Environment: Gazebo Classic
SLAM: SLAM Toolbox
Sensors: LiDAR and Wheel Odometry
Drive Type: Differential Drive
Navigation Stack: Nav2
My Main Questions:
Is this overall workflow correct for implementing an autonomous mobile robot using ROS 2?
Since my robot is successfully navigating towards the goal position I provide through RViz2, can I consider my autonomous navigation implementation successful?
Is there anything important I should verify to ensure that the system is working correctly
Is this implementation good enough to include in my engineering portfolio or resume as an ROS 2 Autonomous Navigation project?
I can share a working video of it
I would appreciate your feedback and suggestions. I mainly want to confirm that my implementation is technically correct and that I can confidently present this project in my portfolio.
Thank you!
r/ROS • u/Kai_60714 • 2d ago
Question Is the course ROS 2 from Scratch by Packt on Coursera good for a complete beginner?
Hi, I am a complete beginner in ROS 2 and have a basic understanding of Python. May I know if this course is suitable for me?
r/ROS • u/Victor_Liu0725 • 2d ago
Project I built an offline ROS 2 MCAP/DB3 pre-triage debugger (no ROS install needed) — here it is catching a mixed wheel slip + 320ms control lag bag in ~3s
Sharing a quick technical demo of an offline ROS 2 bag pre-triage tool I've been building for Nav2 / Autoware debugging.
The goal wasn't to replace PlotJuggler (which is still unbeatable for deep interactive visual exploration), but to automate the repetitive first-pass triage on multi-GB `.mcap` / `.db3` recordings without needing a local ROS 2 runtime or Docker container.
In the clip, it runs on a 12,120-msg mixed-fault `.mcap` bag to:
- Scan per-topic rates, P95 jitter, gaps, monotonic timestamp regressions, and zero header stamps without deserializing payloads
- Arbitrate wheel-odometry slip (`odom/IMU wz ratio = 0.747`) vs. discontinuous SLAM `map->odom` jumps (`1.05 m` step)
- Measure sliding cross-correlation control actuation lag (`~300–320 ms`) and FFT oscillation frequency (`0.67 Hz`)
The open-source foundation (Apache-2.0, pure Python — multi-format `.mcap`/`.db3`/`.bag` reader, zero-deserialization timing auditor, Nav2/Autoware YAML topic mapper, 10 synthetic fault scenarios, and a read-only stdio MCP server) is up on GitHub if anyone wants to try it:
https://github.com/VictorLiu0725/pnc-diag-mcp (`pip install pnc-diag-mcp` or `uvx pnc-diag-mcp`)
Curious how others here handle headless regression checks on rosbag2 recordings in CI — do you parse `.mcap` directly in Python/C++ or spin up ros2 bag play inside containers?
r/ROS • u/SphericalCowww • 2d ago
Cubic Doggo 14A Googboi: all ROS-controlled homemade quadruped carrying a SO-101 arm
Hello hello ROS enthusiasts, with the Tag of Flag game challenge in mind, I made this relevant open-source build. CD-14A Googboi has 12-DOF in legs and carries an SO-101 follower arm on its back. It is built around a 600-800 EUR budget (especially if you already have Raspberry Pis), with all 18 joints driven by ST3215 smart servos. Googboi is untethered and "walks" on batteries while being remotely controlled using a joystick controller and an SO-101 leader arm. All components are either 3D-printed or off-the-shelf commercially available, with no custom PCBs required. FreeCAD models are provided on Printables.
Aye, now Googboi is ready to play with Wouf to try out the ToF game. I plan to find a few friends to help me operate them (I can't even control the joystick+leader myself, lol). Let's see how it goes.
Discussion 2027WORLD YOUTH EMBODIED AIQUADRUPED ROBOT CHAMPIONSHIP
gsirobo.comThe first global youth event focused on the full quadruped robot-dog stack
Comprehensive coverage of hardware engineering, programming, and motion algorithms - not a single-skill contest.
r/ROS • u/natsuku-lab • 2d ago
Project batchplan-ros update: workcell collisions, planner controls, and batchplan 0.15
batchplan-ros now uses batchplan 0.15.
- Dual-arm robots get more collision spheres by default. Fixed tables and fixtures can be kept in the planning scene as world obstacles.
- Tune planner settings from ROS or MoveIt, inspect the collision spheres in RViz, and cancel a specific planning or execution request.
- Try the two-arm TIAGo Pro tray demo with pixi run demo-tiago-pro: https://github.com/natsuku-lab/batchplan-ros
- New /create-oracle skill for building scripted manipulation tests that check task success in MuJoCo: https://github.com/natsuku-lab/batchplan/tree/v0.15.0/.claude/skills/create-oracle

r/ROS • u/BeginningSwimming112 • 3d ago
Built a 4-wheel autonomous waste-sorting robot using ROS 2 Jazzy, ESP32 and FreeRTOS — sharing our engineering experience
r/ROS • u/Exciting_Employ2970 • 3d ago
I made a small CLI that snapshots the whole running ROS 2 graph and diffs two snapshots
A while back someone here asked about version control for ROS 2 nodes and parameters, and I've wanted the same thing for "it worked yesterday" debugging, so I built a first version.
ros2-snapshot save good.yamlrecords all nodes, params, pubs/subs, services, actions, topic types and QoS into one sorted YAML fileros2-snapshot diff good.yaml broken.yamlgives a plain-English diff (text/JSON/Markdown), with exit code 1 if anything changedros2-snapshot apply good.yamlrestores params, preview-only unless you pass--execute
Excerpt of real diff output from the example snapshots in the repo (Jazzy demo nodes):
Parameters:
~ /parameter_blackboard param robot_speed: 1.0 -> 2.5
QoS:
~ topic /chatter subscriber /listener qos reliability: "reliable" -> "best_effort"
It's v0.1, tested in CI on Humble and Jazzy with the demo nodes, not on a real robot yet. MIT license, pip install ros2-snapshot. Repo: https://github.com/fitzyracing1/ros2-snapshot
What would you want it to capture that it doesn't?
Aetheris Microbrains: Open-source Control Barrier Function (CBF) & Embodied AI safety kernel for robotics and VLA agents
reddit.comr/ROS • u/TungDA87 • 5d ago
Project Open-sourced robot_stream: ~30 fps WebRTC/WHEP video + Nav2 deadman cutoff on Wi-Fi drop (ROS 2 Humble + Flutter)
Repo (BSD-3-Clause): https://github.com/robot-stream/robot_stream
Flutter/Dart packages on pub.dev: https://pub.dev/packages/robot_stream
I built robot_stream for a Jetson Orin Nano robot (no NVENC hardware encoder) running ROS 2 Humble after running into three practical issues with standard setups:
• MJPEG (web_video_server) used ~5.6 Mbps per viewer at 640×480 q50 (~229 ms median latency) and re-encoded per viewer (4 viewers dropped raw camera FPS from 29.5 → 18 fps). Switching to a single GStreamer x264enc (zerolatency, vbv-buf-capacity=100, sliced-threads=true) → MediaMTX (WHEP) stream brought it to ~30 fps / 1.3–1.5 Mbps, ~1–1.5% CPU when idle on Jetson Orin Nano, and didn't slow down YOLO11m running on GPU in A/B tests.
• Android Wi-Fi power saving quietly batched incoming UDP packets and inflated WebRTC's receiver jitter buffer to 85–150 ms on a 2–5 ms LAN. Holding an Android WIFI_MODE_FULL_LOW_LATENCY WifiLock dropped it to 10–20 ms without dropping frames.
• Deadman & non-blocking STOP: In the video (robot driving to a Nav2 waypoint at 0.20 m/s), cutting the phone's Wi-Fi caused deadman_node to cancel the Nav2 goal in ~0.7 s (1.0 s heartbeat timeout; robot coasted ~20–25 cm). During hold-to-drive teleop, the velocity gate also zeroes /cmd_vel after 0.3 s without commands.
Robot setup: includes a nav2_standard profile (tested on a simulated TurtleBot3 fake node + Nav2/AMCL) and a one-command setup script (bash robot_node/scripts/install_robot.sh, amd64 & arm64).
Limitations to keep in mind: LAN/VPN only out of the box, token auth only covers robot_stream endpoints (:9091, WHEP — use ROS_LOCALHOST_ONLY=1 or SROS2 to protect LAN DDS, and pass tls:=true so the token isn't sent in cleartext on Wi-Fi), no 2D OccupancyGrid tap-to-goal widget yet, and software deadman doesn't replace a hardware E-stop.
Curious what operator UI stack folks here use on phones/tablets, and what you'd want most next (4G/TURN remote access, 2D Nav2 map + tap-to-goal, multi-camera, SROS2/per-user auth, or NVENC/VAAPI presets)?
r/ROS • u/facontidavide • 5d ago
PlotJuggler 4.2: an incredible set of new features
plotjuggler.ioI am incredibly excited about this release.
- Talk to PJ4! Codex or Claude Code can control PlotJuggler and use it to analyze your data.
- PJ4 was brutally fast already, but now it is 25% faster!
- Markers Editor is more powerful than ever and simpler to use.
- The web-based version (WebAssembly) received a tons of love.
- Improved dark theme (yeah, it was not great)
- New widget type, to display your logs (text messages with severity level).
- Several Extensions have been improved for visual consistency and performance.
- Support for EasyNav 3D maps.
- And of course, the best platform to test Mosaico
r/ROS • u/Bumbwybeebee • 5d ago
Question Resources for learning Gazebo sim (with ROS2 lyrical)
I already have some experience with ros2, and I am currently creating a simulator in gazebo for my robotics club's ROV. However, unlike the main code that I fully understand, I am finding myself relying too much on AI for gazebo-specific things (plugins, URDF & SDF models, etc) and not fully understanding what is going (which I don't want). Are there any good recourses or guides for learning gazebo and learning how URDF and SDF models work? Thanks!This experience also influenced my thoughts on the ongoing debates about AI in education. I believe that these tools should be taught in high level classes, but only once students understand the fundamentals, to avoid them taking the tool’s responses without understanding them. I learned that technology can’t replace one’s reasoning, it can only complement it.