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": [
|
|
|
|
{
|
|
|
|
"label": "jmavsim",
|
|
|
|
"type": "shell",
|
2018-12-05 11:54:28 -04:00
|
|
|
"command": "Tools/jmavsim_run.sh",
|
|
|
|
"isBackground": true,
|
2019-03-22 21:55:39 -03:00
|
|
|
"args": [
|
|
|
|
"-r",
|
|
|
|
"500"
|
|
|
|
],
|
2018-12-05 11:54:28 -04:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceRoot}"
|
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "dedicated"
|
2019-03-22 21:55:39 -03:00
|
|
|
},
|
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"pattern": [
|
|
|
|
{
|
|
|
|
"regexp": ".",
|
|
|
|
"file": 1,
|
|
|
|
"location": 2,
|
|
|
|
"message": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"background": {
|
|
|
|
"activeOnStart": true,
|
|
|
|
"beginsPattern": ".",
|
|
|
|
"endsPattern": ".",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "jmavsim kill",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "kill $(ps aux | grep jmavsim | grep -v 'grep' | awk '{print $2}')",
|
|
|
|
"problemMatcher": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "gazebo build",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "make px4_sitl_default sitl_gazebo",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceRoot}"
|
|
|
|
},
|
|
|
|
"problemMatcher": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "gazebo iris",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOn": "gazebo build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
"env": {
|
|
|
|
"GAZEBO_PLUGIN_PATH": "${workspaceRoot}/build/px4_sitl_default/build_gazebo",
|
|
|
|
"GAZEBO_MODEL_PATH": "${workspaceRoot}/Tools/sitl_gazebo/models"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"command": "gzserver --verbose ${workspaceRoot}/Tools/sitl_gazebo/worlds/iris.world",
|
|
|
|
"isBackground": true,
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "dedicated"
|
|
|
|
},
|
|
|
|
"problemMatcher": [
|
|
|
|
{
|
|
|
|
"pattern": [
|
|
|
|
{
|
|
|
|
"regexp": ".",
|
|
|
|
"file": 1,
|
|
|
|
"location": 2,
|
|
|
|
"message": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"background": {
|
|
|
|
"activeOnStart": true,
|
|
|
|
"beginsPattern": ".",
|
|
|
|
"endsPattern": ".",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "gazebo kill",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "killall gzserver",
|
|
|
|
"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": {
|
|
|
|
"cwd": "${workspaceRoot}"
|
|
|
|
},
|
|
|
|
"problemMatcher": []
|
|
|
|
}
|
2018-12-05 00:11:36 -04:00
|
|
|
]
|
2019-06-13 21:47:27 -03:00
|
|
|
}
|