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

Huge amount of drifting on IRIS in SITL simulation #14068

Closed
shrit opened this issue Jan 30, 2020 · 10 comments
Closed

Huge amount of drifting on IRIS in SITL simulation #14068

shrit opened this issue Jan 30, 2020 · 10 comments
Labels
bug Sim: SITL software in the loop simulation

Comments

@shrit
Copy link

shrit commented Jan 30, 2020

Hello,

I am using IRIS for SITL simulation, I am using 4 quadrotors at the same time, all of them use the same PX4 version. Only one of them is facing a huge amount of drifting during the flight.
Here is the last flight with this quadrotor
https://logs.px4.io/plot_app?log=460f767c-25fe-4702-b910-66f3645203af
You can notice a spiral landing which I have been observing only with this one.

Any thought?
Best regards,

@julianoes
Copy link
Contributor

What could be different with number 4 than the others?

@julianoes julianoes added bug Sim: SITL software in the loop simulation labels Feb 12, 2020
@shrit
Copy link
Author

shrit commented Feb 12, 2020

@julianoes I have no idea, this is the reason I posted this issue.
They all use the same version of PX4. The only difference is the model name and the port number in the SDF file.
Here is the log for another quadrotor that was behaving perfectly:
https://logs.px4.io/plot_app?log=00c4e2f7-a818-4b90-9a0f-9a934adf9625

Let me know what do you think

@julianoes
Copy link
Contributor

@Jaeyoung-Lim maybe you have an idea.

@Jaeyoung-Lim
Copy link
Member

@shrit How are you starting the multivehicle SITL simulation?

@shrit
Copy link
Author

shrit commented Feb 14, 2020

@Jaeyoung-Lim I have extended the script in https://github.com/PX4/Firmware/blob/master/Tools/sitl_multiple_run.sh to start gazebo with the quadrotors.
Then I have written software to control multi-vehicles. Basically I take off the swarm at the same time, using several threads and I wait for those the processes to finish. After takeoff, switch everyone to offboard mode, I play around with the swarm. When the objective is reached, I land all of them and reset all of them using the reset plugin described in PX4/PX4-SITL_gazebo-classic#380
Note that, So far, I have noticed this problem in v1.9.2 of the firmware. I have switched recently to the last stable (1.10.1), everything seems to be fine (until now)

@Jaeyoung-Lim
Copy link
Member

@shrit Could you maybe give it a go with this script? https://github.com/PX4/Firmware/blob/master/Tools/gazebo_sitl_multiple_run.sh

The usage is documented here: http://dev.px4.io/master/en/simulation/multi-vehicle-simulation.html

I think we discussed this before, but resetting the model position while the EKF is running might make the EKF2 not recover from the sudden change of position

@shrit
Copy link
Author

shrit commented Feb 14, 2020

@Jaeyoung-Lim Ok, I will give this script a try. I suppose it will generate automatically the necessary sdf file on any vehicle model.
Considering resetting the quadrotors I totally agree, but I have no other solution since it is not possible to reboot the firmware without stopping the entire simulation.
I found it strange that EFK2 does not behave similarly with all the quadrotors since there is only one quadrotor that is drifting.
I have looked rapidly into documentation, the video for IRIS quadrotors seems to suffer from high real-time factor decreasing, Did you initially changed the real-time factor? or it has decreased during the simulation? since I run the simulation for days I am afraid I might be getting the even worse result.
In fact, I am facing this decreased real-time factor, but it takes several hours to decrease since I am using only 4 quadrotors.

@stale
Copy link

stale bot commented May 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label May 15, 2020
@julianoes
Copy link
Contributor

@shrit is this still an issue?

@stale stale bot removed the stale label May 15, 2020
@shrit
Copy link
Author

shrit commented May 15, 2020

@julianoes I have only noticed this issue in px4 v1.9.2.
Never occurred (So far) in 1.10.1.
Maybe we can close it for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Sim: SITL software in the loop simulation
Projects
None yet
Development

No branches or pull requests

3 participants