From b61708235161f2f756a6b4df064b2c760c3f04e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20M=C3=BCller?= Date: Thu, 25 Jul 2024 11:27:52 +0200 Subject: [PATCH] Add install task --- .vscode/tasks.json | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d3fb98f..eb506eb 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -107,22 +107,15 @@ }, // Workspace editing tasks { - "label": "New ament_cmake package", - "detail": "Create a new ROS cpp package from a template.", - "type": "shell", - "command": "ros2 pkg create --destination-directory src --build-type ament_cmake ${input:package}", - "problemMatcher": [] - }, - { - "label": "New ament_python package", - "detail": "Create a new ROS python package from a template.", + "label": "Install", + "detail": "Install the workspace according to the configuration", "type": "shell", - "command": "ros2 pkg create --destination-directory src --build-type ament_python ${input:package}", + "command": "./install.sh", "problemMatcher": [] }, { - "label": "Install ROS2 dependencies", - "detail": "Install the ROS2 workspace dependencies", + "label": "Update ROS2 dependencies", + "detail": "Update/install the ROS2 workspace dependencies", "type": "shell", "command": "./dep.sh", "problemMatcher": [] @@ -134,6 +127,20 @@ "command": "${workspaceFolder}/world/export.sh", "problemMatcher": [] } + { + "label": "New ament_cmake package", + "detail": "Create a new ROS cpp package from a template.", + "type": "shell", + "command": "ros2 pkg create --destination-directory src --build-type ament_cmake ${input:package}", + "problemMatcher": [] + }, + { + "label": "New ament_python package", + "detail": "Create a new ROS python package from a template.", + "type": "shell", + "command": "ros2 pkg create --destination-directory src --build-type ament_python ${input:package}", + "problemMatcher": [] + } ], "inputs": [ {