Skip to content

Commit

Permalink
Update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ulterzlw committed Jan 4, 2023
1 parent 4d76020 commit 6318ace
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
19 changes: 13 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
FROM ros:lunar-ros-base
FROM ros:melodic

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
ros-lunar-cv-bridge \
ros-lunar-opencv3 \
ros-lunar-tf \
python-pip python-matplotlib \
ros-melodic-cv-bridge \
ros-melodic-tf \
python-pip python-matplotlib python-pandas \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/utiasSTARS/pykitti.git && \
cd pykitti && \
git checkout d3e1bb81676e831886726cc5ed79ce1f049aef2c && \
python setup.py install

COPY . /kitti2bag
RUN pip install -e /kitti2bag

RUN cd kitti2bag && \
python setup.py install

WORKDIR /data

Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ Thanks to the work of @jnitsch, _kitti2bag_ can now export velodyne laser data a

It is very easy! On the machine with ROS installed,

install pykitti from **source** instead of from pip
Uninstall pykitti if it is installed from pip
```bash
pip uninstall pykitti
```

install pykitti from source
```bash
git clone https://github.com/utiasSTARS/pykitti.git # test on commit d3e1bb81676e831886726cc5ed79ce1f049aef2c
cd pykitti
Expand Down Expand Up @@ -160,16 +165,23 @@ If you got an error saying something like _command not found_ it means that your
```python -m kitti2bag -t 2011_09_26 -r 0002 raw_sync .```
Or maybe use Docker.

### Prefer Docker?
## Prefer Docker? (Recommended)

That is easy too. There is a pre-built image `tomas789/kitti2bag`.
That is easy too. There is a pre-built image `ulterzlw/kitti2bag`.

```bash
$ wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_drive_0002/2011_09_26_drive_0002_sync.zip
$ wget https://s3.eu-central-1.amazonaws.com/avg-kitti/raw_data/2011_09_26_calib.zip
$ unzip 2011_09_26_drive_0002_sync.zip
$ unzip 2011_09_26_calib.zip
$ docker run -v `pwd`:/data -it tomas789/kitti2bag -t 2011_09_26 -r 0002 raw_sync
$ docker run -v `pwd`:/data -it ulterzlw/kitti2bag -t 2011_09_26 -r 0002 raw_sync
Exporting static transformations
Exporting time dependent transformations
...
```
```bash
$ docker run -v `pwd`/dataset:/data -it ulterzlw/kitti2bag -s 04 odom
Odometry dataset sequence 04 has ground truth information (poses).
Exporting static transformations
Exporting time dependent transformations
...
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
entry_points = {
'console_scripts': ['kitti2bag=kitti2bag.__main__:main'],
},
install_requires=['pykitti', 'progressbar2']
install_requires=['progressbar']
)

0 comments on commit 6318ace

Please sign in to comment.