This repository contains the ros2 jazzy package for the ai lane detection based on the ultra fast lane detection v2.
- Clone the package into the
smarty_workspace/src
directory:git clone <repository-url> smarty_workspace/src
- Install the required Python dependencies using the
requirements.txt
file:pip install -r requirements.txt
- Download the trained model and its corresponding configuration file. (See the Usage section for more details.)
- Please set the following ENV variable in your .bashrc/.zshrc if not already done:
PYTHON_EXECUTABLE="/home/$USER/.pyenv/versions/default/bin/python3" # Change this to the python3 executable path of your pyenv
To run this package, you will need the pre-trained model weights. As of September 2024, two versions are available: a dense model and a sparse model. You can download them here. Place the downloaded model in the models/
folder, and the corresponding configuration file in the config/
folder.
Important:
Ensure that you update the model_config_path
in the config/ros_params.yaml
file, and set the correct path for the model in the configuration file's test_model
field.
To launch the node, use the following command:
ros2 launch lane_detection_ai lane_detection_ai.launch.py
For running with the debug image enabled, use:
ros2 launch lane_detection_ai lane_detection_ai.launch.py debug:=true
config/
: All configurations for ROS and the modellaunch/
: Contains the launch filesmodels/
: Contains the modelsresource/
: Contains the package name (required to build with colcon)lane_detection_ai/
: Contains all nodes and sources for the ros packagelane_detection_ai/model/
: Contains all sources of the ufldv2 modeltest/
: Contains the testspackage.xml
: Contains metadata about the packagesetup.py
: Used for Python package configurationsetup.cfg
: Additional configuration for the packagerequirements.txt
: Python dependencies
This repository is licensed under the MIT license. See LICENSE for details.