How sam-airobotics/f2d-studio works
F2D Studio is a Fusion 360 add-in that turns a robot assembly into a ROS 2 description package. The user configures an export in the dialog, the execute handler validates the settings and starts extraction, then the exporter builds a robot model and writes the selected package artifacts. The model stage covers links, geometry, mass/inertia, materials, and joint frames/tree structure. README capabilities include URDF/Xacro, meshes, launch, RViz, Gazebo, and optional ROS 2 Control outputs. Some generator and parser wiring is only named in the source index, so uncertain links are dashed.
Main entry points: export_manager.py Export manager · robot_model.py Robot model builder · ui Export tabs · input_changed_handler.py Dynamic inputs
Components 30
Fusion Interface
- Add-in entry
F2D-Studio.py - Export command
commands/export_command.py - Dialog orchestration
commands/command_created_handler.py - Export tabs
commands/ui - UI helpers
commands/helpers/ui_builder.py - Input access
commands/helpers/input_utils.py - Dynamic inputs
commands/input_changed_handler.py - Dialog state
commands/ui/ui_context.py - Export execution
commands/execute_handler.py
Robot Model
- Robot model builder
fusion/robot_model.py - Component extraction
fusion/component_parser.py - Collision detection
fusion/collision_detector.py - Joint frames
fusion/joint_parser.py - Joint tree
fusion/joint_tree.py - Transform parsing
fusion/transform_parser.py - Mass extraction
fusion/mass_extractor.py - Inertia calculation
fusion/inertia_calculator.py - Material parsing
fusion/material_parser.py - Material records
fusion/material.py - Mesh export
fusion/mesh_exporter.py
Package Export
- Export manager
exporter/export_manager.py - Package creation
exporter/package_creator.py - URDF and Xacro
exporter/urdf_generator.py - Robot Xacro
exporter/robot_xacro_generator.py - Package generators
exporter - Package file writer
exporter/file_writer.py
Validation
- Export validation
utils/validate.py
Other components
- Fusion user
- Fusion 360
- ROS 2 description package
Connections 43
- Fusion user → Add-in entry: invokes
README.md - Fusion 360 → Add-in entry: hosts
README.md - Add-in entry → Export command: registers
F2D-Studio.py - Export command → Dialog orchestration: creates
commands/export_command.py - Dialog orchestration → Export tabs: builds
commands/command_created_handler.py - Export tabs → UI helpers: uses
commands/ui/general_tab.py - Dialog orchestration → Export execution: attaches
commands/command_created_handler.py - Dialog orchestration → Dynamic inputs: attaches
commands/command_created_handler.py - Dynamic inputs → Input access: uses
commands/input_changed_handler.py - Dynamic inputs → Dialog state: updates
commands/input_changed_handler.py - Dynamic inputs → Component extraction: reads components
commands/input_changed_handler.py - Dynamic inputs → Inertia calculation: calculates
commands/input_changed_handler.py - Export execution → Input access: reads settings
commands/execute_handler.py - Export tabs → Component extraction: loads data
commands/ui/properties_tab.py - Export tabs → Mass extraction: loads data
commands/ui/properties_tab.py - Export tabs → Inertia calculation: calculates
commands/ui/properties_tab.py - Export tabs → Material parsing: reads materials
commands/ui/properties_tab.py - Export tabs → Dialog state: registers colors
commands/ui/properties_tab.py - Export execution → Export validation: validates config
commands/execute_handler.py - Export execution → Export manager: starts export
commands/execute_handler.py - Export manager → Export validation: validates model
exporter/export_manager.py - Export manager → Package creation: creates package
exporter/export_manager.py - Export manager → Robot model builder: builds model
exporter/export_manager.py - Robot model builder → Component extraction: extracts links
fusion/robot_model.py - Component extraction → Collision detection: detects shapes
fusion/component_parser.py - Robot model builder → Joint frames: parses joints
fusion/robot_model.py - Robot model builder → Joint tree: builds tree
fusion/robot_model.py - Joint frames → Transform parsing: uses frames
fusion/joint_parser.py - Robot model builder → Mass extraction: extracts mass
fusion/robot_model.py - Robot model builder → Inertia calculation: calculates inertia
fusion/robot_model.py - Robot model builder → Material parsing: parses materials
fusion/robot_model.py - Material parsing → Material records: creates records
fusion/material_parser.py - Robot model builder → Mesh export: exports meshes
fusion/robot_model.py - Export manager → Dialog state: reads colors
exporter/export_manager.py - Export manager → URDF and Xacro: generates URDF
exporter/export_manager.py - Export manager → Robot Xacro: generates Xacro
exporter/export_manager.py - Export manager → Package generators: generates outputs
README.md - Robot Xacro → URDF and Xacro: uses generator
exporter/robot_xacro_generator.py - URDF and Xacro → Package file writer: writes files
exporter/urdf_generator.py - Robot Xacro → Package file writer: writes files
exporter/robot_xacro_generator.py - Package generators → Package file writer: writes files
exporter/gazebo_generator.py - Package creation → Package file writer: creates files
exporter/package_creator.py - Export manager → ROS 2 description package: returns package
README.md