We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I setting a global variable bool shutdown = false; in main.cpp, and I setup a publisher to send something at /topic_xxx.
bool shutdown = false;
Version: ros-melodic
Env: Ubuntu18.04
Reproduction steps:
code is here:
#include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> bool shutdown = false; int main(int argc, char **argv) { ros::init(argc, argv, "test"); ros::NodeHandle nh; ros::Publisher pub_raw_map = nh.advertise<sensor_msgs::PointCloud2>("pointcloud_map", 1, true); ros::Publisher pub_probabilistic_map = nh.advertise<sensor_msgs::PointCloud2>("probabilistic_map", 1, true); sensor_msgs::PointCloud2 msg; pub_probabilistic_map.publish(msg); ros::spin(); std::cout << "Quit..." << std::endl; return 0; }
gdb log is:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I setting a global variable
bool shutdown = false;
in main.cpp, and I setup a publisher to send something at /topic_xxx.Version: ros-melodic
Env: Ubuntu18.04
Reproduction steps:
code is here:
gdb log is:
The text was updated successfully, but these errors were encountered: