aqeelanwar / PEDRA

Programmable Engine for Drone Reinforcement Learning Applications
MIT License
267 stars 59 forks source link

How to get the positions of trees in the outdoor environment? #103

Open DongXingshuai opened 2 years ago

DongXingshuai commented 2 years ago

Hi, I am trying to get the positions of trees in the outdoor environment through "simListSceneObjects()" and "simGetObjectPose". I got the following object and their pose. However, it seems that the trees are not included. Has anybody ever came accross this problem? Thanks

AbstractNavData-Default 1 0 0 0 -160 -150 2 AirSimGameMode_0 1 0 0 0 -160 -150 2 GameNetworkManager_0 1 0 0 0 -160 -150 2 GameSession_0 1 0 0 0 -160 -150 2 GameStateBase_0 1 0 0 0 -160 -150 2 PlayerState_0 1 0 0 0 -160 -150 2 SkyLight_1 1 0 0 0 -181.1307 -146.814 -0.6724 WorldSettings_1 1 0 0 0 -160 -150 2 DefaultPhysicsVolume_0 1 0 0 0 -160 -150 2 CameraActor_0 1 0 0 0 -160 -150 2 ExternalCamera 0.9558 0 -0.2942 0 -3 0 -1.0481 BP_PIPCamera_C_0 0 0 0 -1 -0.094 -0.0755 0.884 BP_PIPCamera_C_1 0 0 0 -1 -0.094 0.075 0.884 BP_PIPCamera_C_2 0 0 0 -1 -0.094 0 0.884 BP_PIPCamera_C_3 1 0 0 0 0.0849 0 0.884 BP_PIPCamera_C_4 0 -0.7071 0 -0.7071 0 0 0.9546 SimpleFlight 0 0 0 -1 0 0 0.992 PlayerController_0 0 0 0 -1 0 0 0 SimHUD_0 1 0 0 0 -160 -150 2 LightSource 0.3837 -0.3512 -0.8515 -0.0665 -59.9737 -148.2811 -7.4692 LightSource2 0.8017 -0.1891 -0.3275 -0.4629 30.0563 -148.2811 -7.4692 Forest_source_C_1 1 0 0 0 -160 -150 2 PlayerStart_1 0 0 0 -1 0 0 0 ParticleEventManager_0 1 0 0 0 -160 -150 2 SceneCapture2D_1 0.5 -0.5 -0.5 -0.5 -21.0372 33.715 -533.9339 PlayerCameraManager_0 0.9558 0 -0.2942 0 -3 0 -1.0481 Bench_10 0 0 0 1 -35.5024 8.5938 1 Bench_11 0 0 0 1 -58.5024 8.5939 1 Bench_16 0.6756 0 0 0.7373 65.5012 10.7817 1 Bench_18 0 0 0 1 -25.5 63.5 1 Bench_183 0 0 0 1 -6.5024 11.5937 1 Bench_188 0.7373 0 0 0.6756 -46.4981 25.0436 1 bin_13 0.6756 0 0 -0.7373 -60 8.5 1 bin_22 1 0 0 0 -27 63.5 1 bin_25 1 0 0 0 62 8 1 bin_28 1 0 0 0 61 8 1 Monument_01_176 0.7071 0 0 0.7071 -48.5 6 1 SM_Fence_Half_01_2 1 0 0 0 -131.08 -98.31 -9.63 SM_Fence_Half_5 1 0 0 0 -126.11 -98.33 -8.55 SM_Fence_Half_8 1 0 0 0 -122.02 -98.32 -6.33 Landscape_2 1 0 0 0 -158.33 -109.73 1 LandscapeGizmoActiveActor_0 1 0 0 0 -160 -150 2 InstancedFoliageActor2 1 0 0 0 -160 -150 2 GameplayDebuggerCategoryReplicator_0 1 0 0 0 -160 -150 2 GameplayDebuggerPlayerManager_0 1 0 0 0 -160 -150 2 CameraDirector 0.9848 0 -0.1736 0 -3 0 -2.34 SimModeWorldMultiRotor_0 1 0 0 0 -160 -150 2 BP_Sky_Sphere_36 1 0 0 0 -3.49 21.96 -5.28