Skip to content
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

Update devcontainer config to support Foxglove Studio on Codespace #110

Draft
wants to merge 69 commits into
base: master
Choose a base branch
from

Conversation

mjyc
Copy link

@mjyc mjyc commented Jun 7, 2023

Status

Blocked on

Description

Updates foxglove studio installation & launch scripts to enable using foxglove studio app hosted in a codespace instance. See this demo video or this parent discussion.

Notes

2023/06/07 Things to know about the demo video: (1) I prebuilt the codespace instance to save the initial build time for the video. (2) To get the demo working, I made the change shown in prl-mushr/mushr_sim#20 on the codespace instance. (3) The self-hosted foxglove studio web app does not allow loading a layout file (e.g., see this related thread in foxglove slack). There are workarounds (e.g., mentioned in the thread), but I propose to wait for the proper fix as foxglove team is working on fixing this issue (I think--reminder: add a related tick if I find one).

Steps to Test

Follow these steps to set up Mushr in codespace and access the self-hosted foxglove studio:

  1. From https://github.com/mjyc/mushr, click the Code drop-down menu.
  2. Click on the Codespaces tab.
  3. Click Create codespace on noetic-codespace.
  4. Wait until the initial build is done. It takes a looong time, but you just need to go through it once.
  5. Run teleop.launch and foxglove studio server, e.g.,
    1. Select Tasks: Run Task and select Roslaunch teleop.launch to launch the teleop launch file.
    2. Select Tasks: Run Task and select Start Foxglove Studio server to start a self-hosted foxglove studio server.
    3. NOTE: You can run these tasks in terminal as shown in this part of the demo video.
  6. Open Foxglove Studio and connect
    1. See this part of the demo video

Acknowledgement

I thank Ruffin who solved various tricky problems to get Codespace + Foxglove working. For details, see https://discourse.ros.org/t/repeatable-reproducible-and-now-accessible-ros-development-via-dev-containers/31398

nickswalker and others added 30 commits March 25, 2021 14:18
Drop xacro arg that became default to silence a warning
Bump CMake version to avoid a warning
Neither meshes nor xacro sources were being put into the installed
robots directory. Looks like typos
Pretty gross, so will eventually need to refactor to avoid
repeating same command and increasing surface area for
copy paste bugs
@mjyc mjyc changed the title Noetic codespace Update devcontainer setup to support Codespace + Foxglove Jun 7, 2023
@mjyc mjyc force-pushed the noetic-codespace branch from 80c6910 to bc17555 Compare June 9, 2023 17:54
@mjyc mjyc changed the title Update devcontainer setup to support Codespace + Foxglove Update devcontainer config to support Foxglove Studio on Codespace Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants