Gazebo | Ignition | Community
Ask Your Question

Plugin error when accessing a smart pointer. [closed]

asked 2013-03-24 19:10:48 -0500

lugd1229 gravatar image

updated 2013-04-08 15:34:27 -0500

nkoenig gravatar image

when I use

this->lContactUpdateConnection=event::Events::ConnectWorldUpdateStart( boost::bind(&AnimatePose1::OnLContactUpdate, this));

and when load the gazebo , the error will appear:

gazebo: /usr/include/boost/smartptr/sharedptr.hpp:418: T* boost::shared_ptr<t>::operator->() const [with T = gazebo::physics::World]: Assertion `px != 0' failed.

why happen this question, how to solve it?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by nkoenig
close date 2013-09-19 10:14:23.004755

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-25 02:19:33 -0500

AndreiHaidu gravatar image

Could we see more of the plugin? Or run it with gdb and get a bit more info about where the error occurs. You usually get this error when trying to access an object that is NULL.

edit flag offensive delete link more

Question Tools


Asked: 2013-03-24 19:10:48 -0500

Seen: 110 times

Last updated: Apr 08 '13