ROS2 Getting Started
This guide walks you through connecting a ROS2 robot to Roboticks. Your existing ROS2 code stays unchanged - Roboticks manages it.Prerequisites
- Device with ROS2 installed (Humble, Iron, or Jazzy)
- Device Manager installed (Installation Guide)
- Your ROS2 package built and tested
Step 1: Create a Roboticks Module
A Roboticks module wraps your ROS2 node, handling lifecycle and monitoring. Create a simple configuration file:Step 2: Create a Composition
A composition defines which modules run together. Create a simple composition:Step 3: Deploy to Your Device
Copy your module and composition to the device:Step 4: Start a Session
From the Roboticks dashboard or CLI:- Navigate to your device
- Click “Start Session”
- Select your composition and mode
- Click “Start”
Step 5: Monitor Your Robot
Once running, you can:- View logs in real-time from the dashboard
- Download rosbags captured during the session
- Stop remotely when testing is complete
What Just Happened?
- The Device Manager received the session start command
- It loaded your composition configuration
- Your ROS2 node was launched with the specified parameters
- Logs and rosbags are being captured and uploaded
- You can monitor everything from the dashboard
Key Concepts
Modules vs Compositions
| Concept | Purpose |
|---|---|
| Module | Wraps a single ROS2 node with lifecycle management |
| Composition | Groups modules that should run together |
Session Lifecycle
- Logs are streamed to the cloud
- Rosbags are recorded (if enabled)
- Health is monitored
- Crashes trigger automatic restart (if configured)
Troubleshooting
ROS2 node not starting
ROS2 node not starting
Check that your ROS2 workspace is sourced and the package is installed:
Module can't find my package
Module can't find my package
Ensure your workspace is built and the install path is accessible:
Rosbag not recording
Rosbag not recording
Verify the topics exist and the output directory is writable: