CodexLabsLLC / Colosseum

Open source simulator for autonomous robotics built on Unreal Engine with support for Unity
https://codexlabsllc.github.io/Colosseum/
Other
335 stars 105 forks source link

UNITY: Fix get images from multiple drones: simGetImages() was only retur… #45

Closed shabpompeiano closed 1 year ago

shabpompeiano commented 1 year ago

…ning images for one drone when asking for images from multiple drones

Fixes: #

About

UNITY: The call to the api getSimImages() through Python was returning images only from one drone even in a multi-drone setting. The reason is that when doing SetUpCameras() only the cameras of one drone were added.

How Has This Been Tested?

Running the example script multi_agent_drone.py it was not that clear from which drone were the images captured coming from. After testing by adding different shapes in front of the capturing cameras (cam "0" and cam "1") I realized that they were coming only from one drone.

Screenshots (if appropriate):