8000 Support 'launch only', and 'debug only' attributes for launching a ROS composition by ooeygui · Pull Request #605 · ms-iot/vscode-ros · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support 'launch only', and 'debug only' attributes for launching a ROS composition #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 23, 2021

Conversation

ooeygui
Copy link
Member
@ooeygui ooeygui commented Nov 13, 2021

This change introduces a new feature to filter what the debugger attaches to, or just launches.
For example, Debugging ROS2, but not attaching to a rviz or gazebo would look something like the attached launch.json file.

    "configurations": [
        {
            "name": "ROS: Launch my file",
            "request": "launch",
            "target": "C:\\ws\\nav2_ws\\src\\turtlebot3\\turtlebot3_simulations\\turtlebot3_gazebo\\launch\\turtlebot3_world.launch.py",
            "arguments": [
                "use_sim_time:=False",
                "autostart:=False",
                "map:=c:\\ws\\nav2_ws\\map.yaml",
            ],
            "sourceFileMap": {
                "c:\\a\\1\\s\\ws\\src": "c:\\ws\\navigation2_ws\\src"
            },
            "env": {
                "TURTLEBOT3_MODEL":"waffle",
                "GAZEBO_MODEL_PATH": "C:\\ws\\nav2_ws\\install\\turtlebot3_gazebo\\share\\turtlebot3_gazebo\\models;C:\\opt\\ros\\foxy\\x64\\share\\gazebo-10\\models;"
            },
            "launch": ["rviz", "gz", "gzserver", "gzclient"],
            "symbolSearchPath": "s:\\Downloads\\Symbols (4)\\RelWithDebInfo",
            "type": "ros"
        }
    ]
}

Similarly if you only wanted to debug a single node in a composition:

            "attachDebugger": ["map_server"],

Note: VSCode does not track launched ROS nodes, so they have to be manually stopped.

@ooeygui ooeygui marked this pull request as ready for review November 13, 2021 18:05
@ooeygui ooeygui requested a review from a team as a code owner November 13, 2021 18:05
@ooeygui ooeygui merged commit 607024f into ms-iot:master Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0