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

Cannot get data of cameras when simulating multiple iris drone #991

Open
longvucao opened this issue Jun 10, 2023 · 2 comments
Open

Cannot get data of cameras when simulating multiple iris drone #991

longvucao opened this issue Jun 10, 2023 · 2 comments

Comments

@longvucao
Copy link

Hi, I am trying to simulate multiple iris drone and want to get its camera at the same time. When I worked with a drone, I added the following code to the end of the iris.sdf file to get the camera:
4

Then I used the file mavros_posix_sitl.launch and it got the image I wanted (you can see it in the picture)
1
2

However when I use the file multi_uav_mavros_sitl.launch to simulate multiple drones (still using the edited iris.sdf file) the desired topic appears but I can't get the image (you can see the difference here picture below)
3

So do you have any ideas to solve this problem?
I really appreciate your help)

@JohnTGZ
Copy link

JohnTGZ commented Sep 7, 2023

You need to find a way to namespace all the different camera topics being published so that they are distinct from each other? i.e. not publishing to the same camera topic.

@Babylonehy
Copy link

Use group namesapce when you spawn your model into gazebo. You have to make sure your depth camera have <robot_namespace> </robot_namespace>.

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

3 participants