-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adder Docker build, Updated README.md and fixed controller topics
- Loading branch information
1 parent
db71c71
commit 6515db2
Showing
12 changed files
with
113 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
FROM ros:humble | ||
|
||
# Define a few key variables | ||
ENV USERNAME=spaceros-user | ||
ENV HOME_DIR=/home/spaceros-user | ||
ENV DEMO_DIR=${HOME_DIR}/demo_ws | ||
ENV ROSDISTRO=humble | ||
|
||
|
||
# Disable prompting during package installation | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Get rosinstall_generator | ||
# Using Docker BuildKit cache mounts for /var/cache/apt and /var/lib/apt ensures that | ||
# the cache won't make it into the built image but will be maintained between steps. | ||
RUN sudo apt update && sudo apt install -y python3-pip \ | ||
ros-${ROSDISTRO}-control-msgs \ | ||
ros-${ROSDISTRO}-rviz-common \ | ||
ros-${ROSDISTRO}-rmw-cyclonedds-cpp \ | ||
ros-${ROSDISTRO}-geometry-msgs \ | ||
ros-${ROSDISTRO}-sensor-msgs \ | ||
ros-${ROSDISTRO}-std-msgs \ | ||
ros-${ROSDISTRO}-rosidl-typesupport-fastrtps-cpp \ | ||
ros-${ROSDISTRO}-rosidl-typesupport-fastrtps-c \ | ||
ros-${ROSDISTRO}-rviz2 \ | ||
&& sudo rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install vcstool | ||
RUN mkdir -p ${DEMO_DIR}/src | ||
WORKDIR ${DEMO_DIR} | ||
|
||
|
||
# Get the source for the dependencies | ||
COPY --chown=${USERNAME}:${USERNAME} demo_manual_pkgs.repos /tmp/ | ||
RUN vcs import src < /tmp/demo_manual_pkgs.repos | ||
|
||
#RUN sudo apt-get update -y && rosdep install --from-paths src --ignore-src -r -y --rosdistro ${ROSDISTRO} | ||
|
||
|
||
# Build the demo | ||
RUN /bin/bash -c 'source /opt/ros/${ROSDISTRO}/setup.bash \ | ||
&& colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -Wno-dev' | ||
|
||
# Setup the entrypoint | ||
COPY ./entrypoint.sh / | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
ORG=openrobotics | ||
IMAGE=space_robots_demo | ||
TAG=latest | ||
|
||
VCS_REF="" | ||
VERSION=preview | ||
|
||
# Exit script with failure if build fails | ||
set -eo pipefail | ||
|
||
echo "" | ||
echo "##### Building Space ROS Demo Docker Image #####" | ||
echo "" | ||
|
||
docker build -t $ORG/$IMAGE:$TAG \ | ||
--build-arg VCS_REF="$VCS_REF" \ | ||
--build-arg VERSION="$VERSION" . | ||
|
||
echo "" | ||
echo "##### Space ROS Demo Docker Image Build Completed! #####" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
repositories: | ||
demos: | ||
type: git | ||
url: https://github.com/magnivia4Consulting/demos.git | ||
version: main | ||
simulation: | ||
type: git | ||
url: https://github.com/magnivia4Consulting/simulation.git | ||
version: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Setup the Demo environment | ||
# source "${DEMO_DIR}/install/setup.bash" | ||
source "/home/spaceros-user/demo_ws/install/setup.bash" | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters