ROSGen is a code generation tool for ROS 2 that creates boilerplate ROS 2 packages from a YAML specification. It simplifies package setup, message/service definition, and node scaffolding so you can focus on development instead of boilerplate. There is a yaml file for reference you can refer to for configuring the architecture. Its prettry much is what it is. Just add packages->nodes/(msg/srvs) , pub_subs ...
- Generates ROS 2 packages in Python (
ament_python) - Supports custom messages and services
- Automatically creates nodes with publishers and subscribers
- Configurable output directory for generated code
Clone the repository and install dependencies:
git clone <repo_url>
cd rosgen
pip install -e .
rosgen generate