catkin_make vs catkin_make -DCMAKE_BUILD_TYPE = Release
I have write a ros package to publish 3D lidar messages, and use the node mode. And I use catkin_make to compile this project, then I run this node,it works well. But when I use catkin_make -DCMAKE_BUILD_TYPE = Release to compile this project, it can be compiled successfully, and when I run this node to publish the messages. when some node subscribe this message,this node is died. But when there are no node to subscribe this node, it works well.
By the way,my ros version is kinetic . But when I use ros indigo, such two compile mode can works well.
I have analyse the log message, but there are no solution.