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

Error when building PX-Ardupilot in Ubuntu 20.04 #858

Closed
argenos opened this issue Mar 24, 2022 · 4 comments
Closed

Error when building PX-Ardupilot in Ubuntu 20.04 #858

argenos opened this issue Mar 24, 2022 · 4 comments
Labels

Comments

@argenos
Copy link

argenos commented Mar 24, 2022

I'm seeing some errors similar to those reported in #699 at installation time. I am following the instructions from this wiki.

The relevant error that shows up at the make px4_sitl_default gazebo step:

[Err] [Model.cc:1157] Exception occured in the Load function of plugin with name[mavlink_interface] and filename[libgazebo_mavlink_interface.so]. This plugin will not run.
gzserver: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = gazebo::event::Connection; typename boost::detail::sp_member_access<T>::type = gazebo::event::Connection*]: Assertion `px != 0' failed.
/home/argen/projects/safemuv/software/code/lux_ws/src/Firmware/Tools/sitl_run.sh: line 93: 1017049 Aborted                 (core dumped) gzserver --verbose "${src_path}/Tools/sitl_gazebo/worlds/${model}.world"
SITL COMMAND: "/home/argen/projects/safemuv/software/code/lux_ws/src/Firmware/build/px4_sitl_default/bin/px4" "/home/argen/projects/safemuv/software/code/lux_ws/src/Firmware"/ROMFS/px4fmu_common -s etc/init.d-posix/rcS -t "/home/argen/projects/safemuv/software/code/lux_ws/src/Firmware"/test_data
INFO  [px4] Creating symlink /home/argen/projects/safemuv/software/code/lux_ws/src/Firmware/ROMFS/px4fmu_common -> /home/argen/projects/safemuv/software/code/lux_ws/src/Firmware/build/px4_sitl_default/tmp/rootfs/etc
0 WARNING: setRealtimeSched failed (not run as root?)

On the configuration step of grvc-ual, I've only chosen the mavros backend. This combination used to work in Ubuntu 18.04, but might be playing a role in noetic.

Any pointers as to what I may be missing? I'm not sure how @McKayCyborg solved their issue in #699

@Jaeyoung-Lim
Copy link
Member

@argenos PX4 is continuously tested in CI and Ubuntu 20.04 is the best supported system. All the SITL testing is run through gazebo11 / Ubuntu 20.04

Therefore, I would say your errors are related to the project grvc-ual using, which I have no knowledge of

@argenos
Copy link
Author

argenos commented Mar 24, 2022

I'm seeing the same error as in #419 it seems. And I just noticed this could be a duplicate of #850, but I can see the iris.world file locally.

image

@Jaeyoung-Lim
Copy link
Member

@argenos It means you are using an outdated version of PX4. Iris.world doesnt exist anymore: https://github.com/PX4/PX4-SITL_gazebo/tree/master/worlds

@hamishwillee
Copy link

@Jaeyoung-Lim Hmmm, no one did cleanup. What is the current default world? http://docs.px4.io/main/en/sim_gazebo_classic/#improving-distance-sensor-performance

Are the other iris worlds around, like the hitl_iris.world mentioned in text, and the copter itself, which is mentioned in multiple places? http://docs.px4.io/main/en/sim_gazebo_classic/multi_vehicle_simulation_gazebo.html#video-multiple-multicopter-iris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants