From 6b0f4b74368da9deafdb78971208982c5e74d4bc Mon Sep 17 00:00:00 2001 From: madratman Date: Fri, 24 Jul 2020 12:15:02 -0700 Subject: [PATCH] PR #2522 --- azure/index.html | 7 +- docker_ubuntu/index.html | 196 +++++++++++++++++++++----------------- lidar/index.html | 6 +- search/search_index.json | 2 +- sensors/index.html | 148 ++++++++++++++-------------- sitemap.xml.gz | Bin 227 -> 227 bytes unreal_custenv/index.html | 27 +++--- 7 files changed, 206 insertions(+), 180 deletions(-) diff --git a/azure/index.html b/azure/index.html index 5ed55cd439..0b2433c72d 100644 --- a/azure/index.html +++ b/azure/index.html @@ -297,11 +297,12 @@

Regarding the deployment of th

When using an Azure Trial account, the default vCPU quota may not be enough to allocate the required VM to run AirSim. If that's the case, you will see an error when trying to create the VM and will have to make a support request to increase the default quota.

  • -

    To avoid charges for the Virtual Machine usage while not in use, remember to deallocate its resources from the Azure Portal or use the following command from the Azure CLI: - bash - az vm deallocate --resource-group MyResourceGroup --name MyVMName

    +

    To avoid charges for the Virtual Machine usage while not in use, remember to deallocate its resources from the Azure Portal or use the following command from the Azure CLI:

  • +
    az vm deallocate --resource-group MyResourceGroup --name MyVMName
    +
    +

    Code and debug from Visual Studio Code and Remote SSH#

    @@ -298,52 +304,58 @@

    Requirements:

    Build the docker image#

    +
    $ cd Airsim/docker;
    +$ python build_airsim_image.py \
    +   --base_image=nvidia/cudagl:10.0-devel-ubuntu18.04 \
    +   --target_image=airsim_binary:10.0-devel-ubuntu18.04
    +
    + +

    Running an unreal binary inside a docker container#

    +
       $ cd Airsim/docker;
    +   $ ./download_blocks_env_binary.sh
    +
    + + +
       $ ./run_airsim_image_binary.sh DOCKER_IMAGE_NAME UNREAL_BINARY_SHELL_SCRIPT UNREAL_BINARY_ARGUMENTS -- headless     
    +
    + +

    For blocks, you can do a $ ./run_airsim_image_binary.sh airsim_binary:10.0-devel-ubuntu18.04 Blocks/Blocks.sh -windowed -ResX=1080 -ResY=720

    + +
    $ ./run_airsim_image_binary.sh Blocks/Blocks.sh -- headless
    +
    + - -

    Source#

    Requirements:#

    +
    $ cd Airsim/docker;
    +$ python build_airsim_image.py \
    +   --source \
    +   ----base_image adamrehn/ue4-engine:4.19.2-cudagl10.0 \
    +   --target_image=airsim_source:4.19.2-cudagl10.0
    +
    +

    Running AirSim container#

    +
       ./run_airsim_image_source.sh airsim_source:4.19.2-cudagl10.0
    +
    + +

    Syntax is ./run_airsim_image_source.sh DOCKER_IMAGE_NAME -- headless -- headless: suffix this to run in optional headless mode.

    - -
  • -

    Inside the container, you can see UnrealEngine and AirSim under /home/ue4.

    -
  • + @@ -354,32 +368,32 @@

    Configuring vehicle-specific s

    If a vehicle provides its sensor list, it must provide the whole list. Selective add/remove/update of the default sensor list is NOT supported. A vehicle specific sensor list can be specified in the vehicle settings part of the json. e.g.,

    -
        "Vehicles": {
    +
    "Vehicles": {
     
    -        "Drone1": {
    -            "VehicleType": "SimpleFlight",
    -            "AutoCreate": true,
    -            ...
    -            "Sensors": {
    -                "MyLidar1": {
    -                    "SensorType": 6,
    -                    "Enabled" : true,
    -                    "NumberOfChannels": 16,
    -                    "PointsPerSecond": 10000,
    -                    "X": 0, "Y": 0, "Z": -1,
    -                    "DrawDebugPoints": true
    -                },
    -                "MyLidar2": {
    -                    "SensorType": 6,
    -                    "Enabled" : true,
    -                    "NumberOfChannels": 4,
    -                    "PointsPerSecond": 10000,
    -                    "X": 0, "Y": 0, "Z": -1,
    -                    "DrawDebugPoints": true
    -                }
    +    "Drone1": {
    +        "VehicleType": "SimpleFlight",
    +        "AutoCreate": true,
    +        ...
    +        "Sensors": {
    +            "MyLidar1": {
    +                "SensorType": 6,
    +                "Enabled" : true,
    +                "NumberOfChannels": 16,
    +                "PointsPerSecond": 10000,
    +                "X": 0, "Y": 0, "Z": -1,
    +                "DrawDebugPoints": true
    +            },
    +            "MyLidar2": {
    +                "SensorType": 6,
    +                "Enabled" : true,
    +                "NumberOfChannels": 4,
    +                "PointsPerSecond": 10000,
    +                "X": 0, "Y": 0, "Z": -1,
    +                "DrawDebugPoints": true
                 }
             }
    -   }
    +    }
    +}
     

    Sensor specific settings#

    @@ -435,57 +449,43 @@
    Server side visualization for d

    Sensor APIs#

    Jump straight to hello_drone.py or hello_drone.cpp for example usage, or see follow below for the full API.

    -
      -
    • -

      Barometer

      -

      C++ -cpp -msr::airlib::BarometerBase::Output getBarometerData(const std::string& barometer_name, const std::string& vehicle_name);

      -

      Python -python -barometer_data = client.getBarometerData(barometer_name = "", vehicle_name = "")

      -
    • -
    • -

      IMU

      -

      C++ -cpp -msr::airlib::ImuBase::Output getImuData(const std::string& imu_name = "", const std::string& vehicle_name = "");

      -

      Python -python -imu_data = client.getImuData(imu_name = "", vehicle_name = "")

      -
    • -
    • -

      GPS

      -

      C++ -cpp -msr::airlib::GpsBase::Output getGpsData(const std::string& gps_name = "", const std::string& vehicle_name = ""); -Python -python -gps_data = client.getGpsData(gps_name = "", vehicle_name = "")

      -
    • -
    • -

      Magnetometer

      -

      C++ -cpp -msr::airlib::MagnetometerBase::Output getMagnetometerData(const std::string& magnetometer_name = "", const std::string& vehicle_name = ""); -Python -python -magnetometer_data = client.getMagnetometerData(magnetometer_name = "", vehicle_name = "")

      -
    • -
    • -

      Distance sensor

      -

      C++ -cpp -msr::airlib::DistanceSensorData getDistanceSensorData(const std::string& distance_sensor_name = "", const std::string& vehicle_name = ""); -Python -python -distance_sensor_data = client.getDistanceSensorData(distance_sensor_name = "", vehicle_name = "")

      -
    • -
    • -

      Lidar - See lidar for Lidar API.

      -
    • -
    +
    Barometer#
    +
    msr::airlib::BarometerBase::Output getBarometerData(const std::string& barometer_name, const std::string& vehicle_name);
    +
    + +
    barometer_data = client.getBarometerData(barometer_name = "", vehicle_name = "")
    +
    + +
    IMU#
    +
    msr::airlib::ImuBase::Output getImuData(const std::string& imu_name = "", const std::string& vehicle_name = "");
    +
    + +
    imu_data = client.getImuData(imu_name = "", vehicle_name = "")
    +
    + +
    GPS#
    +
    msr::airlib::GpsBase::Output getGpsData(const std::string& gps_name = "", const std::string& vehicle_name = "");
    +
    + +
    gps_data = client.getGpsData(gps_name = "", vehicle_name = "")
    +
    + +
    Magnetometer#
    +
    msr::airlib::MagnetometerBase::Output getMagnetometerData(const std::string& magnetometer_name = "", const std::string& vehicle_name = "");
    +
    + +
    magnetometer_data = client.getMagnetometerData(magnetometer_name = "", vehicle_name = "")
    +
    + +
    Distance sensor#
    +
    msr::airlib::DistanceSensorData getDistanceSensorData(const std::string& distance_sensor_name = "", const std::string& vehicle_name = "");
    +
    + +
    distance_sensor_data = client.getDistanceSensorData(distance_sensor_name = "", vehicle_name = "")
    +
    + +
    Lidar#
    +

    See the lidar page for Lidar API.

    diff --git a/sitemap.xml.gz b/sitemap.xml.gz index 3358b5696265d5e7e6e8ba045281322ac82cbedc..01597cfa37d5d7c841aeee6713959f5c304141de 100644 GIT binary patch delta 14 VcmaFN_?VGRzMF$X#&{yzT>v3F1WW(` delta 14 VcmaFN_?VGRzMF&NoAyMuy8tC!1s(tZ diff --git a/unreal_custenv/index.html b/unreal_custenv/index.html index 5b89fd2d8d..492b6e4f95 100644 --- a/unreal_custenv/index.html +++ b/unreal_custenv/index.html @@ -313,7 +313,7 @@

    Step by Step Instructions

    #

    Copy the Unreal\Plugins folder from the build you did in the above section into the root of your Unreal project's folder. In your Unreal project's .uproject file, add the key AdditionalDependencies to the "Modules" object -as we showed in the LandscapeMountains.uproject above. - "AdditionalDependencies": [ - "AirSim" -]
    -and the Plugins section to the top level object: - "Plugins": [ - { - "Name": "AirSim", - "Enabled": true - } - ]

    +as we showed in the LandscapeMountains.uproject above.

    +
    "AdditionalDependencies": [
    +    "AirSim"
    +]
    +
    + +

    and the Plugins section to the top level object:

    +
    "Plugins": [
    +    {
    +        "Name": "AirSim",
    +        "Enabled": true
    +    }
    +]      
    +