Skip to content

Commit

Permalink
Adds Docker Integration for SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j-h committed Apr 1, 2017
1 parent ed85c96 commit 4547fdd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM alpine:3.5

RUN mkdir -p /opt/sweep-sdk
COPY . /opt/sweep-sdk
WORKDIR /opt/sweep-sdk

RUN apk --no-cache add cmake make gcc g++ zeromq protobuf python2 python3 nodejs && \
cd libsweep && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
cmake --build . && \
cmake --build . --target install && \
cd ../../ && \
cd sweeppy && \
python2 -m ensurepip && \
python3 -m ensurepip && \
pip2 install setuptools && \
pip3 install setuptools && \
python2 setup.py install && \
python3 setup.py install && \
cd .. && \
cd sweepjs && \
npm install --unsafe-perm
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ SDK for Scanse Sweep LiDAR.
- [SweepPy](sweeppy/README.md): Python bindings
- [SweepJs](sweepjs/README.md): NodeJS bindings

In addition you can use the `scanse/sweep-sdk` Docker image which bundles up the SDK.

docker run --device /dev/ttyUSB0:/dev/ttyUSB0 -it scanse/sweep-sdk /bin/sh

Real-time viewer for a device speed of 5 Hz:

![viewer](https://cloud.githubusercontent.com/assets/527241/20300444/92ade432-ab1f-11e6-9d96-a585df3fe471.png)
Expand Down

0 comments on commit 4547fdd

Please sign in to comment.