 airSimClient.getAllObjectPoses(false, false);

<span class="comment">% Get vehicle pose</span>
vehiclePoseLocal = airSimClient.getVehiclePose(vehicle_name);
vehiclePoseWorld = airSimClient.getObjectPose(vehicle_name, false);

<span class="comment">% Choose the object to get the pose from (this one is in the Blocks env)</span>
chosenObject = <span class="string">"Cylinder3"</span>;

<span class="comment">% Get its pose</span>
objectPoseLocal = airSimClient.getObjectPose(chosenObject, true);
objectPoseWorld 