Skip to content

OpenRover/ROS2-WorkSpace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

A brief description of the project and its purpose. For instance:

This repository provides a ROS-based camera detection system that uses Python scripts and various ROS packages to capture, process, and analyze image data. It also includes a set of utilities for streaming and socket communication.

Table of Contents

  1. Prerequisites
  2. Directory Structure
  3. Installation
  4. Building the Project
  5. Running the Project
  6. License

Prerequisites

  • ROS2 (ensure you have a compatible ROS distribution installed and sourced)
  • Python 3 (recommended version >= 3.7)
  • pip (Python package manager)
  • Make (to run the provided Makefile)
  • Git (for version control and cloning this repo)

Directory Structure

A short overview of the directories you see in the project:

.
├── .env/                 # Python virtual environment (will be created by user)
├── .vscode/              # VSCode configuration
├── assets/               # Various asset files
├── build/                # Build output (generated after building)
├── install/              # Installation output (generated after building)
├── launch/               # ROS launch files
├── scripts/              # Custom scripts for setup or utilities
├── src/
│   └── camera_detection/
│       ├── __init__.py
│       ├── detection.py
│       ├── operation.py
│       ├── perception.py
│       ├── server.py
│       ├── socket.py
│       ├── stream.py
│       ├── pos.py
│       └── ...
├── requirements.txt      # Python dependencies
├── Makefile              # Build and shell commands
├── README.md             # This file
└── rec.mp4               # Sample recorded video


Installation

  1. Clone the repository :

    git clone --recurse-submodules <repository-url>
    cd <repository-folder>
  2. Create a Python virtual environment :

    python3 -m venv .env
  3. Activate the virtual environment:

    • On Linux/macOS:

      source .env/bin/activate
  4. Install the Python dependencies:

    pip3 install -r requirements.txt

    Note: The -r flag is important to read from the requirements.txt file.


Building the Project

make build all/symlink

Tip: Check the top of the Makefile to see the available targets and their exact usage.


Running the Project

After building, you can enter the project shell (a specialized environment for running the ROS nodes and Python scripts) by running:

make shell

Once inside the shell, you can launch the main script:

launch perception.py

License

Include your license information here if you have one, for example:

This project is licensed under the MIT License.


About

ROS2 software stack for the RoverMaster project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •