Segmentation fault most probably in the constructor call statement
I have written a simple c++ ros executable that will subscribe to the move_base/global_costmap/costmap and publish the global path on a topic /global_plan so that I can visualize the path in Rviz
However I get this error on doing a rosrun
[ INFO] [1636965245.858109469]: inside main Segmentation fault
MY cpp code file is here https://gist.github.com/Akashleena/cd...
I doubt I am getting a segmentation fault because of this line 404
RRTstar_planner::RRTstarPlannerROS rrtstar = RRTstar_planner::RRTstarPlannerROS("RRTstarPlannerROS");
I tried inserting some print statements after this line but it never gets displayed and throws a segmentation fault after printing "inside main"
Rather than trying to debug with print statements, use a debugger instead. Agree the error is not in line 404, but it faults when trying to assign a value, the error is downstream: http://wiki.ros.org/roslaunch/Tutoria...
Source from prior answer: https://answers.ros.org/question/3873...