Fixup dockerfile, requirements, upgrade android gradle.
I'll merge this stuff in tracking for now, as there's some other stuff I'm working on and want these latest changes in.
This commit is contained in:
@@ -18,10 +18,14 @@ func doServer() throws {
|
|||||||
try! group.syncShutdownGracefully()
|
try! group.syncShutdownGracefully()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let lidar = createLidar()
|
||||||
|
lidar.iterMeasurements{measruement in
|
||||||
|
print(measruement.quality)
|
||||||
|
return false
|
||||||
|
}
|
||||||
// Create a provider using the features we read.
|
// Create a provider using the features we read.
|
||||||
let provider = try MotorProvider(vehicle: getVehicle2D())
|
let provider = try MotorProvider(vehicle: getVehicle2D())
|
||||||
let trackingProvider = LidarProvider(lidar: createLidar())
|
let trackingProvider = LidarProvider(lidar: lidar)
|
||||||
|
|
||||||
// Start the server and print its address once it has started.
|
// Start the server and print its address once it has started.
|
||||||
let server = Server.insecure(group: group)
|
let server = Server.insecure(group: group)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ buildscript {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.0.0'
|
classpath 'com.android.tools.build:gradle:4.0.1'
|
||||||
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10'
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
FROM python:3.6-slim
|
FROM vato.ddns.net:8083/python:3
|
||||||
|
|
||||||
|
ARG PYPI_USERNAME
|
||||||
|
ARG PYPI_PASSWORD
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
# OpenCV has a LOT of dependencies.
|
# OpenCV has a LOT of dependencies.
|
||||||
@@ -17,14 +20,14 @@ RUN apt-get install -y \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt /
|
COPY requirements.txt /
|
||||||
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
RUN pip install --index-url https://${PYPI_USERNAME}:${PYPI_PASSWORD}@vato.ddns.net/nexus/repository/pypi-grouped/simple -r requirements.txt
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . /app
|
COPY ./src /app
|
||||||
|
|
||||||
# We aren't listening, just connecting, so probs won't need this.
|
# We aren't listening, just connecting, so probs won't need this.
|
||||||
# EXPOSE 1883
|
# EXPOSE 1883
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
|
|
||||||
CMD ["python", "DecisionSystem/CentralisedDecision/cameraserver.py", "-V", "/app/HandRecognitionMacbookFixed.mp4"]
|
CMD ["python", "-m", "car"]
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
numpy
|
numpy
|
||||||
opencv-python
|
opencv-python
|
||||||
six
|
six
|
||||||
|
wheel
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
u-msgpack-python
|
u-msgpack-python
|
||||||
grpcio-tools
|
grpcio-tools
|
||||||
rplidar
|
rplidar
|
||||||
|
breezyslam
|
||||||
pyzmq
|
pyzmq
|
||||||
wheel
|
|
||||||
@@ -221,6 +221,8 @@ def assign_groups_II(prev_groups, new_groups):
|
|||||||
# TODO: Check the centres are within a certain threshold.
|
# TODO: Check the centres are within a certain threshold.
|
||||||
new_groups[i].number = prev_groups[0].number
|
new_groups[i].number = prev_groups[0].number
|
||||||
|
|
||||||
|
# TODO: Go through to put all groups into one (if multiple groups get same number) to avoid splits.
|
||||||
|
|
||||||
return new_groups
|
return new_groups
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user