Skip to content

Commit

Permalink
Add more tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-mueller committed Sep 16, 2024
1 parent 2eab5e2 commit ce10a39
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
10 changes: 0 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,6 @@
"xmllint"
],
"cSpell.allowCompoundWords": true,
"cSpell.ignorePaths": [
"**/package-lock.json",
"**/node_modules/**",
"**/vscode-extension/**",
"**/.git/objects/**",
".vscode",
".vscode-insiders",
"launch/",
"src/**/*.cpp"
],
"ros.distro": "humble",
"terminal.integrated.profiles.linux": {
"px4-ros2-env": {
Expand Down
39 changes: 24 additions & 15 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,29 +65,23 @@
"detail": "Build a single package",
"type": "shell",
"command": "COLCON_DEFAULTS_FILE=${workspaceFolder}/colcon_defaults.yaml colcon build --packages-select ${input:package}",
"group": {
"kind": "build"
},
"group": "build",
"problemMatcher": "$gcc"
},
{
"label": "Build packages up to",
"detail": "Build a package and its dependencies",
"type": "shell",
"command": "COLCON_DEFAULTS_FILE=${workspaceFolder}/colcon_defaults.yaml colcon build --packages-up-to ${input:package}",
"group": {
"kind": "build"
},
"group": "build",
"problemMatcher": "$gcc"
},
{
"label": "Build all",
"detail": "Build workspace",
"type": "shell",
"command": "COLCON_DEFAULTS_FILE=${workspaceFolder}/colcon_defaults.yaml colcon build",
"group": {
"kind": "build"
},
"group": "build",
"problemMatcher": "$gcc"
},
// Test tasks
Expand All @@ -96,18 +90,33 @@
"detail": "Show the test results of the last colcon test run",
"type": "shell",
"command": "colcon test-result --all --verbose",
"group": {
"kind": "test"
},
"group": "test",
"problemMatcher": "$gcc"
},
// Clean
{
"label": "Clean",
"detail": "Run the CMake clean target",
"label": "Clean package",
"detail": "Run the CMake clean target for a specific package",
"type": "shell",
"command": "COLCON_DEFAULTS_FILE=${workspaceFolder}/colcon_defaults.yaml colcon build --cmake-target clean --packages-select ${input:package} ",
"problemMatcher": "$gcc",
"group": "build"
},
{
"label": "Clean packages up to",
"detail": "Run the CMake clean target for all packages up to a specific package",
"type": "shell",
"command": "COLCON_DEFAULTS_FILE=${workspaceFolder}/colcon_defaults.yaml colcon build --cmake-target clean --packages-up-to ${input:package} ",
"problemMatcher": "$gcc",
"group": "build"
},
{
"label": "Clean all",
"detail": "Run the CMake clean target for all packages",
"type": "shell",
"command": "COLCON_DEFAULTS_FILE=${workspaceFolder}/colcon_defaults.yaml colcon build --cmake-target clean",
"problemMatcher": "$gcc"
"problemMatcher": "$gcc",
"group": "build"
},
{
"label": "Purge",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
This repo offers a **VS Code workspace template for developing software extensions** for the [PX4 Autopilot](https://px4.io/) using [ROS 2](https://docs.ros.org/en/humble/) (preferably Humble Hawksbill). There are many automated tasks that you can make use of:
- **Setup environment**: Setup the development environment by installing all required programs
- **Update ROS2 dependencies**: Update/install packages specified in `src/ros2.repos` and run rosdep
- **Build all/package/packages up to**: Build packages using `colcon`
- **Clean**: Clean the workspace
- **Build (...)**: Build packages using `colcon`
- **Clean (...)**: Clean the workspace
- **Purge**: Remove `build`, `install` and `log`
- **New ament_cmake/ament_python package**: Create a new ROS2 package
- **Export worlds**: Export custom worlds to become available for simulation
Expand Down

0 comments on commit ce10a39

Please sign in to comment.