-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Visualizations for Dev Container #3523
Merged
ruffsl
merged 38 commits into
ros-navigation:main
from
ruffsl:devcontainer-visualization
Apr 26, 2023
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
04468cc
Add visualizer stage
ruffsl 880f95e
Install foxglove
ruffsl 0407cb4
Install gzweb
ruffsl 089b8e2
Add hack for resolvable mesh URIs
ruffsl 99c59bc
Revert hack and use fork
ruffsl a6d9531
Update target stage to visualizer
ruffsl fa3d1c3
Comment out gzclient and rviz for debugging
ruffsl 38c8b0e
Add hack for resolvable mesh URIs
ruffsl e09b309
Reorder stages for readability
ruffsl f6523da
fix typo
ruffsl e9947b0
Install gdb for launching ros launch files
ruffsl feb9b60
Add vscode tasks file
ruffsl 95bbe1b
Add Start Gzweb task
ruffsl 6f9161b
Add Start Foxglove tasks
ruffsl d2f0f7f
Add Start Foxglove compound task
ruffsl 175db4f
Set default problemMatcher to empty
ruffsl 3db3691
Source overlay before running foxglove_bridge
ruffsl 56fe95b
Formatting
ruffsl 4d701be
Generalize and simplify hack
ruffsl 307760c
Generalize gazebo model discovery
ruffsl 1b22087
Patch gzserver to run headless using xvfb
ruffsl 02740fa
Set isBackground for start tasks
ruffsl 1f76e0a
Add stop tasks
ruffsl 36f0a78
Add restart foxglove task
ruffsl 20d6a8e
Switch to shell for commanding pkill
ruffsl e40fb5c
Add icons to tasks
ruffsl 83a7e19
Add restart gzweb task
ruffsl fe44e87
Add global start, stop, and restart tasks
ruffsl 7a0741f
Formatting
ruffsl e1aafa5
Hide tasks users need not run manually
ruffsl b7a53fa
Shorten label for background tasks
ruffsl 9521005
Show global start and stop visualizations tasks
ruffsl 2149076
Revert "Comment out gzclient and rviz for debugging"
ruffsl 11c526a
Add --ipc=host to runArgs
ruffsl cf42480
Add --pid=host to runArgs
ruffsl 66f01b0
Add to runArgs
ruffsl f25fe27
Add comments
ruffsl c83172b
Comment out runArgs unintended side effects
ruffsl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Gzweb", | ||
"icon": { | ||
"id": "debug-start" | ||
}, | ||
"type": "process", | ||
"command": "npm", | ||
"args": [ | ||
"start" | ||
], | ||
"options": { | ||
"cwd": "/opt/gzweb", | ||
"env": { | ||
"npm_config_port": "9090" | ||
} | ||
}, | ||
"hide": true, | ||
"isBackground": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Stop Gzweb", | ||
"icon": { | ||
"id": "debug-stop" | ||
}, | ||
"type": "shell", | ||
"command": "pkill -SIGTERM -f 'npm start' || true", | ||
"hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Restart Gzweb", | ||
"icon": { | ||
"id": "debug-restart" | ||
}, | ||
"dependsOn": [ | ||
"Stop Gzweb", | ||
"Gzweb" | ||
], | ||
"dependsOrder": "sequence", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Foxglove Bridge", | ||
"icon": { | ||
"id": "debug-start" | ||
}, | ||
"type": "shell", | ||
"command": "source ./install/setup.bash && ros2 run foxglove_bridge foxglove_bridge", | ||
"options": { | ||
"cwd": "/opt/overlay_ws", | ||
}, | ||
"isBackground": true, | ||
"hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Stop Foxglove Bridge", | ||
"icon": { | ||
"id": "debug-stop" | ||
}, | ||
"type": "shell", | ||
"command": "pkill -SIGTERM -f 'ros2 run foxglove_bridge foxglove_bridge' || true", | ||
"hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Foxglove Studio", | ||
"icon": { | ||
"id": "debug-start" | ||
}, | ||
"type": "process", | ||
"command": "caddy", | ||
"args": [ | ||
"file-server", | ||
"--listen", | ||
":8080" | ||
], | ||
"options": { | ||
"cwd": "/opt/foxglove", | ||
}, | ||
"isBackground": true, | ||
"hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Stop Foxglove Studio", | ||
"icon": { | ||
"id": "debug-stop" | ||
}, | ||
"type": "shell", | ||
"command": "pkill -SIGTERM -f 'caddy file-server --listen :8080' || true", | ||
"hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Foxglove", | ||
"icon": { | ||
"id": "debug-start" | ||
}, | ||
"dependsOn": [ | ||
"Foxglove Bridge", | ||
"Foxglove Studio" | ||
], | ||
"hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Stop Foxglove", | ||
"icon": { | ||
"id": "debug-stop" | ||
}, | ||
"dependsOn": [ | ||
"Stop Foxglove Bridge", | ||
"Stop Foxglove Studio" | ||
], | ||
"hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Restart Foxglove", | ||
"icon": { | ||
"id": "debug-restart" | ||
}, | ||
"dependsOn": [ | ||
"Stop Foxglove", | ||
"Foxglove" | ||
], | ||
"dependsOrder": "sequence", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Start Visualizations", | ||
"icon": { | ||
"id": "debug-start" | ||
}, | ||
"dependsOn": [ | ||
"Gzweb", | ||
"Foxglove" | ||
], | ||
// "hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Stop Visualizations", | ||
"icon": { | ||
"id": "debug-stop" | ||
}, | ||
"dependsOn": [ | ||
"Stop Gzweb", | ||
"Stop Foxglove" | ||
], | ||
// "hide": true, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Restart Visualizations", | ||
"icon": { | ||
"id": "debug-restart" | ||
}, | ||
"dependsOn": [ | ||
"Stop Visualizations", | ||
"Start Visualizations" | ||
], | ||
"dependsOrder": "sequence", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should have a separate docker container in .devcontainer for this? I'd like to keep the root docker file as straight forward as possible for use as the base of other people's systems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See: #3523 (comment)