- Make a directory
ROS1_WSto act as your ROS 1 workspace.$ mkdir -p ~/ROS1_WS/src/ - Clone this repository:
$ git clone https://github.com/Tinker-Twins/YOLO-ROS-1.git
- Install
OpenCV(or build from source).$ sudo apt update $ sudo apt install libopencv-dev python3-opencv
- Build
boost.$ cd YOLO-ROS-1/boost $ ./bootstrap.sh $ ./b2 headers - Build the ROS packages (build in
Releasemode to maximize performance).$ cd ~/ROS1_WS $ catkin_make -DCMAKE_BUILD_TYPE=Release
- Source the
setup.bashfile of yourROS1_WS.$ echo "source ~/ROS1_WS/devel/setup.bash" >> ~/.bashrc $ source ~/.bashrc
$ roslaunch darknet_ros darknet_ros.launch- Names and other parameters of the publishers, subscribers and actions can be modified from
darknet_ros/darknet_ros/config/ros.yaml. - Parameters related to YOLO object detection algorithm can be modified from
darknet_ros/darknet_ros/config/yolo.yaml. - It is recommended to create a copy of the existing configuration file(s) as a template and do necessary modifications.
- Reference the updated configuration file(s) in
darknet_ros/darknet_ros/launch/darknet_ros.launchor create new launch file(s).
