AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Calling listVehicles API function from Blueprint hangs indefinitely

Open Iaxama opened this issue 4 years ago • 0 comments

Bug report

  • AirSim Version/#commit: 32de2c4ddf6b17b248f7f557793a35bac508512a
  • UE version: 4.26
  • autopilot version: N/A
  • OS Version: Windows 10 Enterprise build 19042.546

What's the issue you encountered?

Settings

{
	"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
	"SettingsVersion": 1.2,
	"SimMode": "Multirotor",
	"ClockSpeed": 1,
	"CameraDefaults": {    
	"Gimbal": {
		"Stabilization": 1,
		"Pitch": -90, "Roll": 0, "Yaw": 0
	  }
	},
	"Vehicles": {
		"Drone1": {
		  "VehicleType": "SimpleFlight",
		  "X": 0, "Y": 0, "Z": -2
		}, 

		"Drone2": {
			"VehicleType": "SimpleFlight",
			"X": 0, "Y": 2, "Z": -2
		  }

    }
}

How can the issue be reproduced?

  1. Follow the instructions at https://microsoft.github.io/AirSim/unreal_custenv/ to get the AirSim plugin running on the Landscape Mountain scene
  2. Create a custom player controller called MyPlayerController and define Blueprint callable function as defined in https://gist.github.com/Iaxama/a68e45a18d64b28c35d52c21c8766af2
  3. From the MyPlayerController Blueprint call the listVehicles() function. The execution hangs when calling client.listVehicles(), where client is a MultirotorRpcLibClient (other calls to the client functions work just fine)

Include full error message in text form

There is no error message given that the execution just hangs.

What's better than filing an issue? Filing a pull request :).

Iaxama avatar Jun 28 '22 14:06 Iaxama