ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
747
stars
914
forks
source link
Segmentation fault when advertising a topic #2300
Closed
Risbo6 closed 1 year ago
I'm facing a rather strange issue, in some parts of my code, advertising a topic led to a segfault.
In:
This:
ros::Publisher chatter_pub = n.advertise<std_msgs::String>("chatter", 1000);
Step over to:
Where
return advertise(ops);
creates a segmentation fault. Any idea what can cause this?