VIORB SLAM docker image
Create run.sh file with this content:
#!/bin/bash
trap : SIGTERM SIGINT
function abspath() {
# generate absolute path from relative path
# $1 : relative filename
# return : absolute path
if [ -d "$1" ]; then
# dir
(cd "$1"; pwd)
elif [ -f "$1" ]; then
# file
if [[ $1 = /* ]]; then
echo "$1"
elif [[ $1 == */* ]]; then
echo "$(cd "${1%/*}"; pwd)/${1##*/}"
else
echo "$(pwd)/$1"
fi
fi
}
roscore &
ROSCORE_PID=$!
sleep 1
VIORB_DIR=$(abspath "..")
rviz &
RVIZ_PID=$!
docker run \
-it \
--rm \
--net=host \
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -h $HOSTNAME -v $HOME/.Xauthority:/home/lyonn/.Xauthority \
kopanev/viorb:version1
wait $ROSCORE_PID
wait $RVIZ_PID
if [[ $? -gt 128 ]]
then
kill $ROSCORE_PID
kill $RVIZ_PID
fi
Run it:
./run.sh
Source directory:
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:$CATKIN_WS/src/Examples/ROS
Launch ROS node:
roslaunch ORB_VIO testeuroc.launch
Content type
Image
Digest
Size
1017.5 MB
Last updated
over 6 years ago
docker pull kopanev/viorb:version1