-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run Xvnc as a default entrypoint for dev container
This is an alternative approach to run a VNC with xorg apps to expose Gazebo UI outside. VNC client app is required.
- Loading branch information
Showing
6 changed files
with
35 additions
and
17 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
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,3 +1,3 @@ | ||
export OM_DATUM_LAT=-22.9 | ||
export OM_DATUM_LONG=-43.2 | ||
export OM_MAP_PATH=/home/ws/.devcontainer/home/map.geojson | ||
export OM_MAP_PATH=/opt/ws/.devcontainer/home/map.geojson |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
terminate_script() { | ||
echo "Termination signal received, exiting..." | ||
exit 1 | ||
} | ||
|
||
trap terminate_script SIGINT | ||
|
||
if [ -z "$DISPLAY" ]; then | ||
echo "DISPLAY not set, setting to :0" | ||
DISPLAY=:0 | ||
fi | ||
|
||
Xvnc -ac -pn -depth 24 $DISPLAY -rfbport=5900 -SecurityTypes=None -desktop=OpenMowerNext |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
set -e | ||
|
||
echo "Installing ROS packages..." | ||
|
||
sudo apt update | ||
rosdep update | ||
make custom-deps deps | ||
|
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