使用vscode调试ros

https://blog.csdn.net/u012254599/article/details/106143540/

CMakeLists.txt

set(CMAKE_BUILD_TYPE "RelWithDebInfo")

单独文件调试
launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "ROS: Attach",
            "request": "attach",
            "type": "ros"
        }
    ]
}

launch文件调试
launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "ROS: Launch",
            "type": "ros",
            "request": "launch",
            "target": "/home/penuel/ros_test/src/grid_path_searcher/launch/demo.launch"
        }

    ]
}
posted @ 2022-05-16 22:15  penuel  阅读(130)  评论(0编辑  收藏  举报