Skip to content

Commit

Permalink
Almost good on the demo side
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRichard committed Sep 11, 2024
1 parent 11774d3 commit 71d96b9
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
20 changes: 20 additions & 0 deletions spaceros_demo.docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM osrf/space-ros:latest

RUN mkdir -p "${HOME_DIR}/spaceros/demo/src"
WORKDIR "${HOME_DIR}/spaceros/demo/src"
RUN git clone https://github.com/ros2/teleop_twist_keyboard.git
WORKDIR "${HOME_DIR}/spaceros/demo"

SHELL ["/bin/bash", "-c"]

## Install the demo as Space ROS package
ARG DEMO_SPACEROS_WS_PATH="${HOME_DIR}/spaceros/demo"
# hadolint ignore=SC1091
RUN source /ros_entrypoint.sh -- && \
colcon build --merge-install --symlink-install \
--build-base "${DEMO_SPACEROS_WS_PATH}/build" \
--install-base "${DEMO_SPACEROS_WS_PATH}/install" && \
rm -rf ./log

ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]
14 changes: 14 additions & 0 deletions spaceros_demo.docker/build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Build the Docker image
SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" &>/dev/null && pwd)"
PROJECT_DIR="$(dirname "${SCRIPT_DIR}")"
TAG="space-ros-omnilrs"
DOCKERFILE="${SCRIPT_DIR}/Dockerfile"

DOCKER_BUILD_CMD=(docker build "${SCRIPT_DIR}" --tag ${TAG})

echo -e "\033[0;32m${DOCKER_BUILD_CMD[*]}\033[0m" | xargs

# shellcheck disable=SC2068
exec ${DOCKER_BUILD_CMD[*]}
9 changes: 9 additions & 0 deletions spaceros_demo.docker/ros_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e

# Setup the Space ROS environment
source "${SPACEROS_DIR}/install/setup.bash"
source "/home/spaceros-user/spaceros/demo/install/setup.bash"
export IKOS_SCAN_NOTIFIER_FILES="" # make ikos create .ikosbin files for compiled packages

exec "$@"
2 changes: 2 additions & 0 deletions spaceros_demo.docker/run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker run --name spaceros-omni-lrs-container -it --rm --network=host --ipc=host space-ros-omnilrs:latest
4 changes: 2 additions & 2 deletions wiki/deformation_engine/DeformationEngine.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DeformationEngine
# Deformation Engine

> [!WARNING]
> This wiki page is under construction
Expand Down Expand Up @@ -65,7 +65,7 @@ force_distribution:
wave_frequency: 2.0
```

### Boundary Distribution
## Boundary Distribution
Controls boundary shape (y axis vs z axis with FLU convention).

```yaml
Expand Down

0 comments on commit 71d96b9

Please sign in to comment.