r/ROS • u/amine-bensaid • 7d ago
I built a browser-based designer that generates ready-to-build ROS 2 packages (open source)
I've been working on ROS2 Inspector, a CLI that maps a ROS 2 workspace from source without running it. Version 0.2.0 adds something I wanted for myself: a package designer that runs in your browser.
You sketch nodes and their topics, services and actions, drag wires between publishers and subscribers, and click Generate. It writes ament_python packages with node code, package.xml, setup.py, a launch file and the ament linter tests, so colcon build works straight away.
You can keep editing the generated code and regenerate later: your edited files are kept, and renaming a node updates setup.py and the launch file for you.
pipx install ros2inspector
ros2inspector design -o ~/ros2_ws/src
It's MIT licensed and runs only on localhost. It currently edits one package at a time; cross-package wiring is next.
I'd really like feedback, especially on what's missing before you'd use it for a real package.
1
u/JessieAndEcho 6d ago
One thing worth adding to the designer: when you drag a wire, show two different states. A best_effort sensor publisher feeding a reliable subscriber is a known incompatibility — your static analysis already flags that, so mark it "incompatible". But QoS set in code or parameters you can't statically read should show as "config unknown", not pass silently. That's the case that bites in real sensor setups. I pulled the compatibility rules from the ROS 2 QoS docs via patsnap eureka, and it got me to the primary source quickly.
1
u/Weekly-Database1467 6d ago
Can refer to mathlab ros2 package generation. I never used ut before but sounds like a simar idea