Skip to content

Commit

Permalink
Add build packages above
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-mueller committed Oct 8, 2024
1 parent 79db8fc commit 2e66bfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@
"group": "build",
"problemMatcher": "$gcc"
},
{
"label": "Build packages above",
"detail": "Build the specified package as well as packages which recursively depend on them",
"type": "shell",
"command": "COLCON_DEFAULTS_FILE=${workspaceFolder}/colcon_defaults.yaml colcon build --packages-above ${input:package}",
"group": "build",
"problemMatcher": "$gcc"
},
{
"label": "Build all",
"detail": "Build workspace",
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# PX4/ROS2 Development Setup

This repo offers a **VS Code workspace template for developers** working with [PX4](https://px4.io/) and [ROS 2](https://docs.ros.org/en/humble/). 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 using `vcstool` (see [src/ros2.repos](src/ros2.repos)) and `rosdep`
- **Build (...)**: Build packages using `colcon`
Expand All @@ -24,6 +25,7 @@ Required OS is [Ubuntu 22.04 (Jammy Jellyfish)](https://www.releases.ubuntu.com/
To automatically install all programs for developing with PX4 and ROS2, run `setup.sh`. The default install location is `~/Desktop`. If either the PX4 workspace, QGroundControl or Groot2 have already been cloned/downloaded to a different location than the default one, the respective variables in [env.sh](env.sh) need to be updated for the terminal environment and the automation tasks in VS Code to work properly. The setup script will only install the components that have not been found.

## Integrate with AutoAPMS

This workspace template is strongly connected with the [AutoAPMS ROS 2 package](https://github.com/robin-mueller/auto-apms) and offers the recommended development setup. Please visit the [Development Guide](https://robin-mueller.github.io/auto-apms-guide/development/) for learning more.

## Build
Expand Down

0 comments on commit 2e66bfc

Please sign in to comment.