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 authored and mkhansenbot committed Sep 9, 2024
1 parent e5ae9ae commit 6ad3678
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ros_trick/build.sh
Original file line number Diff line number Diff line change
@@ -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 .
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 6ad3678

Please sign in to comment.