Skip to content

Commit 4c53132

Browse files
committed
Update the space robots demo for new base image (issue #198)
1 parent 509df97 commit 4c53132

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

space_robots/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ LABEL org.label-schema.vcs-url="https://github.com/space-ros/docker"
3636
LABEL org.label-schema.vcs-ref=${VCS_REF}
3737

3838
# Define a few key variables
39-
ENV DEMO_DIR=${HOME_DIR}/demos_ws
39+
ENV DEMO_DIR=${HOME}/demos_ws
4040
ENV IGNITION_VERSION fortress
4141
ENV GZ_VERSION fortress
4242

@@ -84,21 +84,21 @@ RUN cd mongo-cxx-driver-r3.6.7/build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCM
8484
# Get the source for the dependencies
8585
# RUN vcs import src < /tmp/demo_generated_pkgs.repos
8686
COPY --chown=${USERNAME}:${USERNAME} demo_manual_pkgs.repos /tmp/
87-
RUN vcs import src < /tmp/demo_manual_pkgs.repos && /bin/bash -c 'source "${SPACEROS_DIR}/install/setup.bash"'
87+
RUN vcs import src < /tmp/demo_manual_pkgs.repos && /bin/bash -c 'source "${SPACEROS_DIR}/setup.bash"'
8888

8989
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
9090
--mount=type=cache,target=/var/lib/apt,sharing=locked \
9191
sudo apt-get update -y \
92-
&& /bin/bash -c 'source "${SPACEROS_DIR}/install/setup.bash"' \
92+
&& /bin/bash -c 'source "${SPACEROS_DIR}/setup.bash"' \
9393
&& /bin/bash -c 'source "${MOVEIT2_DIR}/install/setup.bash"' \
9494
&& rosdep install --from-paths src --ignore-src -r -y --rosdistro ${ROS_DISTRO}
9595

9696
# Build the demo
97-
RUN /bin/bash -c 'source ${SPACEROS_DIR}/install/setup.bash && source ${MOVEIT2_DIR}/install/setup.bash \
97+
RUN /bin/bash -c 'source ${SPACEROS_DIR}/setup.bash && source ${MOVEIT2_DIR}/install/setup.bash \
9898
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release'
9999

100100
# Add the user to the render group so that the user can access /dev/dri/renderD128
101-
RUN sudo usermod -aG render $USERNAME
101+
# RUN sudo usermod -aG render ${USERNAME}
102102

103103
# Setup the entrypoint
104104
COPY ./entrypoint.sh /

space_robots/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Depending on the host computer, you might need to remove the ```--gpus all``` fl
3737
## Running the Demos
3838

3939
### Curiosity Mars rover demo
40+
4041
Launch the demo:
4142
```bash
4243
ros2 launch mars_rover mars_rover.launch.py
@@ -57,11 +58,7 @@ docker exec -it <container-name> bash
5758
Make sure packages are sourced:
5859

5960
```bash
60-
source ${SPACEROS_DIR}/install/setup.bash
61-
```
62-
63-
```bash
64-
source ~/demos_ws/install/setup.bash
61+
source ${DEMO_DIR}/install/setup.bash
6562
```
6663

6764
#### Available Commands

0 commit comments

Comments
 (0)