This repository contains an example package for ros2 (python).
This repository can be used as template. Simply select this repo when creating a new repository under template.
Alternatively, you can create python ros packages with:
# If not already created
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
# Create package
ros2 pkg create my_package --build-type ament_python --dependencies rclpy
# Build
cd ~/ros2_ws/src
colcon build --symlink-install --packages-select my_package
config/
: All configurations (most of the time yaml files)launch/
: Contains all launch files. Launch files can start multiple nodes with yaml-configurationsmodels/
: Contains all models (optional) and only necessary for machine learning nodesresource/
: Contains the package name (required to build with colcon)ros2_example_package
: Contains all nodes and sources for the ros packagetest/
: Contains all testspackage.xml
: Contains metadata about the packagesetup.py
: Used for Python package configurationsetup.cfg
: Additional configuration for the packagerequirements.txt
: Python dependencies
Thank you for considering contributing to this repository! Here are a few guidelines to get you started:
- Fork the repository and clone it locally.
- Create a new branch for your contribution.
- Make your changes and ensure they are properly tested.
- Commit your changes and push them to your forked repository.
- Submit a pull request with a clear description of your changes.
We appreciate your contributions and look forward to reviewing them!
This repository is licensed under the MIT license. See LICENSE for details.