This repository contains a template for ROS2 packages with humble distribution of the SENSE-BASE organisation.
Please see the README for details on how to install the required packages and dependencies for ROS2 (such as docker), set up a virtual environment, run and debug the code, and read the contribution guidelines and code of conduct.
- Generate your SSH keys as suggested here
- Setup you commit signature verification as shown here
- Clone the repository by typing (or copying) the following lines in a terminal
git clone git@github.com:sense-base/sense_template.git
ros2 pkg create sense_template --build-type ament_python # For python packages
ros2 pkg create sense_template --build-type ament_cmake # For C/C++ packages
- NOTES.
- Pure Python packages should use the ament_python build type in most cases.
- To create an ament_python package, see Creating your first ROS 2 package: ament_cmake_python should only be used in cases where that is not possible, like when mixing C/C++ and Python code.
- Create a ROS2 package for Both Python and Cpp Nodes
See here to install uv virtual environment.
uv run pre-commit run -a