-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
huge refactoring to enable developing locally using docker
- Loading branch information
Showing
6 changed files
with
72 additions
and
19 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,4 +1,4 @@ | ||
#!/bin/bash | ||
docker build -t tsdf-plusplus-ros-base:v0.1 base | ||
docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t tsdf-plusplus-ros-base:v0.1 base | ||
docker build -t tsdf-plusplus-ros-workspace:v0.1 workspace | ||
docker build -t tsdf-plusplus-ros-catkin-build:v0.1 catkin-build |
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,15 @@ | ||
FROM tsdf-plusplus-ros-workspace:v0.1 | ||
|
||
ARG USERNAME=ros | ||
USER $USERNAME | ||
WORKDIR /home/$USERNAME | ||
ARG ROS_VERSION=melodic | ||
ARG CATKIN_WS=/home/ros/catkin_ws | ||
RUN bash -c 'source /opt/ros/melodic/setup.bash && \ | ||
cd $CATKIN_WS/src && \ | ||
git clone https://github.com/ethz-asl/tsdf-plusplus.git && \ | ||
wstool merge -t . tsdf-plusplus/tsdf_plusplus_https.rosinstall && \ | ||
wstool update' | ||
RUN bash -c 'source /opt/ros/melodic/setup.bash && \ | ||
cd $CATKIN_WS && \ | ||
catkin build -j$(($(nproc) / 2)) -l1 tsdf_plusplus_ros rgbd_segmentation mask_rcnn_ros cloud_segmentation' |
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,19 @@ | ||
#!/bin/bash | ||
workspace_folder=$1 | ||
if [ -z "$1" ] | ||
then | ||
echo "Absolute path of the workspace folder not found" | ||
exit 1 | ||
fi | ||
mode=$2 | ||
if [ -z "$2" ] | ||
then | ||
mode="it" | ||
fi | ||
docker container run --rm -$mode \ | ||
--user $(id -u) \ | ||
--mount type=bind,source="${workspace_folder}",target=/home/ros/catkin_ws \ | ||
--name tsdf-plusplus-dev \ | ||
--workdir /home/ros/catkin_ws \ | ||
tsdf-plusplus-ros-base:v0.1 \ | ||
bash |
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