Not anymore

This commit is contained in:
felipecode 2017-12-21 20:21:54 -02:00
parent 60fa467d0d
commit 7b7375e3e2
3 changed files with 30 additions and 5 deletions

26
Docs/carla_benchmark.md Normal file
View File

@ -0,0 +1,26 @@
CARLA Benchmark
===============
Running the Benchmark
-------------------------
The "carla" api provides a basic benchmarking system, that allows making
several tests on a certain agent. We already provide the same benchmark
used in the CoRL 2017 paper. By running this benchmark you can compare
the results of your agent to the results obtained by the agents
show in the paper.
The basic functionality requires only the protobuf module to be installed
$ sudo apt-get install python3 python3-pip
$ sudo pip3 install protobuf
However, other operations as handling images require some extra modules, and the
"manual_control.py" example requires pygame
$ sudo pip3 install numpy Pillow pygame
The script "PythonClient/client_example.py" provides basic functionality for
controlling the vehicle and saving images to disk. Run the help command to see
options available
$ ./client_example.py --help
The script "PythonClient/manual_control.py" launches a PyGame window with
several views and allows to control the vehicle using the WASD keys.
$ ./manual_control.py --help

View File

@ -1,9 +1,6 @@
import math
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import collections as mc
def string_to_node(string):
vec = string.split(',')
@ -108,6 +105,9 @@ class Graph(object):
return self._nodes
def plot_ori(self, c):
from matplotlib import collections as mc
import matplotlib.pyplot as plt
line_len = 1
lines = [[(p[0], p[1]), (p[0] + line_len * self._angles[p][0],
@ -125,7 +125,7 @@ class Graph(object):
plt.scatter(xs, ys, color=c)
def plot(self, c):
import matplotlib.pyplot as plt
xs = [p[0] for p in self._nodes]
ys = [p[1] for p in self._nodes]

View File

@ -54,7 +54,6 @@ class Planner(object):
:return: a command ( Straight,Lane Follow, Left or Right)
"""
track_source = self._city_track.project_node(source, source_ori)
track_target = self._city_track.project_node(target, target_ori)