2018-12-05 00:11:36 -04:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
2020-09-16 10:07:54 -03:00
|
|
|
{
|
|
|
|
"label": "build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "/bin/bash",
|
|
|
|
"args": [
|
|
|
|
"-c",
|
|
|
|
"${command:cmake.tasksBuildCommand}"
|
|
|
|
],
|
|
|
|
"options": {
|
|
|
|
"cwd": "${command:cmake.buildDirectory}"
|
|
|
|
},
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true,
|
|
|
|
},
|
|
|
|
"problemMatcher": {
|
|
|
|
"base": "$gcc",
|
|
|
|
"fileLocation": ["relative", "${command:cmake.buildDirectory}"]
|
|
|
|
},
|
|
|
|
"presentation":{
|
|
|
|
"echo": false,
|
|
|
|
"showReuseMessage": false,
|
|
|
|
"clear": true,
|
|
|
|
"panel": "shared",
|
|
|
|
"group": "build"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "test",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "make tests",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
},
|
|
|
|
"group": {
|
|
|
|
"kind": "test",
|
|
|
|
"isDefault": true,
|
|
|
|
},
|
|
|
|
"presentation":{
|
|
|
|
"echo": true,
|
|
|
|
"showReuseMessage": false,
|
|
|
|
"clear": false,
|
|
|
|
"panel": "shared",
|
|
|
|
"group": "test"
|
|
|
|
}
|
|
|
|
},
|
2022-08-22 12:00:03 -03:00
|
|
|
{
|
|
|
|
"label": "jmavsim kill",
|
|
|
|
"type": "shell",
|
2022-09-10 17:18:02 -03:00
|
|
|
"command": "kill $(ps aux | grep jmavsim | grep -v 'grep' | awk '{print $2}') || true",
|
2022-08-22 12:00:03 -03:00
|
|
|
"presentation": {
|
2022-09-10 17:18:02 -03:00
|
|
|
"echo": true,
|
2022-08-22 12:00:03 -03:00
|
|
|
"reveal": "never",
|
2022-09-10 17:18:02 -03:00
|
|
|
"revealProblems": "onProblem",
|
2022-08-22 12:00:03 -03:00
|
|
|
"focus": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"panel": "dedicated",
|
2022-08-22 12:00:03 -03:00
|
|
|
"showReuseMessage": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"clear": false,
|
|
|
|
"close": true
|
2022-08-22 12:00:03 -03:00
|
|
|
},
|
|
|
|
"problemMatcher": [],
|
|
|
|
"dependsOn":["px4_sitl_cleanup"]
|
|
|
|
},
|
|
|
|
{
|
2023-01-15 12:36:12 -04:00
|
|
|
"label": "gazebo-classic build",
|
2022-08-22 12:00:03 -03:00
|
|
|
"type": "shell",
|
2023-01-15 12:36:12 -04:00
|
|
|
"command": "make px4_sitl_default sitl_gazebo-classic",
|
2022-08-22 12:00:03 -03:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
},
|
2022-09-10 17:18:02 -03:00
|
|
|
"presentation": {
|
2022-08-22 12:00:03 -03:00
|
|
|
"echo": true,
|
2022-09-10 17:18:02 -03:00
|
|
|
"reveal": "never",
|
|
|
|
"revealProblems": "onProblem",
|
2022-08-22 12:00:03 -03:00
|
|
|
"focus": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"panel": "dedicated",
|
2022-08-22 12:00:03 -03:00
|
|
|
"showReuseMessage": false,
|
|
|
|
"clear": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"close": true
|
|
|
|
},
|
|
|
|
"problemMatcher": [],
|
2022-08-22 12:00:03 -03:00
|
|
|
},
|
|
|
|
{
|
2023-01-15 12:36:12 -04:00
|
|
|
"label": "gazebo-classic start",
|
2022-08-22 12:00:03 -03:00
|
|
|
"type": "shell",
|
2023-01-15 12:36:12 -04:00
|
|
|
"dependsOn": "gazebo-classic build",
|
2022-08-22 12:00:03 -03:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"env": {
|
2023-01-15 12:36:12 -04:00
|
|
|
"GAZEBO_PLUGIN_PATH": "${workspaceFolder}/build/px4_sitl_default/build_gazebo-classic",
|
|
|
|
"GAZEBO_MODEL_PATH": "${workspaceFolder}/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models",
|
2022-08-22 12:00:03 -03:00
|
|
|
"PX4_SIM_SPEED_FACTOR": "1"
|
|
|
|
}
|
|
|
|
},
|
2023-01-15 12:36:12 -04:00
|
|
|
"command": "gzserver --verbose ${workspaceFolder}/Tools/simulation/gazebo-classic/sitl_gazebo-classic/worlds/empty.world",
|
2022-08-22 12:00:03 -03:00
|
|
|
"isBackground": true,
|
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
|
|
|
"reveal": "never",
|
2022-09-10 17:18:02 -03:00
|
|
|
"revealProblems": "onProblem",
|
2022-08-22 12:00:03 -03:00
|
|
|
"focus": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"panel": "dedicated",
|
2022-08-22 12:00:03 -03:00
|
|
|
"showReuseMessage": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"clear": false,
|
|
|
|
"close": true
|
2022-08-22 12:00:03 -03:00
|
|
|
},
|
2019-03-22 21:55:39 -03:00
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"pattern": [
|
|
|
|
{
|
|
|
|
"regexp": ".",
|
|
|
|
"file": 1,
|
|
|
|
"location": 2,
|
|
|
|
"message": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"background": {
|
|
|
|
"activeOnStart": true,
|
|
|
|
"beginsPattern": ".",
|
|
|
|
"endsPattern": ".",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2023-01-15 12:36:12 -04:00
|
|
|
"label": "gazebo-classic",
|
2019-03-22 21:55:39 -03:00
|
|
|
"type": "shell",
|
2023-01-15 12:36:12 -04:00
|
|
|
"dependsOn": "gazebo-classic start",
|
2022-08-22 12:00:03 -03:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"env": {
|
2023-01-15 12:36:12 -04:00
|
|
|
"GAZEBO_PLUGIN_PATH": "${workspaceFolder}/build/px4_sitl_default/build_gazebo-classic",
|
|
|
|
"GAZEBO_MODEL_PATH": "${workspaceFolder}/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models",
|
2022-08-22 12:00:03 -03:00
|
|
|
"PX4_SIM_SPEED_FACTOR": "1"
|
|
|
|
}
|
|
|
|
},
|
2023-01-15 12:36:12 -04:00
|
|
|
"command": "gz model --verbose --spawn-file=${workspaceFolder}/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/iris/iris.sdf --model-name=iris -x 1.01 -y 0.98 -z 0.83",
|
2022-08-22 12:00:03 -03:00
|
|
|
"isBackground": false,
|
2019-12-01 16:47:29 -04:00
|
|
|
"presentation": {
|
2022-08-22 12:00:03 -03:00
|
|
|
"echo": true,
|
2019-12-01 16:47:29 -04:00
|
|
|
"reveal": "never",
|
2022-09-10 17:18:02 -03:00
|
|
|
"revealProblems": "onProblem",
|
2019-12-01 16:47:29 -04:00
|
|
|
"focus": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"panel": "dedicated",
|
2019-12-01 16:47:29 -04:00
|
|
|
"showReuseMessage": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"clear": false,
|
|
|
|
"close": true
|
2019-12-01 16:47:29 -04:00
|
|
|
},
|
2022-08-22 12:00:03 -03:00
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"pattern": [
|
|
|
|
{
|
|
|
|
"regexp": ".",
|
|
|
|
"file": 1,
|
|
|
|
"location": 2,
|
|
|
|
"message": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"background": {
|
|
|
|
"activeOnStart": true,
|
|
|
|
"beginsPattern": ".",
|
|
|
|
"endsPattern": ".",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-03-22 21:55:39 -03:00
|
|
|
},
|
2019-09-19 18:42:51 -03:00
|
|
|
{
|
2022-08-22 12:00:03 -03:00
|
|
|
"label": "ign gazebo",
|
2019-09-19 18:42:51 -03:00
|
|
|
"type": "shell",
|
|
|
|
"options": {
|
2020-09-16 10:07:54 -03:00
|
|
|
"cwd": "${workspaceFolder}",
|
2019-09-19 18:42:51 -03:00
|
|
|
"env": {
|
2022-09-29 14:49:31 -03:00
|
|
|
"IGN_GAZEBO_RESOURCE_PATH": "${workspaceFolder}/Tools/simulation/gz/models",
|
2019-09-19 18:42:51 -03:00
|
|
|
}
|
|
|
|
},
|
2022-09-29 14:49:31 -03:00
|
|
|
"command": "ign gazebo -v 4 -r ${workspaceFolder}/Tools/simulation/gz/worlds/${input:gzWorld}.sdf",
|
2019-03-22 21:55:39 -03:00
|
|
|
"isBackground": true,
|
|
|
|
"presentation": {
|
2019-12-01 16:47:29 -04:00
|
|
|
"echo": true,
|
2022-09-10 17:18:02 -03:00
|
|
|
"reveal": "always",
|
2022-08-22 11:58:19 -03:00
|
|
|
"revealProblems": "onProblem",
|
2022-09-10 17:18:02 -03:00
|
|
|
"focus": true,
|
2022-08-22 11:58:19 -03:00
|
|
|
"panel": "dedicated",
|
2019-12-01 16:47:29 -04:00
|
|
|
"showReuseMessage": false,
|
2022-08-22 11:58:19 -03:00
|
|
|
"clear": false,
|
2022-09-10 17:18:02 -03:00
|
|
|
"close": false
|
2019-12-01 16:47:29 -04:00
|
|
|
},
|
2022-09-10 17:18:02 -03:00
|
|
|
"problemMatcher": [],
|
|
|
|
"dependsOn":["ign gazebo kill"]
|
2019-12-01 16:47:29 -04:00
|
|
|
},
|
|
|
|
{
|
2023-01-15 12:36:12 -04:00
|
|
|
"label": "gazebo-classic kill",
|
2019-12-01 16:47:29 -04:00
|
|
|
"type": "shell",
|
2022-08-22 12:00:03 -03:00
|
|
|
"command": "pkill -9 -f gzserver || true",
|
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
|
|
|
"reveal": "never",
|
|
|
|
"revealProblems": "onProblem",
|
|
|
|
"focus": false,
|
|
|
|
"panel": "dedicated",
|
|
|
|
"showReuseMessage": false,
|
|
|
|
"clear": false,
|
|
|
|
"close": true
|
|
|
|
},
|
|
|
|
"problemMatcher": [],
|
|
|
|
"dependsOn":["px4_sitl_cleanup"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "ign gazebo kill",
|
|
|
|
"type": "shell",
|
2022-09-10 17:18:02 -03:00
|
|
|
"command": "pkill -9 -f 'ign gazebo' || true",
|
2019-12-01 16:47:29 -04:00
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
2022-08-22 11:58:19 -03:00
|
|
|
"reveal": "never",
|
|
|
|
"revealProblems": "onProblem",
|
2019-12-01 16:47:29 -04:00
|
|
|
"focus": false,
|
2022-08-22 11:58:19 -03:00
|
|
|
"panel": "dedicated",
|
2019-12-01 16:47:29 -04:00
|
|
|
"showReuseMessage": false,
|
2022-08-22 11:58:19 -03:00
|
|
|
"clear": false,
|
|
|
|
"close": true
|
2019-12-01 16:47:29 -04:00
|
|
|
},
|
2020-09-16 10:07:54 -03:00
|
|
|
"problemMatcher": [],
|
|
|
|
"dependsOn":["px4_sitl_cleanup"]
|
2020-09-01 13:05:05 -03:00
|
|
|
},
|
2022-08-22 11:58:19 -03:00
|
|
|
|
2020-09-01 13:05:05 -03:00
|
|
|
{
|
2020-09-16 10:07:54 -03:00
|
|
|
"label": "px4_sitl_cleanup",
|
2020-09-01 13:05:05 -03:00
|
|
|
"type": "shell",
|
2022-08-22 11:58:19 -03:00
|
|
|
"command": "rm -rfv /tmp/px4* || true",
|
2020-09-01 13:05:05 -03:00
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
2022-08-22 11:58:19 -03:00
|
|
|
"reveal": "never",
|
|
|
|
"revealProblems": "onProblem",
|
2020-09-01 13:05:05 -03:00
|
|
|
"focus": false,
|
2022-08-22 11:58:19 -03:00
|
|
|
"panel": "dedicated",
|
2020-09-01 13:05:05 -03:00
|
|
|
"showReuseMessage": false,
|
2022-08-22 11:58:19 -03:00
|
|
|
"clear": false,
|
|
|
|
"close": true
|
2020-09-01 13:05:05 -03:00
|
|
|
},
|
2020-09-16 10:07:54 -03:00
|
|
|
"problemMatcher": [],
|
|
|
|
"dependsOn":["px4_kill"]
|
2019-12-01 16:47:29 -04:00
|
|
|
},
|
|
|
|
{
|
2020-09-16 10:07:54 -03:00
|
|
|
"label": "px4_kill",
|
2019-12-01 16:47:29 -04:00
|
|
|
"type": "shell",
|
2022-08-22 11:58:19 -03:00
|
|
|
"command": "pkill -9 px4 || true",
|
2019-12-01 16:47:29 -04:00
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
2022-08-22 11:58:19 -03:00
|
|
|
"reveal": "never",
|
|
|
|
"revealProblems": "onProblem",
|
2019-12-01 16:47:29 -04:00
|
|
|
"focus": false,
|
2022-08-22 11:58:19 -03:00
|
|
|
"panel": "dedicated",
|
2019-12-01 16:47:29 -04:00
|
|
|
"showReuseMessage": false,
|
2022-08-22 11:58:19 -03:00
|
|
|
"clear": false,
|
|
|
|
"close": true
|
2019-12-01 16:47:29 -04:00
|
|
|
},
|
2019-03-22 21:55:39 -03:00
|
|
|
"problemMatcher": []
|
2018-12-05 11:54:28 -04:00
|
|
|
},
|
2019-06-13 21:47:27 -03:00
|
|
|
{
|
|
|
|
"label": "mavlink shell",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "./Tools/mavlink_shell.py",
|
|
|
|
"options": {
|
2020-09-16 10:07:54 -03:00
|
|
|
"cwd": "${workspaceFolder}"
|
2019-06-13 21:47:27 -03:00
|
|
|
},
|
2019-12-01 16:47:29 -04:00
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
|
|
|
"reveal": "always",
|
|
|
|
"focus": true,
|
|
|
|
"panel": "new",
|
|
|
|
"showReuseMessage": false,
|
|
|
|
"clear": false
|
|
|
|
},
|
|
|
|
"problemMatcher": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "miniterm.py",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "miniterm.py --raw - 57600",
|
|
|
|
"options": {
|
2020-09-16 10:07:54 -03:00
|
|
|
"cwd": "${workspaceFolder}"
|
2019-12-01 16:47:29 -04:00
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"echo": true,
|
|
|
|
"reveal": "always",
|
|
|
|
"focus": true,
|
|
|
|
"panel": "new",
|
|
|
|
"showReuseMessage": false,
|
|
|
|
"clear": false
|
|
|
|
},
|
2019-06-13 21:47:27 -03:00
|
|
|
"problemMatcher": []
|
|
|
|
}
|
2020-09-16 10:07:54 -03:00
|
|
|
],
|
|
|
|
"inputs": [
|
2022-08-22 12:00:03 -03:00
|
|
|
{
|
|
|
|
"type": "pickString",
|
2022-09-29 14:49:31 -03:00
|
|
|
"id": "gzWorld",
|
|
|
|
"description": "gz world",
|
2022-08-22 12:00:03 -03:00
|
|
|
"options": [
|
|
|
|
"default"
|
|
|
|
],
|
|
|
|
"default": "default"
|
2020-09-21 12:56:25 -03:00
|
|
|
}
|
2018-12-05 00:11:36 -04:00
|
|
|
]
|
2019-06-13 21:47:27 -03:00
|
|
|
}
|