Skip to content

"ClockSpeed" setting does not work with SimMode: Car #2163

Closed
@patnolan33

Description

@patnolan33

When trying to set the clock speed to anything greater than 1 in SimMode: Car, the simulation still seems to run at real time (i.e. ClockSpeed = 1). The same setup was used in Multirotor mode and the clock speed was set as expected to faster than real time. I am on master and using the Docker setup to run AirSim (binary versions of the Docker scripts).

Here is a screenshot showing the Config clock speed versus the actual clock speed:
Screenshot from 2019-08-27 16-45-45

Here is the settings.json file that was loaded by AirSim:

{
  "SimMode": "Car", 
  "ClockSpeed": 50.0, 
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings_json.md", 
  "SettingsVersion": 1.2, 
  "LocalHostIp": "127.0.0.1",
  "Recording": {
      "RecordOnMove": false, 
      "Cameras": [
          {
              "PixelsAsFloat": false, 
              "Compress": true, 
              "ImageType": 0, 
              "CameraName": "Car1_Scene"
          }
      ], 
      "RecordInterval": 0.05
  }, 
  "CameraDefaults": {
      "Gimbal": {
          "Yaw": 0, 
          "Stabilization": 0, 
          "Roll": 0, 
          "Pitch": 0
      }, 
      "Yaw": 0, 
      "NoiseSettings": [
          {
              "HorzDistortionContrib": 1.0, 
              "HorzWaveScreenSize": 1.0, 
              "HorzDistortionStrength": 0.002, 
              "HorzWaveContrib": 0.03, 
              "RandSize": 500.0, 
              "HorzWaveStrength": 0.08, 
              "Enabled": false, 
              "RandContrib": 0.2, 
              "RandDensity": 2, 
              "HorzNoiseLinesDensityXY": 0.5, 
              "RandSpeed": 100000.0, 
              "HorzWaveVertSize": 1.0, 
              "HorzNoiseLinesContrib": 1.0, 
              "ImageType": 0, 
              "HorzNoiseLinesDensityY": 0.01
          }
      ], 
      "CaptureSettings": [
          {
              "OrthoWidth": 5.12, 
              "AutoExposureSpeed": 100, 
              "TargetGamma": 1.0, 
              "AutoExposureBias": 0, 
              "AutoExposureMinBrightness": 0.03, 
              "AutoExposureMaxBrightness": 0.64, 
              "Height": 144, 
              "ProjectionMode": "", 
              "Width": 256, 
              "FOV_Degrees": 90, 
              "MotionBlurAmount": 0, 
              "ImageType": 0
          }
      ], 
      "Pitch": 0, 
      "Y": 0, 
      "X": 0, 
      "Z": 0, 
      "Roll": 0
  },
  "Vehicles": {
      "Car1": {
          "EnableCollisions": true, 
          "VehicleType": "PhysXCar", 
          "Yaw": -180, 
          "DefaultVehicleState": "", 
          "EnableCollisionPassthrogh": false, 
          "Y": 0, 
          "Cameras": {
              "Car1_Scene": {
                  "Yaw": 0, 
                  "CaptureSettings": [
                      {
                          "Width": 256, 
                          "FOV_Degrees": 90, 
                          "ImageType": 0, 
                          "Height": 144
                      }
                  ], 
                  "Pitch": 0, 
                  "Y": 0, 
                  "X": 2.25, 
                  "Z": -0.75, 
                  "Roll": 0
              }, 
              "Car1_Depth": {
                  "Yaw": 0, 
                  "CaptureSettings": [
                      {
                          "Width": 256, 
                          "FOV_Degrees": 90, 
                          "ImageType": 3, 
                          "Height": 144
                      }
                  ], 
                  "Pitch": 0, 
                  "Y": 0, 
                  "X": 2.25, 
                  "Z": -0.75, 
                  "Roll": 0
              }
          }, 
          "AllowAPIAlways": true, 
          "X": 0, 
          "Z": -1
      }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions