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

nodelet demux assertion `px != 0' in onInit #78

Open
lucasw opened this issue Jul 29, 2018 · 0 comments
Open

nodelet demux assertion `px != 0' in onInit #78

lucasw opened this issue Jul 29, 2018 · 0 comments

Comments

@lucasw
Copy link
Contributor

lucasw commented Jul 29, 2018

I'm using kinetic with Ubuntu 16.04 and compiling the nodelet demux header with -std=c++11 in https://github.com/lucasw/nodelet_demo (lucasw/nodelet_demo#1)

(The pcl demux also errors out on load, but maybe for different reasons?)

The crash happens at:

*pubs_output_[d] = private_nh_.template advertise<T> ((std::string)(output_topics_[d]), 1);

and the fix is:

pubs_output_[d] = boost::make_shared<ros::Publisher>(private_nh_.template advertise<T> ((std::string)(output_topics_[d]), 1));

I can provide a PR.

lucasw added a commit to lucasw/nodelet_core that referenced this issue Jul 29, 2018
lucasw added a commit to lucasw/nodelet_core that referenced this issue Jul 31, 2018
mjcarroll pushed a commit that referenced this issue Feb 5, 2019
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

1 participant