forked from westonrobot/limo_ros2_docker
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* work towards cyclone * ignore stuff in .local * install all * disable PR build for arm * set up ros better
- Loading branch information
1 parent
d56e10c
commit 0a7a30f
Showing
10 changed files
with
207 additions
and
100 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 was deleted.
Oops, something went wrong.
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 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,5 @@ | ||
repositories: | ||
limo_ros2: | ||
type: git | ||
url: https://github.com/LCAS/limo_ros2.git | ||
version: humble |
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,64 @@ | ||
// https://github.com/athackst/vscode_ros2_workspace | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
{ | ||
// Use "dockerFile tag to build container using Dockerfile, or image tag to build using prebuilt image | ||
// "dockerFile": "Dockerfile", | ||
//"image": "westonrobot/limo_ros:humble_22082023", | ||
"name": "limo_ros2", | ||
|
||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"context": "..", | ||
"args": { | ||
"WORKSPACE": "${containerWorkspaceFolder}" | ||
} | ||
}, | ||
"image": "lcas.lincoln.ac.uk/lcas/limo_ros_amd64:humble", | ||
"remoteUser": "ros", | ||
"runArgs": [ | ||
// "--network=host", | ||
// "-v=/dev:/dev", | ||
// "--privileged", | ||
"--runtime=nvidia", | ||
// "--device-cgroup-rule" "a *:* rmw", | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt=seccomp:unconfined", | ||
"--security-opt=apparmor:unconfined", | ||
"--volume=/tmp/.X11-unix:/tmp/.X11-unix", | ||
"--volume=/home/agilex/.Xauthority:/home/ros/.Xauthority", | ||
"--gpus=all" | ||
], | ||
"containerEnv": { | ||
"DISPLAY": ":0", | ||
"ROS_LOCALHOST_ONLY": "0", | ||
"LIBGL_ALWAYS_SOFTWARE": "1" // Needed for software rendering of opengl | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "bash" | ||
}, | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "bash" | ||
}, | ||
// VSCode Extensions | ||
"extensions": [ | ||
"dotjoshjohnson.xml", | ||
"zachflower.uncrustify", | ||
"ms-azuretools.vscode-docker", | ||
"ms-iot.vscode-ros", | ||
"ms-python.python", | ||
"ms-vscode.cpptools", | ||
"redhat.vscode-yaml", | ||
"smilerobotics.urdf", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
} | ||
} |
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,64 @@ | ||
// https://github.com/athackst/vscode_ros2_workspace | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
{ | ||
// Use "dockerFile tag to build container using Dockerfile, or image tag to build using prebuilt image | ||
// "dockerFile": "Dockerfile", | ||
//"image": "westonrobot/limo_ros:humble_22082023", | ||
"name": "limo_ros2_arm", | ||
|
||
// "build": { | ||
// "dockerfile": "../Dockerfile", | ||
// "context": "..", | ||
// "args": { | ||
// "WORKSPACE": "${containerWorkspaceFolder}" | ||
// } | ||
// }, | ||
"image": "lcas.lincoln.ac.uk/lcas/limo_ros_arm64:humble", | ||
"remoteUser": "ros", | ||
"runArgs": [ | ||
"--network=host", | ||
"-v=/dev:/dev", | ||
"--privileged", | ||
"--runtime=nvidia", | ||
"--device-cgroup-rule=a *:* rmw", | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt=seccomp:unconfined", | ||
"--security-opt=apparmor:unconfined", | ||
"--volume=/tmp/.X11-unix:/tmp/.X11-unix", | ||
"--volume=/home/agilex/.Xauthority:/home/ros/.Xauthority", | ||
"--gpus=all" | ||
], | ||
"containerEnv": { | ||
"DISPLAY": ":0", | ||
"ROS_LOCALHOST_ONLY": "0", | ||
"LIBGL_ALWAYS_SOFTWARE": "1" // Needed for software rendering of opengl | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "bash" | ||
}, | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "bash" | ||
}, | ||
// VSCode Extensions | ||
"extensions": [ | ||
"dotjoshjohnson.xml", | ||
"zachflower.uncrustify", | ||
"ms-azuretools.vscode-docker", | ||
"ms-iot.vscode-ros", | ||
"ms-python.python", | ||
"ms-vscode.cpptools", | ||
"redhat.vscode-yaml", | ||
"smilerobotics.urdf", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"yzhang.markdown-all-in-one" | ||
] | ||
} | ||
} | ||
} |
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,9 +1,43 @@ | ||
source /opt/ros/lcas/install/setup.bash | ||
source /workspaces/limo_ros2/install/setup.bash | ||
#source /opt/ros/lcas/install/setup.bash | ||
#source /workspaces/limo_ros2/install/setup.bash | ||
|
||
unset RMW_IMPLEMENTATION | ||
unset ROS_LOCALHOST_ONLY | ||
export FASTRTPS_DEFAULT_PROFILES_FILE=/workspaces/limo_ros2/.devcontainer/super_client_configuration_file.xml | ||
export ROS_DISCOVERY_SERVER=localhost:11888 | ||
unset ROS_DISCOVERY_SERVER | ||
unset FASTRTPS_DEFAULT_PROFILES_FILE | ||
RMW_IMPLEMENTATION=rmw_cyclonedds_cpp | ||
|
||
#export FASTRTPS_DEFAULT_PROFILES_FILE=/workspaces/limo_ros2/.devcontainer/super_client_configuration_file.xml | ||
#export ROS_DISCOVERY_SERVER=localhost:11888 | ||
|
||
|
||
read -r -d '' CYCLONEDDS_URI << EOM | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://cdds.io/config https://raw.githubusercontent.com/eclipse-cyclonedds/cyclonedds/master/etc/cyclonedds.xsd"> | ||
<Domain id="0"> | ||
<General> | ||
<AllowMulticast>false</AllowMulticast> | ||
<MaxMessageSize>65500B</MaxMessageSize> | ||
<FragmentSize>4000B</FragmentSize> | ||
<Transport>udp</Transport> | ||
</General> | ||
<Discovery> | ||
<Peers> | ||
<Peer address="localhost"/> | ||
<Peer address="`hostname`"/> | ||
<!--<Peer address="[IPV6-address]"/>--> | ||
</Peers> | ||
<ParticipantIndex>auto</ParticipantIndex> | ||
</Discovery> | ||
<Internal> | ||
<Watermarks> | ||
<WhcHigh>500kB</WhcHigh> | ||
</Watermarks> | ||
</Internal> | ||
<Tracing> | ||
<Verbosity>info</Verbosity> | ||
<OutputFile>stdout</OutputFile> | ||
</Tracing> | ||
</Domain> | ||
</CycloneDDS> | ||
EOM | ||
|
||
export CYCLONEDDS_URI |
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 |
---|---|---|
|
@@ -298,4 +298,6 @@ dmypy.json | |
# Cython debug symbols | ||
cython_debug/ | ||
|
||
!src/** | ||
!src/** | ||
|
||
.local |