Airsim总结

 

基础

坐标系定义

Coordinate System#

All AirSim API uses NED coordinate system, i.e., +X is North, +Y is East and +Z is Down. All units are in SI system. Please note that this is different from coordinate system used internally by Unreal Engine. In Unreal Engine, +Z is up instead of down and length unit is in centimeters instead of meters. AirSim APIs takes care of the appropriate conversions. The starting point of the vehicle is always coordinates (0, 0, 0) in NED system. Thus when converting from Unreal coordinates to NED, we first subtract the starting offset and then scale by 100 for cm to m conversion. The vehicle is spawned in Unreal environment where the Player Start component is placed. There is a setting called OriginGeopoint in settings.json which assigns geographic longitude, longitude and altitude to the Player Start component.

采用国际标准单位制(SI units)

国际单位制(SI Units)是一套国际通用的单位标准。

   2019 年 5 月 20 日开始生效的新国际单位标准,该标准中的数值也被称为 2018 CODATA 推荐值。CODATA 是科学技术数据委员会(Committee on Data for Science and Technology)的简称。在新标准中,所有基本单位都可以通过 7 个预定义的物理常数来测定(表 1 )。以下的数值除了有特殊说明,都是精确值(无限位小数用省略号表示)

参考:国际单位制 - 小时百科

设置在渲染窗口中,相机如何跟踪机体,可手动设置

自定义相机跟踪拍摄机体时的相对位姿关系

  "CameraDirector": {
    "FollowDistance": -3,
    "X": NaN, "Y": NaN, "Z": NaN,
    "Pitch": NaN, "Roll": NaN, "Yaw": NaN
  },

Settings - AirSim

Camera Director Settings#

This element specifies the settings used for the camera following the vehicle in the ViewPort.

  • FollowDistance: Distance at which camera follows the vehicle, default is -8 (8 meters) for Car, -3 for others.
  • X, Y, Z, Yaw, Roll, Pitch: These elements allows you to specify the position and orientation of the camera relative to the vehicle. Position is in NED coordinates in SI units with origin set to Player Start location in Unreal environment. The orientation is specified in degrees.

贡献案例

检测二维及三维边界

Python script detection.py shows how to set detection parameters and shows the result in OpenCV capture.

无人机按照指定路径飞行

So the PythonClient/multirotor folder contains a script named Orbit that will do precisely that. 

Ever wanted to capture a bunch of top-down pictures of a certain location? Well, the Python API makes this really simple. See the code available here.

让无人机按照指定路径飞行,但汽车无法实现,是否可借助样条曲线指定路径进行运动?可先查看无人机按照指定路径飞行的代码实现原理(重点在c++代码,python只是调用API)。

深度学习自动驾驶

 GitHub - simondlevy/AirSimTensorFlow: A simple example of using Microsoft AirSim to train a TensorFlow neural net on collision avoidance

 GitHub - microsoft/AutonomousDrivingCookbook: Scenarios, tutorials and demos for Autonomous Driving

### 回答1: AirSim是一款开源的虚拟现实模拟器,可以用来模拟无人机、自动驾驶汽车和其他载具的行为。要使用AirSim,您需要安装相应的软件和运行时环境。 1. 首先,您需要在计算机上安装Microsoft Visual Studio和CMake。这是AirSim所必需的开发工具,可以帮助您编译和运行AirSim代码。 2. 然后,您需要安装Unreal Engine 4(UE4)。AirSim使用UE4作为渲染引擎,可以帮助您创建高质量的3D模拟环境。 3. 接下来,您需要下载AirSim源代码。您可以在GitHub上找到AirSim的代码库,并使用git工具将代码克隆到本地计算机。 4. 最后,您需要打开Visual Studio,打开AirSim项目,并使用CMake配置和生成项目。一旦项目配置完成,您就可以在Visual Studio中运行AirSim。 希望这些步骤能帮助您开始使用AirSim。如果您在安装和配置过程中遇到问题,可以尝试参考AirSim文档或在网上搜索解决方案。 ### 回答2: 要开始使用AirSim,首先需要按照以下步骤进行设置和配置: 1.下载并安装AirSim:在AirSim的官方GitHub库或其官方网站上下载最新版本的AirSim安装程序,并按照安装向导的指示完成安装过程。 2.选择模拟器:AirSim支持多个模拟器,例如Unity和UE4。您可以根据自己的需求选择适合您的模拟器。 3.选择仿真环境:AirSim还提供了不同的仿真环境,如城市环境、森林环境等。您可以根据您的应用场景选择适合的仿真环境。 4.配置设置:在开始使用AirSim之前,您需要根据自己的需求进行一些配置设置。例如,您可以设置图像分辨率、仿真车辆的控制方式等。 5.编写代码:一旦AirSim设置完成,您可以使用各种编程语言(如Python、C++等)编写代码来与AirSim进行交互。您可以使用AirSim提供的API来控制车辆、获取传感器数据等。 6.运行代码:在完成代码编写后,您可以运行您的代码,与仿真环境进行交互。您可以控制车辆的行为、收集传感器数据等。 7.调试和优化:进行调试和优化是使用AirSim的重要一步。您可以根据运行过程中的错误和性能问题进行调试和优化,以获得更好的仿真体验。 总结起来,要开始使用AirSim,您需要下载和安装AirSim,选择合适的模拟器和仿真环境,进行配置设置,编写代码并运行。在使用过程中,您可以根据自己的需求进行调试和优化,以获得更好的使用体验。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值