-
Notifications
You must be signed in to change notification settings - Fork 89
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
Multi-Vehicle Simulation (iris and zephyr) #51
Comments
Hi @amirrezasadeqi |
Hi there! I looked through out the SDF files to see how to change input/output ports and I find the But could you please help me to know how to override these parameters in another custom world file in which I've included the
because I could not find anything online about how to do this and changing the original file is not very nice. |
Hi, To simulate multi-models, you should have hard-copy pasted model or world include models for following two lines modified according to the your instance number |
Hi Thanks for your answers! Actually I don't need any auto-thing. I want to know if there is some way that I can use to override these options when I include the model in my world file, just like we give
I used above code but SDF does not support it! Since I'm not very expert in SDF, I think I added it in wrong way. I searched the internet to find the right way of
If there is a way of overriding parameters, so we don't need to hard copy and paste a whole iris model file to just change two lines of it or we don't need to change them in the original file and in this way we just change theme when we include the iris model in our custom world file. Forgive me for long stories! Thanks! |
Hi, |
Hi again I tried to set the same Also Note that I didn't write the world file from scratch and I have just created a copy of zephyr demo world with SDF version changed to 1.7, then opened it in the gazebo and finally added the iris model through gazebo gui and saved it. I don't know if this is important but I thought it may be important! Sincerely! |
Hi Dear @SwiftGust I think the problem caused by different coordinate frame conventions used for each drone. I just copied below lines in zephyr model and pasted it in the corresponding part of iris drone model and now both of drones go to the same spot in the gazebo world for the same target GPS location.
I don't know if this was the correct solution or not, because the iris model some times does weird things like turning around itself(but becomes stable after a moment) but the overall behaviors are OK. I think, now I should close this issue, but at the end could you guide me or give me some references to understand these coordinate frame conventions which are converting to each other. Thanks for your helps ... |
Hello Dear @SwiftGust
I want to simulate an iris and a zephyr in the same world and control them with ardupilot flight-stack. So I copied the iris model into zephyr demo world. After that in two separated clone of ardupilot I ran bellow commands:
then I ran the gazebo with the changed world file, but the the iris quadrotor can't connect to it's SITL instance. In iris console, the message "link 1 down" is printed and in the terminal where gazebo is running, bellow line is printed:
so could you please help me to find out where I is my fault and how I can connect each UAV to its SITL simulation?
The text was updated successfully, but these errors were encountered: