mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
trim trailing whitespace
old-commit-hash: 818bd8a591193b891cee44726203de327c5dd7fb
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ if [ $# -gt 0 ]; then
|
||||
if [ "$INTERNAL" = 1 ]; then
|
||||
./_nui "$1"
|
||||
else
|
||||
./get_files_comma_api.py $1
|
||||
./get_files_comma_api.py $1
|
||||
if [ -f ./_nui ]; then
|
||||
./_nui use_api
|
||||
elif [ -f _nui.app/Contents/MacOS/_nui ]; then
|
||||
|
||||
+2
-2
@@ -11,9 +11,9 @@ First, start the CARLA server.
|
||||
Then start bridge and openpilot.
|
||||
```
|
||||
./start_openpilot_docker.sh
|
||||
```
|
||||
```
|
||||
|
||||
To engage openpilot press 1 a few times while focused on bridge.py to increase the cruise speed.
|
||||
To engage openpilot press 1 a few times while focused on bridge.py to increase the cruise speed.
|
||||
## Controls
|
||||
|
||||
You can control openpilot driving in the simulation with the following keys
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ from selfdrive.test.helpers import set_params_enabled
|
||||
parser = argparse.ArgumentParser(description='Bridge between CARLA and openpilot.')
|
||||
parser.add_argument('--joystick', action='store_true')
|
||||
parser.add_argument('--town', type=str, default='Town04')
|
||||
parser.add_argument('--spawn_point', dest='num_selected_spawn_point',
|
||||
parser.add_argument('--spawn_point', dest='num_selected_spawn_point',
|
||||
type=int, default=16)
|
||||
parser.add_argument('--cloudyness', default=0.1, type=float)
|
||||
parser.add_argument('--precipitation', default=0.0, type=float)
|
||||
@@ -145,7 +145,7 @@ def go(q):
|
||||
vehicle_bp = blueprint_library.filter('vehicle.tesla.*')[0]
|
||||
spawn_points = world_map.get_spawn_points()
|
||||
assert len(spawn_points) > args.num_selected_spawn_point, \
|
||||
f'''No spawn point {args.num_selected_spawn_point}, try a value between 0 and
|
||||
f'''No spawn point {args.num_selected_spawn_point}, try a value between 0 and
|
||||
{len(spawn_points)} for this town.'''
|
||||
spawn_point = spawn_points[args.num_selected_spawn_point]
|
||||
vehicle = world.spawn_actor(vehicle_bp, spawn_point)
|
||||
|
||||
@@ -16,4 +16,4 @@ if ! $(apt list --installed | grep -q nvidia-container-toolkit); then
|
||||
fi
|
||||
|
||||
docker pull carlasim/carla:0.9.7
|
||||
docker run -it --net=host --gpus all carlasim/carla:0.9.7
|
||||
docker run -it --net=host --gpus all carlasim/carla:0.9.7
|
||||
|
||||
Reference in New Issue
Block a user