{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "build recharge",
      "type": "shell",
      "command": "bash",
      "args": [
        "-c",
        "source /opt/ros/${ROS_DISTRO:-foxy}/setup.bash && colcon build --packages-select recharge --cmake-args '-DCMAKE_BUILD_TYPE=Debug' '-DCMAKE_EXPORT_COMPILE_COMMANDS=1' --event-handlers console_direct+"
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": [
        {
          "base": "$gcc",
          "fileLocation": ["relative", "${workspaceFolder}/src/recharge"]
        }
      ],
      "presentation": {
        "reveal": "always",
        "panel": "dedicated",
        "showReuseMessage": false,
        "clear": true
      },
      "options": {
        "cwd": "${workspaceFolder}"
      }
    },
    {
      "label": "clean build recharge",
      "type": "shell",
      "command": "bash",
      "args": [
        "-c",
        "source /opt/ros/${ROS_DISTRO:-foxy}/setup.bash && rm -rf build/recharge install/recharge && colcon build --packages-select recharge --cmake-args '-DCMAKE_BUILD_TYPE=Debug' '-DCMAKE_EXPORT_COMPILE_COMMANDS=1'"
      ],
      "group": "build",
      "problemMatcher": ["$gcc"],
      "options": {
        "cwd": "${workspaceFolder}"
      }
    },
    {
      "label": "check dependencies",
      "type": "shell",
      "command": "bash",
      "args": [
        "-c",
        "echo 'Checking dependencies...' && source /opt/ros/${ROS_DISTRO:-foxy}/setup.bash && rosdep install --from-paths src --ignore-src -r -y"
      ],
      "group": "build",
      "options": {
        "cwd": "${workspaceFolder}"
      }
    }
  ]
}