-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pr-fix_race_condition
- Loading branch information
Showing
43 changed files
with
226 additions
and
160 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# ghcr.io/ros-planning/moveit2:${ROS_DISTRO}-release | ||
# Full debian-based install of MoveIt using apt-get | ||
|
||
ARG ROS_DISTRO=foxy | ||
ARG ROS_DISTRO=rolling | ||
FROM ros:${ROS_DISTRO}-ros-base-focal | ||
MAINTAINER Dave Coleman dave@picknik.ai | ||
MAINTAINER Robert Haschke rhaschke@techfak.uni-bielefeld.de | ||
|
||
# Commands are combined in single RUN statement with "apt/lists" folder removal to reduce image size | ||
RUN apt-get update && \ | ||
RUN apt-get update -q && \ | ||
apt-get dist-upgrade -q -y && \ | ||
apt-get install -y ros-${ROS_DISTRO}-moveit-* && \ | ||
rm -rf /var/lib/apt/lists/* |
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 |
---|---|---|
@@ -1,35 +1,34 @@ | ||
# syntax = docker/dockerfile:1.3 | ||
|
||
# ghcr.io/ros-planning/moveit2:${ROS_DISTRO}-source | ||
# Downloads the moveit source code and install remaining debian dependencies | ||
|
||
ARG ROS_DISTRO=foxy | ||
ARG ROS_DISTRO=rolling | ||
FROM ghcr.io/ros-planning/moveit2:${ROS_DISTRO}-ci-testing | ||
|
||
MAINTAINER Robert Haschke rhaschke@techfak.uni-bielefeld.de | ||
MAINTAINER Dave Coleman dave@picknik.ai | ||
|
||
# Export ROS_UNDERLAY for downstream docker containers | ||
ENV ROS_UNDERLAY /root/ws_moveit/install | ||
WORKDIR $ROS_UNDERLAY/../src | ||
WORKDIR $ROS_UNDERLAY/.. | ||
|
||
# Copy MoveIt sources from docker context | ||
COPY . src/moveit2 | ||
|
||
# Commands are combined in single RUN statement with "apt/lists" folder removal to reduce image size | ||
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#minimize-the-number-of-layers | ||
RUN \ | ||
# Download moveit source so that we can get necessary dependencies | ||
git clone https://github.com/ros-planning/moveit2.git -b main && \ | ||
vcs import < moveit2/moveit2.repos && \ | ||
if [ -r moveit2/moveit2_${ROS_DISTRO}.repos ] ; then vcs import < moveit2/moveit2_${ROS_DISTRO}.repos ; fi && \ | ||
RUN --mount=type=cache,target=/root/.ccache/ \ | ||
# Enable ccache | ||
PATH=/usr/lib/ccache:$PATH && \ | ||
# Fetch required upstream sources for building | ||
vcs import src < src/moveit2/moveit2.repos && \ | ||
if [ -r src/moveit2/moveit2_${ROS_DISTRO}.repos ] ; then vcs import src < src/moveit2/moveit2_${ROS_DISTRO}.repos ; fi && \ | ||
# | ||
# Update apt package list as cache is cleared in previous container | ||
# Usually upgrading involves a few packages only (if container builds became out-of-sync) | ||
apt-get -qq update && \ | ||
apt-get -qq dist-upgrade && \ | ||
# | ||
rosdep update && \ | ||
rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO} --as-root=apt:false && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Build the workspace | ||
RUN cd $ROS_UNDERLAY/.. && . /opt/ros/${ROS_DISTRO}/setup.sh &&\ | ||
. /opt/ros/${ROS_DISTRO}/setup.sh &&\ | ||
colcon build \ | ||
--cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
--ament-cmake-args -DCMAKE_BUILD_TYPE=Release \ | ||
--event-handlers desktop_notification- status- | ||
--ament-cmake-args -DCMAKE_BUILD_TYPE=Release \ | ||
--event-handlers desktop_notification- status- && \ | ||
ccache -s && \ | ||
# | ||
# Update /ros_entrypoint.sh to source our new workspace | ||
sed -i "s#/opt/ros/\$ROS_DISTRO/setup.bash#$ROS_UNDERLAY/setup.sh#g" /ros_entrypoint.sh |
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,41 @@ | ||
# ignore everything | ||
* | ||
# but include these: | ||
!moveit2*.repos | ||
!**/package.xml | ||
!**/COLCON_IGNORE | ||
|
||
# https://github.com/moby/moby/issues/42788 | ||
!moveit_plugins/moveit_plugins/package.xml | ||
!moveit_plugins/moveit_ros_control_interface/package.xml | ||
!moveit_plugins/moveit_simple_controller_manager/package.xml | ||
!moveit_kinematics/package.xml | ||
!moveit_common/package.xml | ||
!moveit_setup_assistant/package.xml | ||
!moveit_core/package.xml | ||
!moveit_commander/package.xml | ||
!moveit_demo_nodes/run_move_group/package.xml | ||
!moveit_demo_nodes/run_ompl_constrained_planning/package.xml | ||
!moveit_demo_nodes/run_moveit_cpp/package.xml | ||
!moveit_planners/ompl/package.xml | ||
!moveit_planners/chomp/chomp_motion_planner/package.xml | ||
!moveit_planners/chomp/chomp_interface/package.xml | ||
!moveit_planners/chomp/chomp_optimizer_adapter/package.xml | ||
!moveit_planners/pilz_industrial_motion_planner_testutils/package.xml | ||
!moveit_planners/pilz_industrial_motion_planner/package.xml | ||
!moveit_planners/moveit_planners/package.xml | ||
!moveit_planners/trajopt/package.xml | ||
!moveit_runtime/package.xml | ||
!moveit/package.xml | ||
!moveit_ros/warehouse/package.xml | ||
!moveit_ros/moveit_servo/package.xml | ||
!moveit_ros/occupancy_map_monitor/package.xml | ||
!moveit_ros/perception/package.xml | ||
!moveit_ros/move_group/package.xml | ||
!moveit_ros/robot_interaction/package.xml | ||
!moveit_ros/visualization/package.xml | ||
!moveit_ros/manipulation/package.xml | ||
!moveit_ros/planning/package.xml | ||
!moveit_ros/planning_interface/package.xml | ||
!moveit_ros/benchmarks/package.xml | ||
!moveit_ros/moveit_ros/package.xml |
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,21 @@ | ||
# Backporting Github Actions that ports a given PR to specified branch (via backport branch_name label) if the following conditions are met: | ||
# 1) The PR is merged | ||
# 2) The PR has a label of "backport branch_name" and branch_name is an existing branch. | ||
# The label can be specified before or after the original PR is merged. Once these two conditions are met the bot will open a backport PR. | ||
name: Backport | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
- labeled | ||
|
||
jobs: | ||
backport: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
name: Backport | ||
steps: | ||
- name: Backport | ||
uses: tibdex/backport@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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
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
Oops, something went wrong.