Closed mihirk284 closed 3 years ago
Thank you for pointing this out! We are currently investigating on the cause of this error.
Thank you for pointing this out! We are currently investigating on the cause of this error.
I also met this problem. I will try to debug the pci_mav_ros_node and find the code crashes. Hope this can help.
Thank you for pointing this out! We are currently investigating on the cause of this error.
@MihirDharmadhikari Hi, I try to debug the pci_mav_ros_node in CLion. But it is too hard to debug the node in Clion with some parameters need to be setted in launch file. Do you any advice? How do you debug code in ROS? Thank you.
Hi @wwtinwhu , Thank you for your interest in debugging the package. I have used the gdb to debug the ROS node but it only provides the stack trace and will give you the function which caused the crash. I am currently looking into the VSCode ROS plugin debugger that allows tracking of variables as well.
This issue was resolved through the Pull Request ntnu-arl/pci_mav#1. The problem was that the executePath function was not returning anything upon successful execution but the return type was bool. This has now been fixed and stricter cmake flags have been added to the CMakeLists.txt to catch such issues during build time.
Using gcc-8 and g++-8 causes the pci_mav package to crash after executing 1 planning iteration.
Using gcc-7 and g++-7 does not cause this error to show up.