From 6ad3678232f8b9ddc513c873c9574316785fcc3f Mon Sep 17 00:00:00 2001 From: xfiderek Date: Fri, 6 Sep 2024 14:00:11 +0200 Subject: [PATCH] NASA_Challenge_[@xfiderek] Add build and run scripts for trick demo (#42). --- ros_trick/build.sh | 23 +++++++++++++++++++++++ ros_trick/run.sh | 18 ++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 ros_trick/build.sh create mode 100755 ros_trick/run.sh diff --git a/ros_trick/build.sh b/ros_trick/build.sh new file mode 100755 index 00000000..fd786485 --- /dev/null +++ b/ros_trick/build.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +TAG=latest +ROS_TRICK_BRIDGE_IMAGE_NAME=ros_trick_bridge +CANADARM_ROS_TRICK_DEMO_NAME=canadarm_ros_trick_demo + +CURRENT_PATH=$(pwd) +SPACEROS_DOCKER_REPO_PATH="${CURRENT_PATH}/docker_repo" + +if [ ! -d ${SPACEROS_DOCKER_REPO_PATH} ]; then + mkdir -p ${SPACEROS_DOCKER_REPO_PATH} + git clone -b humble-2024.07.0 https://github.com/space-ros/docker.git ${SPACEROS_DOCKER_REPO_PATH} + cd ${CURRENT_PATH} +fi +cd ${SPACEROS_DOCKER_REPO_PATH}/moveit2 && ./build.sh +cd ${SPACEROS_DOCKER_REPO_PATH}/space_robots && ./build.sh +cd ${CURRENT_PATH} + + +docker build -t ${ROS_TRICK_BRIDGE_IMAGE_NAME}:${TAG} -f ./ros_trick_bridge.Dockerfile . +docker build -t ${CANADARM_ROS_TRICK_DEMO_NAME}:${TAG} -f ./canadarm_ros_trick_demo.Dockerfile . diff --git a/ros_trick/run.sh b/ros_trick/run.sh new file mode 100755 index 00000000..cec12614 --- /dev/null +++ b/ros_trick/run.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Copyright 2024 Blazej Fiderek (xfiderek) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +set -e +docker compose up --build