windows10安装Carla并调试驾驶功能

首先,下载Carla,地址点击这里
点下面的Download后看到
在这里插入图片描述
首先需要安装pygame

pip install pygame

本文使用的是Jupyter lab,在解压后先进入到指定文件夹
在这里插入图片描述

cd D:\Program Files (x86)\Carla\WindowsNoEditor\PythonAPI\examples

执行下列代码后生成人物和车辆:

run spawn_npc.py -n 100

在这里插入图片描述
执行一下代码会打开一个控制窗口:

run manual_control.py

在这里插入图片描述
功能如下:
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html

Welcome to CARLA manual control.

Use ARROWS or WASD keys for control.

W            : throttle 
S            : brake
A/D          : steer left/right
Q            : toggle reverse
Space        : hand-brake
P            : toggle autopilot
M            : toggle manual transmission
,/.          : gear up/down

L            : toggle next light type
SHIFT + L    : toggle high beam
Z/X          : toggle right/left blinker
I            : toggle interior light

TAB          : change sensor position
` or N       : next sensor
[1-9]        : change to sensor [1-9]
G            : toggle radar visualization
C            : change weather (Shift+C reverse)
Backspace    : change vehicle

R            : toggle recording images to disk

CTRL + R     : toggle recording of simulation (replacing any previous)
CTRL + P     : start replaying last recorded simulation
CTRL + +     : increments the start time of the replay by 1 second (+SHIFT = 10 seconds)
CTRL + -     : decrements the start time of the replay by 1 second (+SHIFT = 10 seconds)

F1           : toggle HUD
H/?          : toggle help
ESC          : quit

比如切换传感器1-9演示几个:
按6后显示
在这里插入图片描述
按M后自动驾驶操作,G的话是可视化雷达
在这里插入图片描述
在这里插入图片描述
当碰撞时候,会在左下角提示Collide with XXX。

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值