Skip to content

Commit 0cf9550

Browse files
authored
Merge branch 'main' into spaceros_comp
2 parents c83a4aa + 147df00 commit 0cf9550

File tree

181 files changed

+45422
-713
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+45422
-713
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ Submissions to this repo should include:
1111
- - See example here: https://github.com/space-ros/docker/blob/main/space_robots/run.sh
1212

1313
Please refer to the [dockerfile repo](https://github.com/space-ros/docker/tree/main/space_robots) for instructions on running the existing demos
14+
15+
## Demos
16+
17+
1. [Canadarm2](canadarm2/README.md)
18+
2. [Curiosity Rover](curiosity_rover/README.md)

canadarm/README.md

-28
This file was deleted.

canadarm/launch/canadarm.launch.py

-109
This file was deleted.

canadarm/nodes/hello_moveit.cpp

-51
This file was deleted.

canadarm/nodes/move_arm

-76
This file was deleted.

canadarm2/.defaults.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"build":
3+
{
4+
"symlink-install": true,
5+
"cmake_args": "-DCMAKE_BUILD_TYPE=Release -Wno-dev",
6+
},
7+
}

canadarm2/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
install/
3+
log/

canadarm2/Dockerfile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM osrf/space-ros:latest
2+
3+
ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
4+
ENV ROS_DISTRO=humble
5+
ENV HOME=/home/spaceros-user
6+
7+
# Install dependencies
8+
# Related to space-ros/space-ros#195 and space-ros/space-ros#196
9+
RUN sudo apt update && sudo apt install -y ros-${ROS_DISTRO}-control-msgs \
10+
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp
11+
12+
# Prepare the workspace
13+
SHELL ["bash", "-c"]
14+
RUN mkdir -p ${HOME}/canadarm_ws/src
15+
WORKDIR ${HOME}/canadarm_ws
16+
17+
COPY ./canadarm_demo src/canadarm_demo
18+
COPY .defaults.yaml .defaults.yaml
19+
20+
# Build the workspace
21+
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
22+
&& source $HOME/spaceros/install/setup.bash \
23+
&& colcon build
24+
25+
# Source the workspace
26+
RUN echo "source ${HOME}/canadarm_ws/install/setup.bash" >> ${HOME}/.bashrc

canadarm2/Dockerfile.GUI

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
FROM ros:humble-ros-core-jammy
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
6+
ENV ROS_DISTRO=humble
7+
ENV USERNAME=spaceros-user
8+
ENV HOME=/home/spaceros-user
9+
ENV IGNITION_VERSION=fortress
10+
ENV GZ_VERSION=fortress
11+
12+
# Install dependencies
13+
RUN apt update && apt install -y ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
14+
wget \
15+
curl \
16+
&& apt clean \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
RUN wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg\
20+
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
21+
22+
# Install Gazebo
23+
RUN apt-get update -qq \
24+
&& apt-get install -y \
25+
gz-${GZ_VERSION} \
26+
libgz-sim7 \
27+
libgz-transport12 \
28+
libgz-gui7 \
29+
build-essential\
30+
ros-${ROS_DISTRO}-rcl-interfaces\
31+
ros-${ROS_DISTRO}-rclcpp\
32+
ros-${ROS_DISTRO}-builtin-interfaces\
33+
ros-${ROS_DISTRO}-ros-gz\
34+
ros-${ROS_DISTRO}-sdformat-urdf\
35+
ros-${ROS_DISTRO}-vision-msgs\
36+
ros-${ROS_DISTRO}-actuator-msgs\
37+
ros-${ROS_DISTRO}-image-transport\
38+
ros-${ROS_DISTRO}-xacro\
39+
&& rm -rf /var/lib/apt/lists/*
40+
41+
42+
# Install Rviz2
43+
RUN apt-get update -qq \
44+
&& apt-get install -y \
45+
ros-${ROS_DISTRO}-rviz2 \
46+
ros-${ROS_DISTRO}-moveit-ros-visualization \
47+
ros-${ROS_DISTRO}-nav2-rviz-plugins \
48+
&& rm -rf /var/lib/apt/lists/*
49+
50+
# Demo package
51+
RUN mkdir -p ${HOME}/canadarm2_ws/src
52+
WORKDIR ${HOME}/canadarm2_ws/src
53+
COPY ./canadarm_description ./canadarm_description
54+
COPY ./canadarm_gazebo ./canadarm_gazebo
55+
COPY .defaults.yaml ${HOME}/canadarm2_ws/.defaults.yaml
56+
57+
RUN apt update \
58+
&& apt install -y python3-rosdep python3-colcon-common-extensions \
59+
&& apt clean \
60+
&& rm -rf /var/lib/apt/lists/* \
61+
&& rosdep init \
62+
&& rosdep update
63+
64+
RUN . /opt/ros/humble/setup.sh \
65+
&& cd ${HOME}/canadarm2_ws \
66+
&& apt update \
67+
&& rosdep install --from-paths src --ignore-src -r -y \
68+
&& colcon build
69+
70+
WORKDIR ${HOME}/canadarm2_ws
71+
72+
RUN apt update && apt install -y ros-humble-ros-ign-gazebo
73+
RUN echo "source /opt/ros/humble/setup.bash" >> ${HOME}/.bashrc
74+
RUN echo "source ${HOME}/canadarm2_ws/install/setup.bash" >> ${HOME}/.bashrc
75+
76+
CMD ign gazebo

0 commit comments

Comments
 (0)