Skip to content
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

UNITY: Multi-drone simGetImages() returning images of only one drone #4816

Open
shabpompeiano opened this issue Mar 22, 2023 · 1 comment
Open

Comments

@shabpompeiano
Copy link

shabpompeiano commented Mar 22, 2023

Bug report

  • AirSim Version/#commit: 1.8.1 (latest)
  • UE/Unity version: Unity 2021.3.6f1
  • autopilot version:
  • OS Version: Windows 10

What's the issue you encountered?

simGetImages() in python api call with a multi drone setting returns captured images from only one drone

Settings

How can the issue be reproduced?

The issue is in Vehicle.cs file, I have created a PR with the fix, if you encounter this problem don't waste days to fix it as I did and take a look at the PR

  1. In Unity multy drone scene add different shapes in front of cameras
  2. run scene and run multi_agent_drone.py example
  3. You will notice that the images come from the same drone
@sandilyasg
Copy link

@shabpompeiano Thanks for this. I see that there is a Python example to run multiple quadrotors in AirSim/PythonClient/multirotor /multi_agent_drone.py, but I am looking for a C++ example like this one, to speed up development. Can you provide any reference for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants