-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reverse proxy * Fix revere proxy * E stop read state * test * test * Estop w8 for feedback * layout * compose * Reverse proxy * typo * fix workflow * Fix reverse proxy * Simplify * fix * new topics paths * Inverse logic and moving average filter * clean up * e-stop service fixes --------- Co-authored-by: BOOTCFG <[email protected]>
- Loading branch information
1 parent
cc71bd7
commit bdf5c0c
Showing
19 changed files
with
284 additions
and
328 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
.DS_Store | ||
.webpack/ | ||
dist/ | ||
demo/ | ||
node_modules/ | ||
Dockerfile |
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 |
---|---|---|
@@ -1,33 +1,29 @@ | ||
# Listen on localhost on the specified port | ||
:{$UI_PORT} { | ||
tls internal | ||
|
||
root * /src | ||
|
||
# Handle requests from Husarnet IPv6 clients | ||
@ipv6Client { | ||
expression {http.request.host}.startsWith("fc94") | ||
} | ||
handle @ipv6Client { | ||
vars full_host [{http.request.host}] | ||
redir /ui /?ds={$DS_TYPE}&ds.url=ws%3A%2F%2F%5B{http.request.host}%5D%3A{$DS_PORT} | ||
:8080 { | ||
handle_path /ws { | ||
reverse_proxy http://127.0.0.1:8765 | ||
} | ||
|
||
# Handle all other requests (from non-IPv6 clients) | ||
handle { | ||
vars full_host {http.request.host} | ||
redir /ui /?ds={$DS_TYPE}&ds.url=ws%3A%2F%2F{http.request.host}%3A{$DS_PORT} | ||
} | ||
handle_path /* { | ||
root * /src | ||
|
||
templates { | ||
mime "application/json" "text/plain" "text/html" | ||
} | ||
# Handle IPv6 clients | ||
@ipv6Client { | ||
expression {http.request.host}.startsWith("fc94") | ||
} | ||
|
||
handle @ipv6Client { | ||
redir /ui /?ds=foxglove-websocket&ds.url=ws%3A%2F%2F%5B{http.request.host}%5D%3A8765 | ||
} | ||
|
||
file_server browse | ||
# Handle all other requests (from non-IPv6 clients) | ||
handle { | ||
redir /ui /?ds=foxglove-websocket&ds.url=ws%3A%2F%2F{http.request.host}%3A8765 | ||
} | ||
|
||
@urdf path /*.urdf | ||
templates { | ||
mime "text/html" | ||
} | ||
|
||
header @urdf { | ||
Content-Type "text/plain" | ||
file_server | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
x-common-config: &common-config | ||
network_mode: host | ||
ipc: host | ||
environment: | ||
- RMW_IMPLEMENTATION=rmw_cyclonedds_cpp | ||
- ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-0} | ||
|
||
services: | ||
foxglove: | ||
image: husarion/foxglove:studio-nightly | ||
# build: | ||
# context: .. | ||
# dockerfile: Dockerfile | ||
# runtime: nvidia | ||
image: husarion/foxglove:improvements-nightly | ||
<<: *common-config | ||
ports: | ||
- 8080:8080 | ||
- 8765:8765 | ||
volumes: | ||
- ./foxglove-layout.json:/foxglove/default-layout.json | ||
- ../Caddyfile:/etc/caddy/Caddyfile | ||
environment: | ||
- ROBOT_NAMESPACE=panther | ||
- DS_HOST=foxglove-ds | ||
- DISABLE_CACHE=true | ||
- DISABLE_INTERACTION=false | ||
# - NVIDIA_VISIBLE_DEVICES=all | ||
# - NVIDIA_DRIVER_CAPABILITIES=all | ||
|
||
foxglove-ds: | ||
image: husarion/foxglove-bridge:humble-0.7.4-20240320 | ||
image: husarion/foxglove-bridge:humble-0.7.7-20240708 | ||
<<: *common-config | ||
ports: | ||
- 8765:8765 | ||
command: ros2 launch foxglove_bridge foxglove_bridge_launch.xml port:=8765 capabilities:=[clientPublish,parameters,parametersSubscribe,services,connectionGraph,assets] |
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
Oops, something went wrong.