-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
monolithic node integration
- Loading branch information
Showing
83 changed files
with
4,458 additions
and
172 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
{ | ||
"dockerFile": "../src/depthai-ros/Dockerfile", | ||
"build": { | ||
"args": {"BUILD_SEQUENTIAL": "1", | ||
"USE_RVIZ": "1"} | ||
}, | ||
"remoteUser": "root", | ||
"runArgs": [ | ||
"--device=/dev/ttyUSB0", | ||
"--privileged", | ||
"--network=host", | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt=seccomp:unconfined", | ||
"--security-opt=apparmor:unconfined", | ||
"--volume=/dev:/dev", | ||
"--volume=/tmp/.X11-unix:/tmp/.X11-unix" | ||
], | ||
"containerEnv": { "DISPLAY": "${localEnv:DISPLAY}" }, | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.profiles.linux": { | ||
"zsh": { | ||
"path": "zsh" | ||
}, | ||
"bash": { | ||
"path": "bash" | ||
} | ||
|
||
}, | ||
"terminal.integrated.defaultProfile.linux": "zsh" | ||
}, | ||
"extensions": [ | ||
"dotjoshjohnson.xml", | ||
"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", | ||
"augustocdias.tasks-shell-input" | ||
] | ||
} |
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,4 +1,3 @@ | ||
*.json | ||
.vscode | ||
devel | ||
__pycache__ | ||
|
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
Help() | ||
{ | ||
echo "Build workspace" | ||
echo | ||
echo "Build options:" | ||
echo "-s [1] Set to 1 to build sequentially (longer, but saves RAM & CPU)" | ||
echo "-r [0] Set to 1 to build in Debug mode. (RelWithDebInfo)" | ||
echo "-m [0] Set to 1 to build with --merge-install option." | ||
echo | ||
} | ||
|
||
sequential=1 | ||
release=0 | ||
merge=0 | ||
build_type=Release | ||
install_type=symlink-install | ||
while getopts ":h:s:r:m:" option; do | ||
case $option in | ||
h) # display Help | ||
Help | ||
exit;; | ||
s) # Sequential executor | ||
sequential=$OPTARG;; | ||
r) # Build type | ||
release=$OPTARG;; | ||
m) # Install type | ||
merge=$OPTARG;; | ||
\?) # Invalid option | ||
echo "Error: Invalid option" | ||
exit;; | ||
esac | ||
done | ||
|
||
if [ "$release" == 0 ] | ||
then | ||
build_type="RelWithDebInfo" | ||
fi | ||
|
||
if [ "$merge" == 1 ] | ||
then | ||
install_type="merge-install" | ||
fi | ||
echo "Build type: $build_type, Install_type: $install_type" | ||
if [ "$sequential" == 1 ] | ||
then | ||
echo "Sequential build" && \ | ||
MAKEFLAGS="-j1 -l1" colcon build \ | ||
--$install_type \ | ||
--executor sequential \ | ||
--cmake-args -DCMAKE_BUILD_TYPE=$build_type \ | ||
--cmake-args -DBUILD_TESTING=OFF \ | ||
--cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
--cmake-args -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
--cmake-args -DBUILD_SHARED_LIBS=ON | ||
else | ||
echo "Parallel build" && \ | ||
colcon build \ | ||
--$install_type \ | ||
--cmake-args -DCMAKE_BUILD_TYPE=$build_type \ | ||
--cmake-args -DBUILD_TESTING=OFF --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON --cmake-args -DCMAKE_POSITION_INDEPENDENT_CODE=ON --cmake-args -DBUILD_SHARED_LIBS=ON | ||
fi |
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.