# spvce028/applied-robotics architecture

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

- Interactive diagram: https://gitdiagram.com/spvce028/applied-robotics
- Repository: https://github.com/spvce028/applied-robotics

## Overview

Applied-Robotics is a ROS 2 application for operating a DOBOT Magician in a depalletizing pick-and-place task. An operator supplies required parameters, confirms homing, then starts the workflow; the node coordinates picking, optional waypoint transport, and placing through asynchronous robot and gripper operations. Shared interfaces define poses, results, errors, and workflow/waypoint coordination. The README documents simulated PTP support, while the excerpts show a separate fake gripper service. Some wiring is omitted from the sampled node excerpt, so uncertain connections are not asserted as verified calls.

Main entry points: [`ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py`](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py) (Depalletizing Node), [`ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/robot_driver.py`](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/robot_driver.py) (Dobot Action Driver), [`ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/gripper_client.py`](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/gripper_client.py) (Gripper Client), [`ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/models.py`](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/models.py) (Pose and Results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["ROS Control"]
  node_config["Runtime Parameters<br/>[depalletizing.yaml]"]
  node_node["Depalletizing Node<br/>[main_node.py]"]
end

subgraph group_motion["Robot Operations"]
  node_pickplace["Pick Place Primitives<br/>[pick_place.py]"]
  node_robot["Dobot Action Driver<br/>[robot_driver.py]"]
  node_gripper["Gripper Client<br/>[gripper_client.py]"]
end

subgraph group_interfaces["Shared Interfaces"]
  node_workflow["Pick Place Workflow<br/>[workflow.py]"]
  node_waypoints["Waypoint Executor<br/>[waypoints.py]"]
  node_models["Pose and Results<br/>[models.py]"]
  node_errors["Shared Errors<br/>[errors.py]"]
end

subgraph group_simulation["Simulation"]
  node_fake_ptp["Fake PTP Server"]
  node_fake_gripper["Fake Gripper Service"]
end

node_operator(("Operator"))
node_ptp{{"PTP Action Server"}}
node_gripper_service{{"Gripper Service"}}

node_operator -->|"confirms and starts"| node_node
node_config -->|"configures"| node_node
node_node -->|"executes workflow"| node_workflow
node_node -.->|"constructs operations"| node_pickplace
node_node -->|"dispatches cancellation"| node_robot
node_node -.->|"creates client"| node_gripper
node_workflow -->|"runs transport"| node_waypoints
node_pickplace -->|"moves robot"| node_robot
node_pickplace -->|"operates gripper"| node_gripper
node_robot -->|"sends action goals"| node_ptp
node_gripper -->|"sends commands"| node_gripper_service
node_fake_ptp -.->|"simulates server"| node_ptp
node_fake_gripper -->|"provides simulation"| node_gripper_service
node_workflow -->|"uses poses and results"| node_models
node_waypoints -->|"uses poses and results"| node_models
node_robot -->|"returns operation results"| node_models
node_gripper -->|"returns operation results"| node_models

click node_config "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/config/depalletizing.yaml"
click node_node "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py"
click node_workflow "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/workflow.py"
click node_waypoints "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/waypoints.py"
click node_models "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/models.py"
click node_errors "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/errors.py"
click node_pickplace "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/pick_place.py"
click node_robot "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/robot_driver.py"
click node_gripper "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/gripper_client.py"
click node_fake_ptp "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/fake_ptp_action_server.py"
click node_fake_gripper "https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/fake_gripper_service.py"

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_config,node_node toneBlue
class node_pickplace,node_robot,node_gripper toneAmber
class node_workflow,node_waypoints,node_models,node_errors,node_ptp toneMint
class node_fake_ptp,node_fake_gripper toneRose
class node_operator,node_gripper_service toneIndigo
```

## Components

### ROS Control

- [Runtime Parameters](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/config/depalletizing.yaml): `ros2_ws/src/depalletizing_pick_place/config/depalletizing.yaml`
- [Depalletizing Node](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py): `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py`

### Robot Operations

- [Pick Place Primitives](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/pick_place.py): `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/pick_place.py`
- [Dobot Action Driver](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/robot_driver.py): `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/robot_driver.py`
- [Gripper Client](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/gripper_client.py): `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/gripper_client.py`

### Shared Interfaces

- [Pick Place Workflow](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/workflow.py): `ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/workflow.py`
- [Waypoint Executor](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/waypoints.py): `ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/waypoints.py`
- [Pose and Results](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/models.py): `ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/models.py`
- [Shared Errors](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/errors.py): `ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/errors.py`

### Simulation

- [Fake PTP Server](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/fake_ptp_action_server.py): `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/fake_ptp_action_server.py`
- [Fake Gripper Service](https://github.com/spvce028/applied-robotics/blob/main/ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/fake_gripper_service.py): `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/fake_gripper_service.py`

### Other components

- **Operator**
- **PTP Action Server**
- **Gripper Service**

## Connections

- Operator → Depalletizing Node: confirms and starts (evidence: `README.md`)
- Runtime Parameters → Depalletizing Node: configures (evidence: `README.md`)
- Depalletizing Node → Pick Place Workflow: executes workflow (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py`)
- Depalletizing Node → Pick Place Primitives: constructs operations (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py`)
- Depalletizing Node → Dobot Action Driver: dispatches cancellation (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py`)
- Depalletizing Node → Gripper Client: creates client (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/main_node.py`)
- Pick Place Workflow → Waypoint Executor: runs transport (evidence: `ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/workflow.py`)
- Pick Place Primitives → Dobot Action Driver: moves robot (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/pick_place.py`)
- Pick Place Primitives → Gripper Client: operates gripper (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/pick_place.py`)
- Dobot Action Driver → PTP Action Server: sends action goals (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/robot_driver.py`)
- Gripper Client → Gripper Service: sends commands (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/gripper_client.py`)
- Fake PTP Server → PTP Action Server: simulates server (evidence: `README.md`)
- Fake Gripper Service → Gripper Service: provides simulation (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/fake_gripper_service.py`)
- Pick Place Workflow → Pose and Results: uses poses and results (evidence: `ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/workflow.py`)
- Waypoint Executor → Pose and Results: uses poses and results (evidence: `ros2_ws/src/depalletizing_interfaces/depalletizing_interfaces/waypoints.py`)
- Dobot Action Driver → Pose and Results: returns operation results (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/robot_driver.py`)
- Gripper Client → Pose and Results: returns operation results (evidence: `ros2_ws/src/depalletizing_pick_place/depalletizing_pick_place/gripper_client.py`)
