File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3.5
2
+
3
+ RUN mkdir -p /opt/sweep-sdk
4
+ COPY . /opt/sweep-sdk
5
+ WORKDIR /opt/sweep-sdk
6
+
7
+ RUN apk --no-cache add cmake make gcc g++ zeromq protobuf python2 python3 nodejs && \
8
+ cd libsweep && \
9
+ mkdir build && \
10
+ cd build && \
11
+ cmake .. -DCMAKE_BUILD_TYPE=Release && \
12
+ cmake --build . && \
13
+ cmake --build . --target install && \
14
+ cd ../../ && \
15
+ cd sweeppy && \
16
+ python2 -m ensurepip && \
17
+ python3 -m ensurepip && \
18
+ pip2 install setuptools && \
19
+ pip3 install setuptools && \
20
+ python2 setup.py install && \
21
+ python3 setup.py install && \
22
+ cd .. && \
23
+ cd sweepjs && \
24
+ npm install --unsafe-perm
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ SDK for Scanse Sweep LiDAR.
9
9
- [ SweepPy] ( sweeppy/README.md ) : Python bindings
10
10
- [ SweepJs] ( sweepjs/README.md ) : NodeJS bindings
11
11
12
+ In addition you can use the ` scanse/sweep-sdk ` Docker image which bundles up the SDK.
13
+
14
+ docker run --device /dev/ttyUSB0:/dev/ttyUSB0 -it scanse/sweep-sdk /bin/sh
15
+
12
16
Real-time viewer for a device speed of 5 Hz:
13
17
14
18
![ viewer] ( https://cloud.githubusercontent.com/assets/527241/20300444/92ade432-ab1f-11e6-9d96-a585df3fe471.png )
You can’t perform that action at this time.
0 commit comments