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

Mavlink plugin not working with Gazebo 11.0 #419

Closed
leftytechie opened this issue Feb 26, 2020 · 7 comments
Closed

Mavlink plugin not working with Gazebo 11.0 #419

leftytechie opened this issue Feb 26, 2020 · 7 comments

Comments

@leftytechie
Copy link
Contributor

leftytechie commented Feb 26, 2020

I could be doing something wrong, but I've able to run pretty much any simulation I want as long I don't use the mavlink plugin.

I am using Ubuntu 18.04, cmake 3.10.2, gazebo 11.0, boost 1.65.1.

[Err] [Model.cc:1112] 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/amed/Programs/PX4/test/Firmware/Tools/sitl_run.sh: line 97: 29847 Aborted                 (core dumped) gzserver --verbose "${src_path}/Tools/sitl_gazebo/worlds/${model}.world"

I am using the master branch, it is up to date, and I have confirmed that it is working with gazebo 9.12.

I have also tried a past version of the code, v1.10.0-rc1, and the error occurred there too.

@TSC21
Copy link
Member

TSC21 commented Feb 26, 2020

@leftytechie there is nowhere written in our documentation that we support Gazebo 11.0. Specially since that would involve some substancial dependency checking and source code changes related to Ignition dependencies.

@leftytechie
Copy link
Contributor Author

I apologize, this thread confused me:
#381

@leftytechie
Copy link
Contributor Author

leftytechie commented Feb 26, 2020

For what it's worth, everything else appeared to be working.

@petergerten
Copy link

I got the same error with the Gazebo 11 docker container (https://github.com/PX4/containers/blob/master/docker/Dockerfile_simulation-focal)

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/user/Firmware/Tools/sitl_run.sh: line 130:  6031 Aborted                 (core dumped) gzserver "${src_path}/Tools/sitl_gazebo/worlds/empty.world"

@iftahnaf
Copy link

iftahnaf commented Dec 18, 2020

I'm running Ubuntu 20.04 with v1.10 and gazebo11 and facing the same error.
Any solution to this problem?

@Jaeyoung-Lim
Copy link
Member

Jaeyoung-Lim commented Dec 20, 2020

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.

This happens when gazebo is unable to find one of the resources. @iftahnaf Does this happen with the default models?

If so, please post a new issue. I don't think your issue is related to this thread

@czp0204
Copy link

czp0204 commented May 13, 2023

Hello. Did you solve this problem ?

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

6 participants