Microduck ROS 2: No Native Support, But You Can Bridge It

Microduck does not natively run ROS 2. See how its Rust daemons and JSON-RPC API work, how to design a safe bridge, and when to choose another robot.
Nov 14, 2026

A cream and orange biped robot connected to an edge computer on a robotics workbench, with abstract middleware nodes in the background

Short answer: Microduck does not natively run ROS 2. Its public software stack uses Rust daemons and a JSON-RPC contract over Unix sockets. A ROS 2 integration can be added as an external bridge, but the public Microduck repository reviewed on 14 November 2026 does not ship an official ROS 2 package, a ros2_control hardware interface or a DDS graph inside robotd.

That distinction is important. “Microduck can work with ROS 2 through a bridge you build” is true. “Microduck supports ROS 2 out of the box” is not. If an existing ROS 2 stack is the non-negotiable part of the project, a vendor-maintained ROS robot may be the lower-risk purchase. If the walking robot and its open policy-training stack matter more, Microduck exposes a documented API from which a focused bridge can be built.

Microduck is made by Pollen Robotics, which publishes this site. This guide separates published product facts from a reference integration design so the bridge requirements are not mistaken for an official feature.

Does Microduck support ROS 2?

No. Microduck is not a ROS 2 robot, and its onboard control path does not require ROS 2.

The official Microduck repository describes a Rust workspace whose robot services communicate over one JSON-RPC contract on Unix sockets. The architecture documentation assigns motor control to robotd, which runs the 50 Hz loop and is the only process that writes the motor bus. ONNX locomotion policies run inside that local control boundary.

Four support levels are often confused:

RequirementMicroduck status
Native ROS 2 node graph and DDS inside the stock runtimeNo
Official vendor ROS 2 driver, launch files and URDF packageNo package found in the public repository reviewed
External bridge from ROS 2 to the documented robot APITechnically possible; the integrator owns it
Python or simulator access without ROS 2Yes, through the published SDK and simulator

A bridge can expose useful topics and actions without changing the fact that Microduck’s certified control loop is native to the robot. The bridge translates protocols; it does not turn the underlying runtime into ROS 2.

If you need the architecture rather than an integration recipe, the Microduck software architecture guide explains the daemons, safety ownership and ONNX policy path in more detail.

What runtime does Microduck actually use?

Microduck runs a Linux software stack on a Rockchip RK3566-class computer. The key design is not the operating-system label; it is the boundary between an intent and a motor command.

The stock path looks broadly like this:

gamepad / browser / Python SDK / robotctl
                    |
       JSON-RPC over local Unix sockets
                    |
                 robotd
        safety + selected ONNX policy
                    |
              50 Hz control loop
                    |
              15-servo bus

The official README says the services “talk over one JSON-RPC contract on Unix sockets, and every client — the app, the console, the gamepad, your script — sends exactly the same calls.” Architecture details describe JSON-RPC 2.0 with one object per line. Status calls such as robot.health and state subscriptions such as robot.state are part of that contract.

There are three practical consequences for a ROS 2 developer:

  1. There is no native DDS topic to remap. A bridge must subscribe to the robot’s JSON-RPC state and publish ROS messages itself.
  2. A ROS command is not a direct joint write. The bridge should translate a high-level request into an intent accepted by robotd, where the robot’s safety and selected policy still arbitrate what happens.
  3. The 50 Hz policy loop stays onboard. Do not move balance or the ONNX policy across a network just because a ROS 2 graph is present.

The robotctl cheat sheet is useful evidence for the state and intent model. robotctl monitor --json --hz 50 can print one state object per control tick for diagnostics, but a production bridge should use the underlying RPC contract rather than parse the terminal UI.

How can ROS 2 communicate with Microduck?

Build an explicit adapter between a ROS 2 node and the published Microduck JSON-RPC API. The adapter subscribes or sends RPC calls on the robot side, validates every command, and exposes ROS 2 messages, services or actions on the other side.

The reference architecture is:

ROS 2 applications
Nav2 / behaviour tree / teleop / diagnostics
                  |
          DDS inside ROS 2
                  |
      microduck_ros2_bridge
  message conversion + watchdog
                  |
   JSON-RPC over Unix socket
                  |
 robotd safety - policy - motor bus

Keep the bridge on the intent side of robotd. It may read robot.state, call robot.health, request a policy or send a supported movement intent. It must not open the Dynamixel bus, write motor positions around the safety layer or replace the updater-managed runtime.

A minimal adapter needs five behaviours:

  • Connect to the documented socket and negotiate the API version expected by the installed robot release.
  • Subscribe to state and health, then publish timestamped ROS messages.
  • Translate validated ROS commands into bounded Microduck intents.
  • Apply a watchdog that continuously asserts or renews motion and sends a stop intent when the ROS link or bridge stalls.
  • Publish bridge health separately from robot health so a dead adapter is not mistaken for a healthy transport.

This is integration work, not a stock compatibility claim. A bridge maintained by one lab should be versioned against the robot API and retested after every Microduck update.

Should the bridge run on the robot or a companion computer?

Use a hybrid split for most serious projects: run the smallest latency-sensitive adapter on the robot, and keep Nav2, perception-heavy nodes, visualisation and experiment orchestration on a companion computer.

PlacementAdvantagesCosts and risks
On the robotDirect Unix-socket access, lowest protocol latency, local watchdogCompetes for RK3566 CPU and memory; has to survive robot updates; adds another onboard service
Companion computerIsolates ROS 2, Nav2 and heavy perception; easier to debug and restartRemote transport adds latency and failure modes; raw Unix sockets are not remotely reachable
HybridKeeps intent conversion and watchdog local while the larger ROS graph runs elsewhereRequires a clear transport and version contract between both machines

For a first prototype, a companion-only bridge can be enough if it uses a documented remote transport. Do not expose the daemon sockets directly to a LAN to save integration work. The Unix-socket permission model is part of the robot’s boundary.

An on-robot bridge should also respect Microduck’s update model. The architecture document says releases are installed under /opt/robot/daemon/releases/ and swapped as a unit. Do not patch the active release directory and expect the change to survive an update. Package the bridge as a separately versioned service with its own configuration and rollback path.

What ROS 2 interfaces should you design?

Expose a small, intention-level interface before adding dozens of topics. A small contract is easier to test, safer to version and less likely to imply capabilities the stock robot does not provide.

A practical starting set is:

Suggested ROS interfaceMessage or typeDirectionDesign rule
/microduck/joint_statessensor_msgs/msg/JointStateRobot to ROS 2Publish measured positions at the rate the bridge actually receives; do not relabel command targets as measurements
/microduck/imusensor_msgs/msg/ImuRobot to ROS 2Populate only fields backed by real sensor data and document orientation conventions
/microduck/healthdiagnostic_msgs/msg/DiagnosticArrayRobot to ROS 2Preserve unhealthy, degraded and stale-state distinctions from robot.health
/microduck/cmd_velgeometry_msgs/msg/TwistROS 2 to robotValidate frames, limits and freshness before translating to an intent
/microduck/execute_moveAn action using a small custom interfaceROS 2 to robotModel an assignable one-shot move as an action with feedback and cancellation
/tf and /robot_descriptionStandard ROS 2 transform and model typesRobot to ROS 2Publish only from the current robot model and calibrated joint conventions

Use QoS deliberately:

  • Sensor and state streams should normally be BEST_EFFORT, keep-last depth 1 or another small depth. Large reliable queues turn a late consumer into an outdated observer.
  • Velocity and stop commands should be RELIABLE, keep-last depth 1, with a deadline. Retaining stale motion commands is dangerous.
  • Diagnostics can run at 1–2 Hz, but transport health should update often enough for the bridge watchdog.
  • Never use an unbounded queue to hide a slow ROS consumer. Drop stale observations and let the adapter report the loss.

The 0.3 m/s and 1.5 rad/s limits shown in Microduck’s console documentation are useful upper reference points for the shipped drive control, not a certified limit for every bridge, surface or task. Start lower. A custom gait, payload, accessory or floor changes the safe envelope.

Preserve time correctly. If the robot publishes a monotonic clock, establish one offset between that clock and ROS time when the bridge starts. Do not stamp every message with the wall-clock time at which Python happened to receive it; message age and sensor fusion depend on the original sample.

How do you keep a ROS 2 bridge safe?

Treat the bridge as a supervisory adapter, not as a replacement for the robot’s safety controller. robotd retains authority over deadman behaviour, limits, fall handling and motor output; the bridge must fail toward a stop.

Minimum safeguards are:

  • One command owner. Prevent teleoperation, Nav2 and a test script from publishing competing velocity commands without an arbiter.
  • Freshness over retries. Expire observations and commands quickly. Replaying an old velocity command is not resilience.
  • Explicit stop path. A process crash, DDS loss or ROS node shutdown should produce a bounded stop intent; verify the robot’s own deadman behavior as the backstop.
  • No direct motor bus access. Only the stock robotd path should command servos.
  • Health gating. Refuse autonomous motion when the bridge reports stale state, missing sensors, unhealthy control-loop timing or a degraded robot health response.
  • Rate separation. Keep high-level planning around 10–20 Hz or lower and the policy loop at 50 Hz onboard. Do not assume that a ROS 2 topic can safely substitute for the real-time control loop.
  • Recorded evidence. Log bridge version, robot API version, QoS settings, command timestamps, age of the latest state sample and the reason any request was rejected.

Test in stages:

  1. Read-only telemetry while the robot is powered off or stationary.
  2. Health and state recording with the robot on a stand.
  3. Small supported movements at low speed, away from edges.
  4. Bridge-kill and network-loss tests, with physical supervision.
  5. Longer walking trials only after the stop path and stale-data behaviour are repeatable.

Before those physical tests, validate message conversion, watchdog logic and stale command handling in simulation or with recorded data. The robot policy evaluation guide provides a useful gate structure even though a bridge is not itself a learned policy.

How does ROS 2 fit Python and policy-training workflows?

ROS 2 is useful when Microduck must participate in an existing robotics graph. It is not required for the normal Python, simulator or reinforcement-learning path.

For plain robot programming, the published SDK and simulator are the direct route. Start with the Microduck Python SDK guide. For learning locomotion policies, microduck_rl, mjlab, MuJoCo and ONNX remain the relevant stack; adding ROS 2 does not retrain a policy or replace the 50 Hz runtime.

A bridge becomes valuable when you need:

  • a ROS 2 behaviour tree coordinating the robot with other machines;
  • rosbag2 recording of state and health for a larger experiment;
  • diagnostics and launch management in an existing laboratory workflow;
  • sensor transforms and state visualisation in RViz;
  • a standard interface between Microduck and perception or evaluation code that is already ROS-native.

Even then, keep training reproducible outside the ROS graph. A bridge should not become an undocumented stateful layer that changes reward inputs from run to run. Record the exact bridge revision, message schema, QOS profile and conversion rules alongside the dataset.

If the objective is to log performed actions for policy evaluation, publish both the requested intent and the state actually reported by the robot. That distinction reveals safety clamps, rejected commands and policy interventions that a command-only log hides.

When should you choose a native ROS 2 robot instead?

Choose a native ROS 2 robot when ROS integration is a product requirement, not a side experiment. The vendor should maintain the driver, robot description, launch stack, controllers and at least one tested workflow for the exact hardware revision.

Mini Pupper 2 is the clearest current comparison for a small ROS 2 quadruped. Its Mini Pupper ROS repository is Apache-2.0 and includes bringup, description, driver, navigation, SLAM and simulation packages. The official Mini Pupper manual documents ROS 1 and ROS 2 learning paths. That is a different risk profile from writing and maintaining a Microduck bridge yourself.

Hiwonder PuppyPi is another ready-built alternative when an integrated Raspberry Pi vision and ROS path matters more than a small biped. Its current configuration matters: the manufacturer lists ROS 2 support for some Pi 5 kits while the Pi 4B configuration is listed around ROS 1. Verify the exact bundle, image and documentation rather than assuming every PuppyPi variant is equivalent.

Buyer goalBetter starting point
A maintained ROS 2 graph without writing a driverMini Pupper 2 or another vendor-supported ROS robot
A small biped with open locomotion-policy trainingMicroduck, accepting custom ROS integration work
A more complete Pi 5 ROS and vision kitThe exact ROS 2 version of Hiwonder PuppyPi
Python and simulator first, ROS 2 later or neverMicroduck SDK and simulator

For detailed kit contents and current price context, use the best Raspberry Pi robot dog kits comparison. It separates ROS claims from the compute, battery and assembly actually included.

The choice is not “native ROS 2 is always better.” A maintained ROS 2 package saves driver work; Microduck offers a different robot form, an assembled path and a public reinforcement-learning workflow. Match the purchase to the work the team wants to own.

Microduck ROS 2 FAQ

Does Microduck run ROS 2 natively? No. The published runtime is a Rust daemon stack using JSON-RPC over Unix sockets, with a 50 Hz policy loop onboard.

Can I connect Microduck to ROS 2? Yes, by writing and maintaining an external bridge that translates between ROS 2 interfaces and the documented Microduck API.

Does Pollen Robotics publish an official ROS 2 package? No ROS 2 package, launch stack or ros2_control hardware interface was present in the public Microduck repository reviewed on 14 November 2026. Check the current repository before relying on this status.

Can I use micro-ROS instead? micro-ROS is intended for microcontroller environments. Microduck’s controller is a Linux computer, so a normal rclpy or rclcpp bridge is the more relevant starting point.

Can Nav2 drive Microduck? A bridge can expose velocity and state interfaces that Nav2 consumes, but that does not make Microduck a validated Nav2 platform. Legged navigation, odometry quality, localisation and obstacle clearance still need task-specific validation.

Can I use ros2_control without changing Microduck? Treat it as custom integration, not an existing hardware plugin. A correct adapter should speak to the documented robot API and preserve robotd as the only motor-bus writer.

Should the bridge run on the robot or a laptop? Use an on-robot minimal bridge for direct API access and a watchdog, then place heavy ROS nodes on a companion computer when possible.

Does adding ROS 2 improve policy training? Not by itself. Training still happens in simulation and produces an ONNX policy. ROS 2 is useful for orchestration, data recording and integrating the robot with a larger system.

Is Mini Pupper 2 a better ROS 2 robot? It is the lower-integration-risk choice when a supported ROS 2 stack is the priority. Microduck remains the relevant option for a small biped and an open policy-training workflow.

Key takeaways

  • Microduck is not natively ROS 2; the stock runtime uses Rust daemons and JSON-RPC over Unix sockets.
  • A ROS 2 bridge is technically feasible, but no official package or ros2_control interface was found in the public repository reviewed.
  • Keep robotd as the only motor-bus writer and the 50 Hz policy loop onboard.
  • Start with joint state, IMU, diagnostics, velocity and one move action instead of exposing every internal call.
  • Use a command watchdog, fresh observations and an explicit stop path; ROS 2 semantics do not replace robot safety.
  • Choose a vendor-maintained ROS robot such as Mini Pupper 2 when support across driver, launch files, simulation and navigation is the main requirement.
  • Choose Microduck when the biped form, assembled robot and open policy-training stack justify owning the bridge.

Sources and review date

Product and architecture facts were checked against the official Microduck repository on 14 November 2026:

The bridge mappings, QOS choices and test sequence on this page are an implementation reference, not an upstream product promise. Recheck the current API contract before building against a new Microduck release.

Where to go next

Microduck ROS 2: No Native Support, But You Can Bridge It