Skip to content

ROS 2-based differential robot project with micro-ROS and OpenCV (CUDA) integration on Jetson. Controls robot via linear/angular velocities, supports real-time operations, and network-shared classification tasks.

Notifications You must be signed in to change notification settings

Ineso1/autonomous_traffic_car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS 2 Differential Robot Project

Description

This project integrates ROS 2 with OpenCV (with CUDA) on a Jetson platform to manage a differential robot. It features micro-ROS for handling motor controls by sending linear and angular velocities. The workspace includes two main parts: puzzle_ws for robot control and real-time operations, and fog_ws for off-hardware classification tasks ensuring topic sharing over the network.

Prerequisites

  • ROS 2 installation
  • OpenCV with CUDA support
  • micro-ROS setup
  • Jetson platform (with proper environment setup for CUDA and ROS 2)
  • Serial connection for micro-ROS agent (usually via USB)

Installation

  1. Clone the repository:
git clone https://github.com/paulramirez19/TE3002B/
cd TE3002B
  1. Prepare the puzzle_ws workspace:
cd puzzle_ws
# Remove previous build artifacts if they exist
rm -rf build install log
# Build the workspace
colcon build
  1. Prepare the fog_ws workspace:
cd ../fog_ws
# Remove previous build artifacts if they exist
rm -rf build install log
# Build the workspace
colcon build

Running the Project

  1. Launch the micro-ROS agent:
ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyUSB0
  1. Source the setup script and run the launcher file:
source install/setup.bash
ros2 launch puzzle_pkg launch.py

Ensure that if you are working remotely or need the fog_ws for classification, topics are correctly shared across the network.

Usage

The project is configured to control a differential robot by sending appropriate linear and angular velocities through the micro-ROS setup. Adjustments to velocity and other parameters should be made in accordance with the specific robot's configuration and environmental context.

image

image

image

Video

Click to view the video!! Watch the Video

About

ROS 2-based differential robot project with micro-ROS and OpenCV (CUDA) integration on Jetson. Controls robot via linear/angular velocities, supports real-time operations, and network-shared classification tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published