Skip to content

simSetSegmentationObjectID might fail to find some objects, although their mesh names are in the unreal engine project. #3804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KailinTong opened this issue Jun 20, 2021 · 1 comment
Labels
api bug-report for issues filed as bug reports

Comments

@KailinTong
Copy link

Question

What's your question?

simSetSegmentationObjectID might fail to find some objects, although their mesh names are in the unreal engine project.

self.client.simSetSegmentationObjectID("Plane_223[\w]*", CARLA_CLASS["Other"], True)

self.client.simSetSegmentationObjectID("Plane_223", CARLA_CLASS["Other"], False)

They return False, but they should return True.

image

Include context on what you are trying to achieve

Context details

  • AirSim Version/#commit: Windows 1.4
  • UE/Unity version: 4.2.5
  • OS Version: Windows v1.4.0 - Windows

json:

{
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"Recording": {
"RecordOnMove": false,
"RecordInterval": 0.05,
"Cameras": [
{ "CameraName": "0", "ImageType": 0, "PixelsAsFloat": false, "Compress": false },
{ "CameraName": "1", "ImageType": 0, "PixelsAsFloat": false, "Compress": false },
{ "CameraName": "2", "ImageType": 0, "PixelsAsFloat": false, "Compress": false },
{ "CameraName": "3", "ImageType": 0, "PixelsAsFloat": false, "Compress": false }
]
},
"CameraDefaults": {
"CaptureSettings": [
{
"ImageType": 0,
"Width": 2048,
"Height": 1024,
"FOV_Degrees": 90,
"AutoExposureSpeed": 100,
"AutoExposureBias": 0,
"AutoExposureMaxBrightness": 0.64,
"AutoExposureMinBrightness": 0.03,
"MotionBlurAmount": 0,
"TargetGamma": 1.0,
"ProjectionMode": "",
"OrthoWidth": 5.12
},
{
"ImageType": 1,
"Width": 2048,
"Height": 1024,
"FOV_Degrees": 90,
"AutoExposureSpeed": 100,
"AutoExposureBias": 0,
"AutoExposureMaxBrightness": 0.64,
"AutoExposureMinBrightness": 0.03,
"MotionBlurAmount": 0,
"TargetGamma": 1.0,
"ProjectionMode": "",
"OrthoWidth": 5.12
},
{
"ImageType": 2,
"Width": 2048,
"Height": 1024,
"FOV_Degrees": 90,
"AutoExposureSpeed": 100,
"AutoExposureBias": 0,
"AutoExposureMaxBrightness": 0.64,
"AutoExposureMinBrightness": 0.03,
"MotionBlurAmount": 0,
"TargetGamma": 1.0,
"ProjectionMode": "",
"OrthoWidth": 5.12
},
{
"ImageType": 3,
"Width": 2048,
"Height": 1024,
"FOV_Degrees": 90,
"AutoExposureSpeed": 100,
"AutoExposureBias": 0,
"AutoExposureMaxBrightness": 0.64,
"AutoExposureMinBrightness": 0.03,
"MotionBlurAmount": 0,
"TargetGamma": 1.0,
"ProjectionMode": "",
"OrthoWidth": 5.12
},
{
"ImageType": 5,
"Width": 2048,
"Height": 1024,
"FOV_Degrees": 90,
"AutoExposureSpeed": 100,
"AutoExposureBias": 0,
"AutoExposureMaxBrightness": 0.64,
"AutoExposureMinBrightness": 0.03,
"MotionBlurAmount": 0,
"TargetGamma": 1.0,
"ProjectionMode": "",
"OrthoWidth": 5.12
}
],
"Gimbal": {
"Stabilization": 1
}
},

"SubWindows": [
{"WindowID": 0, "CameraName": "0", "ImageType": 0, "Visible": true},
{"WindowID": 1, "CameraName": "0", "ImageType": 5, "Visible": true},
{"WindowID": 2, "CameraName": "2", "ImageType": 0, "Visible": true}
],

"Vehicles": {
"SimpleFlight": {
"VehicleType": "SimpleFlight",
"Cameras": {
"0": {
"CaptureSettings": [
{
"ImageType": 0,
"Width": 2048,
"Height": 1024},
{
"ImageType": 5,
"Width": 2048,
"Height": 1024}
],

      "Gimbal": {
        "Stabilization": 1,
        "Pitch": -30, "Roll": 0, "Yaw": 0
          },
      "X": 2, "Y": -0.2, "Z": 0,
      "Pitch": -30, "Roll": 0, "Yaw": 0

    },

    "1": {
      "CaptureSettings": [
                {
                    "ImageType": 0,
                    "Width": 2048,
                     "Height": 1024},
                {
                    "ImageType": 5,
                    "Width": 2048,
                     "Height": 1024}
              ],
      "Gimbal": {
        "Stabilization": 1,
        "Pitch": -30, "Roll": 0, "Yaw": 0
          },
      "X": 2, "Y": 0.2, "Z": 0,
      "Pitch": -30, "Roll": 0, "Yaw": 0

    },
    "2": {
      "CaptureSettings": [
                {
                    "ImageType": 0,
                    "Width": 2048,
                     "Height": 1024},
                {
                    "ImageType": 5,
                    "Width": 2048,
                     "Height": 1024}
              ],
      "Gimbal": {
        "Stabilization": 1,
        "Pitch": -90, "Roll": 0, "Yaw": 0
          },
      "X": 0, "Y": -0.2, "Z": 0.2,
      "Pitch": -90, "Roll": 0, "Yaw": 0

    },
    "3": {
      "CaptureSettings": [
                {
                    "ImageType": 0,
                    "Width": 2048,
                     "Height": 1024},
                {
                    "ImageType": 5,
                    "Width": 2048,
                     "Height": 1024}
              ],
      "Gimbal": {
        "Stabilization": 1,
        "Pitch": -90, "Roll": 0, "Yaw": 0
          },
      "X": 0, "Y": 0.2, "Z": 0.2,
      "Pitch": -90, "Roll": 0, "Yaw": 0

    }

  }
}

}

}

Include details of what you already did to find answers

@zimmy87 zimmy87 added the bug-report for issues filed as bug reports label Jul 2, 2021
@zimmy87
Copy link
Contributor

zimmy87 commented Jul 2, 2021

If you change CARLA_CLASS["Other"] in your call to self.client.simSetSegmentationObjectID("Plane_223[\w]*", CARLA_CLASS["Other"], True) to an integer literal between 0-255, do you still get the same return value?

@zimmy87 zimmy87 added the api label Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api bug-report for issues filed as bug reports
Projects
None yet
Development

No branches or pull requests

2 participants