ROS gdb 디버깅하기 (How to debugging ros cpp node)


ROS gdb 디버깅하기 (How to debugging ros cpp node)

- ROS 단독 node 실행 시 디버깅 - ROS launch 실행 시 디버깅1. ros launch 에 launch-prefix 옵션 설정Description : roscpp 노드를 디버깅 할 때 gdb 또는 valgrind 와 같은 디버깅 프로그램 사용. launch 파일에 다음과 같은 속성을 삽입한다. 여러가지 옵션이 있음launch-prefix="xterm -e gdb --args" : run your node in a gdb in a separate xterm window, manually type run to start itlaunch-prefix="gdb -ex run --args" : run your node in gdb in the same xterm as your launch without having to type run to start it(내가 가장 많이 쓰는 방식, launch 파일의 node 속성 태그에 붙여..........



원문링크 : ROS gdb 디버깅하기 (How to debugging ros cpp node)