Skip to content

Commit

Permalink
NASA_Challenge_[@xfiderek] Add build and run scripts for trick demo (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
xfiderek committed Sep 6, 2024
1 parent eb90487 commit 0f43686
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ros_trick/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e

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 compose build
18 changes: 18 additions & 0 deletions ros_trick/run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0f43686

Please sign in to comment.