Skip to content

humble moveit environment #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.9.7
#with:
# python-version: 3.9.7

- name: Install clang-format
run: sudo apt-get install clang-format cppcheck
run: |
sudo apt-get update
sudo apt-get install -y clang-format cppcheck

- uses: pre-commit/action@v2.0.3
with:
Expand Down
42 changes: 41 additions & 1 deletion SMACC2-not-released.humble.repos
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
repositories:
repositories:

moveit2:
type: git
url: https://github.com/ros-planning/moveit2.git
version: feature/multiple_namespace_support_from_parameters

ros2_control:
type: git
url: https://github.com/ros-controls/ros2_control.git
version: 30131b42f082a06032507040840c7ca4c48a6241

ros2_controllers:
type: git
url: https://github.com/ros-controls/ros2_controllers.git
version: f08c3789e81b72f64858eccfb4a1553fd9ed801f # 2.15.0

realtime_tools:
type: git
url: https://github.com/ros-controls/realtime_tools.git
version: 2.4.0

ros_param_shortcuts:
type: git
url: https://github.com/PickNikRobotics/rosparam_shortcuts
version: 0.5.0

generate_parameter_library:
type: git
url: https://github.com/PickNikRobotics/generate_parameter_library.git
version: 0.3.0

rsl:
type: git
url: https://github.com/PickNikRobotics/RSL.git
version: 0.2.0

moveit_resources:
type: git
url: https://github.com/ros-planning/moveit_resources.git
version: ros2
2 changes: 1 addition & 1 deletion SMACC2.humble.repos
Original file line number Diff line number Diff line change
@@ -1 +1 @@
repositories:
repositories:
13 changes: 6 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \

WORKDIR "/home/ros2_ws/src"

RUN echo "x23"
RUN echo "copying current code version to docker image:"
ADD . /home/ros2_ws/src/SMACC2
RUN if [ $LOCAL_FOLDER_SOURCE -eq 0 ] ; then (echo "downloading repo" && rm -R /home/ros2_ws/src/SMACC2 && git clone -b $GIT_BRANCH https://github.com/robosoft-ai/SMACC2.git /home/ros2_ws/src/SMACC2); else (echo "using local copy" && rm -R /home/ros2_ws/src/SMACC2/.git); fi
WORKDIR "/home/ros2_ws"


# install dependencies and build
RUN ls src && vcs import src --skip-existing --input src/SMACC2/SMACC2-not-released.$ROS_DISTRO.repos \
&& ls src
RUN ls src
RUN vcs import src --skip-existing --input src/SMACC2/SMACC2-not-released.$ROS_DISTRO.repos || true
RUN ls src

RUN rosdep install --from-paths src --ignore-src -r -y
RUN rosdep install --from-paths src --ignore-src -r -y --skip-keys warehouse-ros-mongo || true
RUN apt-get update && apt-get install -q -y --no-install-recommends xterm

RUN bash -c "source /opt/ros/$ROS_DISTRO/setup.sh && colcon build --merge-install"
RUN bash -c "source /opt/ros/$ROS_DISTRO/setup.sh && colcon build --merge-install --packages-skip moveit_servo"
5 changes: 3 additions & 2 deletions docker/build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ NOCACHE="--no-cache"
NOCACHE=

echo "ros distro: $ROS_DISTRO"
echo "git branch: $GITBRANCH"
sudo docker build --build-arg ROS_DISTRO=$ROS_DISTRO --build-arg GIT_BRANCH=$GIT_BRANCH -t smacc2:$ROS_DISTRO -f docker/Dockerfile . $NOCACHE
echo "git branch: $GIT_BRANCH"
echo "ubuntu version: $UBUNTU_VERSION"
sudo docker build --build-arg ROS_DISTRO=$ROS_DISTRO --build-arg GIT_BRANCH=$GIT_BRANCH --build-arg UBUNTU_VERSION=$UBUNTU_VERSION -t smacc2:$ROS_DISTRO -f docker/Dockerfile . $NOCACHE
4 changes: 4 additions & 0 deletions docker/build_docker_humble.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
DIR="$(dirname "$(realpath "$0")")"
echo $DIR
$DIR/build_docker.sh humble humble jammy
File renamed without changes.
2 changes: 2 additions & 0 deletions docker/run_docker_bash_humble.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
sudo docker run -it smacc2:humble /bin/bash