Skip to content

Commit

Permalink
initial commit for melodic-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
Alpaca-zip committed May 28, 2023
1 parent e36910d commit ceb72ca
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 44 deletions.
48 changes: 32 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
# ultralytics_ros [![](https://img.shields.io/badge/ROS-noetic-green?style=flat-square&logo=ros)](https://github.com/Alpaca-zip/ultralytics_ros/tree/noetic-devel)
# ultralytics_ros [![](https://img.shields.io/badge/ROS-noetic-blue?style=flat-square&logo=ros)](https://github.com/Alpaca-zip/ultralytics_ros/tree/noetic-devel) [![](https://img.shields.io/badge/ROS-melodic-blueviolet?style=flat-square&logo=ros)](https://github.com/Alpaca-zip/ultralytics_ros/tree/melodic-devel)
ROS package for real-time object detection using the Ultralytics YOLO, enabling flexible integration with various robotics applications.

![yolo](https://github.com/Alpaca-zip/ultralytics_ros/assets/84959376/9da7dbbf-5cc0-41bc-be82-d481abbf552a)
## Notice (For melodic)
The default Python version for Ubuntu-18.04 are as follows.
```
$ python --version
Python 2.7.17
$ python3 --version
Python 3.6.9
```
This does not meet the `ultralytics` requirements and should be updated in the following steps.
```
$ sudo apt-get install -y python3.8
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
update-alternatives: using /usr/bin/python3.8 to provide /usr/bin/python3 (python3) in auto mode
$ python3 --version
Python 3.8.0
```
Update `pip` with the following command just to be sure.
```
$ python3 -m pip install --upgrade pip
```
Then, you have to resolve the `ModuleNotFoundError` issue.
```
$ cd /usr/lib/python3/dist-packages
$ sudo cp apt_pkg.cpython-36m-x86_64-linux-gnu.so apt_pkg.so
$ sudo ln -s apt_pkg.cpython-{36m,38m}-x86_64-linux-gnu.so
$ python3 -m pip install rospkg
```
## Setup
```
$ cd ~/catkin_ws/src
Expand Down Expand Up @@ -33,18 +62,5 @@ See also: https://docs.ultralytics.com/models/
- `classes`: List of class indices to consider.
See also: https://github.com/ultralytics/ultralytics/blob/main/ultralytics/datasets/coco128.yaml

## Docker with KITTI datasets 🐳

<img src="https://github.com/Alpaca-zip/ultralytics_ros/assets/84959376/d5ae9d18-56b6-4df9-84a5-be5835c4356a" width="600px">

### Build & Run
```
$ cd ~/catkin_ws/src/ultralytics_ros/docker
$ bash build.sh
$ bash run.sh
```
### Quick start
```
$ roslaunch ultralytics_ros run.launch input_topic:=/kitti/camera_color_left/image_raw bebug:=true
$ rosbag play kitti_2011_09_26_drive_0106_synced.bag --clock --loop
```
## Docker with KITTI datasets ?
Release soon.
25 changes: 0 additions & 25 deletions docker/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions docker/build.sh

This file was deleted.

1 change: 0 additions & 1 deletion docker/run.sh

This file was deleted.

0 comments on commit ceb72ca

Please sign in to comment.