Skip to content

Commit

Permalink
Merge pull request #51 from Alpaca-zip/fix/download_bag_file
Browse files Browse the repository at this point in the history
[noetic-devel] Implementing Git LFS
  • Loading branch information
Alpaca-zip authored Jan 19, 2024
2 parents 5b2eccd + 58e2d57 commit 7d61af8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rosbag/** filter=lfs diff=lfs merge=lfs -text
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ RUN mkdir -p ~/catkin_ws/src && \
/bin/bash -c "source /opt/ros/noetic/setup.bash ; cd ~/catkin_ws && catkin build" && \
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc

# Install Git LFS
RUN apt-get update && \
apt-get install -y git-lfs && \
rm -rf /var/lib/apt/lists/* && \
git lfs install

# Clone repository and install using requirements.txt
RUN cd ~/catkin_ws/src && \
git clone -b noetic-devel https://github.com/Alpaca-zip/ultralytics_ros.git && \
python3 -m pip install -r ultralytics_ros/requirements.txt

# Build the ROS package
RUN cd ~/catkin_ws && catkin build

# Download the dataset
RUN cd ~/ && \
wget --load-cookies /tmp/cookies.txt "https://drive.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://drive.google.com/uc?export=download&id=1FWW3yHq1ZVps5gtm0VGrSmEAX0gGRM2t' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1FWW3yHq1ZVps5gtm0VGrSmEAX0gGRM2t" -O kitti_2011_09_26_drive_0106_synced.bag && \
rm -rf /tmp/cookies.txt
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ ROS package for real-time object detection and segmentation using the Ultralytic
## Setup ⚙
```
$ cd ~/catkin_ws/src
$ git clone -b noetic-devel https://github.com/Alpaca-zip/ultralytics_ros.git
$ GIT_LFS_SKIP_SMUDGE=1 git clone -b noetic-devel https://github.com/Alpaca-zip/ultralytics_ros.git
$ python3 -m pip install -r ultralytics_ros/requirements.txt
$ cd ~/catkin_ws
$ rosdep install -r -y -i --from-paths .
$ catkin build
```
**NOTE**: If you want to download KITTI datasets, remove `GIT_LFS_SKIP_SMUDGE=1` from the command line.
## Run 🚀
**`tracker_node`**
```
Expand Down Expand Up @@ -109,5 +110,5 @@ $ docker run -p 6080:80 --shm-size=512m alpacazip/ultralytics_ros:noetic
### Run tracker_node & tracker_with_cloud_node
```
$ roslaunch ultralytics_ros kitti_tracker_with_cloud.launch
$ rosbag play kitti_2011_09_26_drive_0106_synced.bag --clock --loop
$ cd ~/catkin_ws/src/ultralytics_ros/rosbag && rosbag play kitti_2011_09_26_drive_0106_synced.bag --clock --loop
```
3 changes: 3 additions & 0 deletions rosbag/kitti_2011_09_26_drive_0106_synced.bag
Git LFS file not shown

0 comments on commit 7d61af8

Please sign in to comment.