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

node: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type = gazebo::transport::Publication*]: Assertionpx != 0' failed #208

Open
newcanopies opened this issue Apr 23, 2021 · 4 comments

Comments

@newcanopies
Copy link

newcanopies commented Apr 23, 2021

Hi everyone,

I am trying to synchronize two ROS2 packages, each running a websocket server on the same PORT in order to tunnel Messages.

Is that the conflict throwing this boost:: error?
node: /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::transport::Publication; typename boost::detail::sp_member_access<T>::type = gazebo::transport::Publication*]: Assertionpx != 0' failed.`

What does this indicate?
Publication; typename boost::detail::sp_member_access::type = gazebo::transport::Publication]: Assertion px != 0' failed.*

Is there a websocket server configuration that can allow two different ROS nodes to listen on the same PORT?

Thank you

@newcanopies
Copy link
Author

is it a threading issue?

@newcanopies
Copy link
Author

is it related to https://answers.gazebosim.org/question/7173/gazebo-crashes-assertion-px-0-failed/?answer=25951#post-id-25951

errors usually come from trying to access joints or links through pointer that do not exist.

@newcanopies newcanopies changed the title node: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type node: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type = boost::detail::sp_member_access<T>::type = gazebo::transport::Publication*]: Assertionpx != 0' failed Apr 24, 2021
@newcanopies newcanopies changed the title node: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type = boost::detail::sp_member_access<T>::type = gazebo::transport::Publication*]: Assertionpx != 0' failed node: /usr/include/boost/smart_ptr/shared_ptr.hpp:734: typename boost::detail::sp_member_access<T>::type = gazebo::transport::Publication*]: Assertionpx != 0' failed Apr 24, 2021
@newcanopies
Copy link
Author

this is the boost line throwing the Assertion px error
smart_ptr/include/boost/smart_ptr/shared_ptr.hpp

    typename boost::detail::sp_array_access< T >::type operator[] ( std::ptrdiff_t i ) const BOOST_SP_NOEXCEPT_WITH_ASSERT
    {
        BOOST_ASSERT( px != 0 );
        BOOST_ASSERT( i >= 0 && ( i < boost::detail::sp_extent< T >::value || boost::detail::sp_extent< T >::value == 0 ) );

@Jinsun-Lee
Copy link

source /usr/share/gazebo/setup.bash
source /usr/share/gazebo-11/setup.bash

This worked for me.

https://robotics.stackexchange.com/questions/104352/how-to-analyse-this-gazebo-with-turtlebot3-on-ros2-rolling

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

2 participants