-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Posix Sitl vehicles don't work correctly #18299
Comments
Unfortunately, I cannot replicate your problem (see the log below) Could you share exactly which setup (ROS version, system setup) and the log where the problem occurs?
|
@Jaeyoung-Lim sorry for the delay, here's my log
|
@eldewany It doesn't seem like you are using the default launch file: |
@Jaeyoung-Lim it's just a launch file that has the source lines
|
@eldewany Since I do not have the launchfile you are using, and given that the default launch file works in my environment I am not sure how to help you. The only conclusion I can draw is that there is something wrong the way you are running your custom launch file. Can you try with the default launchfile and still see if there is a problem? Also please clarify what environment you are using |
@Jaeyoung-Lim I'm indeed using the default launch file, the file
I'm running an Ubuntu 18.04 , ROS Melodic and a fresh PX4 repo that i cloned just now. I would also like to note that the issue doesn't appear unless you command the vehicle to takeoff or if you open QGC, it always shows Gyro not calibrated |
@eldewany Okay, but could you confirm what the results are with the default launch file? I also don't understand how you can run a launchfile with the commands that you specified included. a launch file is a xml format file(http://wiki.ros.org/roslaunch/XML) while the Again, the launchfile works fine on my system as well as the MAVROS CI tests that check this automatically. Therefore the only difference is your launch file, and with the default launch file the results should be the same since I am also testing with ROS melodic Ubuntu 18.04. If this is not the case we can start looking at the logs from there on. |
@Jaeyoung-Lim It's a typo mistake, i apologize.. i meant |
@eldewany Ah, right now it makes more sense. I am still convinced that the problem is not from this repo and something from the script you have created. However, I don't see anything that could have gone wrong from your log file.
|
Issue was that the cached data from previous version of SITL was being used, the solution was to empty |
@eldewany Glad to hear that you found a way to fix the problem! |
Thanks a lot for your help. it is helpful to clean the |
The same thing happens to me too, it doesn't work to clean the directory ~/.ros . How can I disable this action? I need to do reinforcement learning and with "battery unhealthy" I can't continue with the training. The parameters SIM_BAT_MIN_PCT are set 50.0 and SIM_BAT_DRAIN are set 86400 |
Describe the bug
Hello, whenever i use a launch file that is based on posix_sitl.launch to start a SITL instance an uncalibrated sensors error occur in QGC although the normal make px3_sitl gazebo command launches SITL and everything works fine.
To Reproduce
Steps to reproduce the behavior:
1- Source everything needed (PX4, build path and everything)
2- roslaunch px4 mavros_posix_sitl.launch
Expected behavior
Everything should work fine but it isn't, and I verified it's not a mavros problem
Additional context
I Tried to replicate the same method to spawn the sdf file as in spawn_single_vehicle_sdf.launch but something about the xmlstartlet command didn't work
The text was updated successfully, but these errors were encountered: