Make Nui tests work. Framereader moved to tools/clib (#1185)

* add more deps

* setup is now working,removing brackets

* Fixing tests in nui

* make it eveno

* readme markdown and town not needed since set via client

* adding explanations for sim in readme

* make it markdown buildable

* revert changes in setup

* work now
pull/1190/head
littlemountainman 5 years ago committed by GitHub
parent 86b1ca176a
commit a32fe80d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/nui/test/TestFrameReader.cpp
  2. 4
      tools/nui/test/test.pro
  3. 36
      tools/sim/README.md
  4. 2
      tools/sim/lib/replay.sh
  5. 3
      tools/sim/start_carla.sh
  6. 1
      tools/ubuntu_setup.sh

@ -1,4 +1,4 @@
#include "FrameReader.hpp"
#include "../../clib/FrameReader.hpp"
#include "TestFrameReader.hpp"
void TestFrameReader::frameread() {

@ -8,8 +8,8 @@ TARGET = test
INCLUDEPATH += . ../
# Input
SOURCES += TestFrameReader.cpp ../FrameReader.cpp
HEADERS = TestFrameReader.hpp ../FrameReader.hpp
SOURCES += TestFrameReader.cpp ../../clib/FrameReader.cpp
HEADERS = TestFrameReader.hpp ../../clib/FrameReader.hpp
CONFIG += c++14

@ -1,24 +1,40 @@
Openpiltot Simulator
=====================
Needs Ubuntu 16.04
== Checkout openpilot ==
## Checkout openpilot
```
cd ~/
git clone https://github.com/commaai/openpilot.git
# Add export PYTHONPATH=$HOME/openpilot to your bashrc
# Have a working tensorflow+keras in python3.7.3 (with [packages] in openpilot/Pipfile)
== Install (in tab 1) ==
```
## Install (in tab 1)
```
cd ~/openpilot/tools/sim
./start_carla.sh # install CARLA 0.9.7 and start the server
== openpilot (in tab 2) ==
```
## openpilot (in tab 2)
```
cd ~/openpilot/selfdrive/
PASSIVE=0 NOBOARD=1 ./manager.py
== bridge (in tab 3) ==
```
## bridge (in tab 3)
```
# links carla to openpilot, will "start the car" according to manager
cd ~/openpilot/tools/sim
./bridge.py
```
## Controls
Now you can control the simulator with the keys:
1: Cruise up 5 mp/h
2: Cruise down 5 mp/h
3: Cruise cancel
q: Exit all

@ -1,5 +1,5 @@
#!/bin/bash
cd ~/one/tools/nui
cd ~/openpilot/tools/nui
# vision, boardd, sensorsd, gpsd
ALLOW=frame,can,ubloxRaw,health,sensorEvents,gpsNMEA,gpsLocation ./nui "02ec6bea180a4d36/2019-10-25--10-18-09"

@ -15,5 +15,4 @@ if [ ! -d carla ]; then
fi
cd carla
./CarlaUE4.sh Town04
./CarlaUE4.sh

@ -94,4 +94,3 @@ pip install tensorflow-gpu==2.0
# TODO: PC should log somewhere else
#sudo mkdir -p /data/media/0/realdata
#sudo chown $USER /data/media/0/realdata

Loading…
Cancel
Save