How tranhungtdh06/sml_arm works
SML-Arm is an open-source six-axis robotic arm project spanning ROS 2 simulation and motion control, desktop operator tools, and scaffolded MCU/hardware subsystems. The main user workflow is to launch a simulated or mock arm, issue joint or Cartesian motion through the GUI/CLI or pick-and-place demo, and have the control stack plan and execute it against the robot model. The graph also preserves the separate serial-firmware workflow and physical/electrical design areas. Some ROS launch and firmware implementation details are unsampled; uncertain links are omitted or marked dashed.
Main entry points: launch System launch · arm_kinematics.py FK / IK · main_window.py Hardware test GUI · robot.cpp Joint coordination
Components 22
ROS 2 Control
- System launch
src/sml_arm_bringup/launch - Robot model
src/sml_arm_description/urdf - Gazebo workcell
src/sml_arm_gazebo - ros2_control
src/sml_arm_control/config/sml_arm_controllers.yaml - MoveIt planning
src/sml_arm_moveit_config
Operator Tools
- Control Studio
src/sml_arm_control/scripts/arm_control_gui.py - Arm CLI
src/sml_arm_control/scripts/arm_commander.py - FK / IK
src/sml_arm_control/scripts/arm_kinematics.py - Pick-and-place
src/sml_arm_control/scripts/pick_and_place_demo.py - Calibration sync
src/sml_arm_control/scripts/sync_calibration.py - Hardware test GUI
firmware/mcu_controller/tools/sml_arm_gui/main_window.py - Serial transport
firmware/mcu_controller/tools/sml_arm_gui/serial_manager.py - Command client
firmware/mcu_controller/tools/sml_arm_gui/command_client.py
MCU Firmware
- Firmware entry
firmware/mcu_controller/src/main.cpp - Command interface
firmware/mcu_controller/lib/tool/tool.cpp - Joint coordination
firmware/mcu_controller/lib/robot/robot.cpp - Joint motion
firmware/mcu_controller/lib/joint/joint.cpp - Stepper driver
firmware/mcu_controller/lib/stepper/stepper.cpp - Shared protocol
firmware/protocol/sml_arm_protocol.h
Physical Design
- Mechanical design
hardware - Electrical design
electrical
Other components
- Arm operator
Connections 22
- Arm operator → System launch: starts system
README.md - System launch → Gazebo workcell: launches simulation
README.md - System launch → ros2_control: starts control
README.md - System launch → MoveIt planning: starts planning
README.md - System launch → Robot model: loads model
README.md - Arm operator → Control Studio: operates arm
README.md - Arm operator → Arm CLI: issues commands
README.md - Arm operator → FK / IK: requests FK / IK
README.md - Arm operator → Pick-and-place: runs demo
README.md - Control Studio → FK / IK: uses solver
src/sml_arm_control/scripts/arm_control_gui.py - Pick-and-place → FK / IK: uses motion utilities
src/sml_arm_control/scripts/pick_and_place_demo.py - Calibration sync → FK / IK: updates limits
src/sml_arm_control/scripts/sync_calibration.py - Arm operator → Hardware test GUI: tests hardware
README.md - Hardware test GUI → Serial transport: uses transport
firmware/mcu_controller/tools/sml_arm_gui/main_window.py - Hardware test GUI → Command client: sends commands
firmware/mcu_controller/tools/sml_arm_gui/main_window.py - Firmware entry → Command interface: initializes and polls
firmware/mcu_controller/src/main.cpp - Firmware entry → Joint coordination: initializes robot
firmware/mcu_controller/src/main.cpp - Joint coordination → Joint motion: delegates motion
firmware/mcu_controller/lib/robot/robot.cpp - Joint coordination → Stepper driver: attaches motors
firmware/mcu_controller/lib/robot/robot.cpp - Serial transport → Firmware entry: exchanges commands
- Mechanical design → Robot model: informs geometry
- Electrical design → Stepper driver: supports wiring