Skip to content

Commit

Permalink
Update scripts location
Browse files Browse the repository at this point in the history
  • Loading branch information
RishikesavanRamesh committed Aug 21, 2024
1 parent b188af4 commit eb3129f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 37 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"label": "build",
"detail": "Build workspace (default)",
"type": "shell",
"command": "./build.sh",
"command": "./.scripts/build.sh",
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -19,10 +22,11 @@
"label": "debug",
"detail": "Build workspace (debug)",
"type": "shell",
"command": "./build.sh",
"command": "./.scripts/build.sh",
"options": {
"env": {
"BUILD_TYPE": "Debug"
"BUILD_TYPE": "Debug",
"cwd": "${workspaceFolder}"
}
},
"group": "build",
Expand All @@ -33,7 +37,10 @@
"label": "test",
"detail": "Run all unit tests and show results.",
"type": "shell",
"command": "./test.sh",
"command": "./.scripts/test.sh",
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "test",
"isDefault": true
Expand All @@ -45,56 +52,80 @@
"detail": "Run the clean target",
"type": "shell",
"command": "colcon build --cmake-target clean",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": "$gcc"
},
{
"label": "purge",
"detail": "Purge workspace by deleting all generated files.",
"type": "shell",
"command": "sudo rm -fr build install log; sudo py3clean .",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
// Workspace editing tasks
// Workspace editing tasks /// change these to rtw
{
"label": "new ament_cmake package",
"detail": "Create a new ROS cpp package from a template.",
"type": "shell",
"command": "source /opt/ros/humble/setup.bash ; ros2 pkg create --destination-directory src --build-type ament_cmake ${input:package}",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "new ament_python package",
"detail": "Create a new ROS python package from a template.",
"type": "shell",
"command": "source /opt/ros/humble/setup.bash ; ros2 pkg create --destination-directory src --build-type ament_python ${input:package}",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "import from workspace file",
"detail": "Use vcs to import modules specified by a workspace/rosinstall file.",
"type": "shell",
"command": "vcs import < src/ros2.repos src",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "update workspace file",
"detail": "Use vcs to update repositories in src to workspace file.",
"type": "shell",
"command": "vcs export src > src/ros2.repos",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "install dependencies",
"detail": "Install all dependencies specified in the workspaces package.xml files.",
"type": "shell",
"command": "sudo apt-get update && rosdep update && rosdep install --from-paths src --ignore-src -y",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "setup",
"detail": "Set up the workspace",
"type": "shell",
"command": "./setup.sh",
"command": "./.scripts/setup.sh",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
],
Expand Down

0 comments on commit eb3129f

Please sign in to comment.