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

"ekf2 stop" get stuck in SITL #14805

Closed
airopti opened this issue May 1, 2020 · 4 comments
Closed

"ekf2 stop" get stuck in SITL #14805

airopti opened this issue May 1, 2020 · 4 comments

Comments

@airopti
Copy link

airopti commented May 1, 2020

Describe the bug
I am running SITL, when trying to stop the EKF by ekf2 stop, the Gazebo simulation get stuck and there is no any feedback information.

System

  • Ubuntu 16.04
  • ROS Kinetic
  • Gazebo 9

To Reproduce
Steps to reproduce the behavior:

  1. roslaunch px4 mavros_posix_sitl.launch
  2. After started the Gazebo simulation, run ekf2 status, can get some feedback
  3. But, when run ekf2 stop, the simulation get stuck and there is no any feedback information.

图片

  • log file
  • I have tried Gazebo 7 , 8 and 9, but they all get stuck when running ekf2 stop
@dagar
Copy link
Member

dagar commented May 1, 2020

@airopti this is because by default PX4 SITL is running lockstep with the simulator, which means simulated sensor data making a round trip through the system and back out as actuator controls.
One of the mechanisms for ensuring nothing is missed is the simulator interface waiting for the estimator to run on each new IMU sample.

@airopti
Copy link
Author

airopti commented May 2, 2020

But the waiting time seems to be infinite, it just get stuck there, is it normal?

@julianoes
Copy link
Contributor

@airopti yes that's expected.

Alternatively, you can try without lockstep (see https://dev.px4.io/master/en/simulation/#disable-lockstep-simulation).

@airopti
Copy link
Author

airopti commented May 4, 2020

Thank you so much, this solved my problem.

@airopti airopti closed this as completed May 4, 2020
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