# nicoc144/robotic_arm architecture

> Architecture diagram of the GitHub repository nicoc144/robotic_arm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nicoc144/robotic_arm
- Repository: https://github.com/nicoc144/robotic_arm

## Overview

This ROS 2 project provides launchable visualization and Gazebo simulation for a four-degree-of-freedom arm. The main combined workflow starts robot-state and joint-state publishers plus RViz, then includes the simulation launch, which starts Gazebo and creates the arm from its URDF. Separate RViz-only and Gazebo-only launch paths are also provided. The repository documents hand-written forward and inverse kinematics as a goal, but contains no implementation of them. Relationships below reflect the sampled launch files and README; the standalone SDF assets are included as product resources, but their runtime use is not shown.

Main entry points: [`arm_bringup/launch/arm_rviz_gazebo_launch.py`](https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_rviz_gazebo_launch.py) (Combined launch), [`arm_bringup/launch/arm_rviz_launch.py`](https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_rviz_launch.py) (RViz launch), [`arm_simulation/launch/arm_sim_gazebo_launch.py`](https://github.com/nicoc144/robotic_arm/blob/main/arm_simulation/launch/arm_sim_gazebo_launch.py) (Simulation launch), [`arm_description/urdf/arm_4dof.urdf`](https://github.com/nicoc144/robotic_arm/blob/main/arm_description/urdf/arm_4dof.urdf) (Arm URDF)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bringup["Launch workflows"]
  node_combined["Combined launch"]
  node_rviz_launch["RViz launch<br/>[arm_rviz_launch.py]"]
  node_gazebo_launch["Gazebo launch"]
  node_sim_launch["Simulation launch"]
end

subgraph group_assets["Robot assets"]
  node_urdf["Arm URDF<br/>[arm_4dof.urdf]"]
  node_rviz_config["RViz configuration<br/>[arm_config.rviz]"]
  node_sdf_assets["SDF worlds and model"]
end

subgraph group_runtime["Runtime tools"]
  node_state_pub["Robot state publisher"]
  node_joint_pub["Joint state publisher"]
  node_rviz["RViz"]
  node_gazebo["Gazebo Sim"]
  node_create["ROS-Gazebo create"]
end

node_user(("ROS 2 user"))

node_user -->|"launches"| node_combined
node_user -->|"launches"| node_rviz_launch
node_user -->|"launches"| node_gazebo_launch
node_combined -->|"includes"| node_sim_launch
node_combined -->|"reads"| node_urdf
node_combined -->|"loads"| node_rviz_config
node_combined -->|"starts"| node_state_pub
node_combined -->|"starts"| node_joint_pub
node_combined -->|"starts"| node_rviz
node_rviz_launch -->|"reads"| node_urdf
node_rviz_launch -->|"loads"| node_rviz_config
node_rviz_launch -->|"starts"| node_state_pub
node_rviz_launch -->|"starts"| node_joint_pub
node_rviz_launch -->|"starts"| node_rviz
node_gazebo_launch -->|"includes"| node_sim_launch
node_sim_launch -->|"reads"| node_urdf
node_sim_launch -->|"starts"| node_gazebo
node_sim_launch -->|"starts"| node_create

click node_combined "https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_rviz_gazebo_launch.py"
click node_rviz_launch "https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_rviz_launch.py"
click node_gazebo_launch "https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_gazebo_launch.py"
click node_sim_launch "https://github.com/nicoc144/robotic_arm/blob/main/arm_simulation/launch/arm_sim_gazebo_launch.py"
click node_urdf "https://github.com/nicoc144/robotic_arm/blob/main/arm_description/urdf/arm_4dof.urdf"
click node_rviz_config "https://github.com/nicoc144/robotic_arm/blob/main/arm_description/rviz/arm_config.rviz"
click node_sdf_assets "https://github.com/nicoc144/robotic_arm/tree/main/arm_description/sdf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_combined,node_rviz_launch,node_gazebo_launch,node_sim_launch,node_user toneBlue
class node_urdf,node_rviz_config,node_sdf_assets toneAmber
class node_state_pub,node_joint_pub,node_rviz,node_gazebo,node_create toneMint
```

## Components

### Launch workflows

- [Combined launch](https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_rviz_gazebo_launch.py): `arm_bringup/launch/arm_rviz_gazebo_launch.py`
- [RViz launch](https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_rviz_launch.py): `arm_bringup/launch/arm_rviz_launch.py`
- [Gazebo launch](https://github.com/nicoc144/robotic_arm/blob/main/arm_bringup/launch/arm_gazebo_launch.py): `arm_bringup/launch/arm_gazebo_launch.py`
- [Simulation launch](https://github.com/nicoc144/robotic_arm/blob/main/arm_simulation/launch/arm_sim_gazebo_launch.py): `arm_simulation/launch/arm_sim_gazebo_launch.py`

### Robot assets

- [Arm URDF](https://github.com/nicoc144/robotic_arm/blob/main/arm_description/urdf/arm_4dof.urdf): `arm_description/urdf/arm_4dof.urdf`
- [RViz configuration](https://github.com/nicoc144/robotic_arm/blob/main/arm_description/rviz/arm_config.rviz): `arm_description/rviz/arm_config.rviz`
- [SDF worlds and model](https://github.com/nicoc144/robotic_arm/tree/main/arm_description/sdf): `arm_description/sdf`

### Runtime tools

- **Robot state publisher**
- **Joint state publisher**
- **RViz**
- **Gazebo Sim**
- **ROS-Gazebo create**

### Other components

- **ROS 2 user**

## Connections

- ROS 2 user → Combined launch: launches (evidence: `README.md`)
- ROS 2 user → RViz launch: launches (evidence: `README.md`)
- ROS 2 user → Gazebo launch: launches (evidence: `README.md`)
- Combined launch → Simulation launch: includes (evidence: `arm_bringup/launch/arm_rviz_gazebo_launch.py`)
- Combined launch → Arm URDF: reads (evidence: `arm_bringup/launch/arm_rviz_gazebo_launch.py`)
- Combined launch → RViz configuration: loads (evidence: `arm_bringup/launch/arm_rviz_gazebo_launch.py`)
- Combined launch → Robot state publisher: starts (evidence: `arm_bringup/launch/arm_rviz_gazebo_launch.py`)
- Combined launch → Joint state publisher: starts (evidence: `arm_bringup/launch/arm_rviz_gazebo_launch.py`)
- Combined launch → RViz: starts (evidence: `arm_bringup/launch/arm_rviz_gazebo_launch.py`)
- RViz launch → Arm URDF: reads (evidence: `arm_bringup/launch/arm_rviz_launch.py`)
- RViz launch → RViz configuration: loads (evidence: `arm_bringup/launch/arm_rviz_launch.py`)
- RViz launch → Robot state publisher: starts (evidence: `arm_bringup/launch/arm_rviz_launch.py`)
- RViz launch → Joint state publisher: starts (evidence: `arm_bringup/launch/arm_rviz_launch.py`)
- RViz launch → RViz: starts (evidence: `arm_bringup/launch/arm_rviz_launch.py`)
- Gazebo launch → Simulation launch: includes (evidence: `arm_bringup/launch/arm_gazebo_launch.py`)
- Simulation launch → Arm URDF: reads (evidence: `arm_simulation/launch/arm_sim_gazebo_launch.py`)
- Simulation launch → Gazebo Sim: starts (evidence: `arm_simulation/launch/arm_sim_gazebo_launch.py`)
- Simulation launch → ROS-Gazebo create: starts (evidence: `arm_simulation/launch/arm_sim_gazebo_launch.py`)
