Skip to content

Commit

Permalink
Install ros2_control framework from binary packages (#308)
Browse files Browse the repository at this point in the history
* Install ros2_control framework from binary packages

* User symlink install
  • Loading branch information
christophfroehlich committed Jun 27, 2023
1 parent fa1c2e4 commit 8081073
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ RUN apt-get update \
COPY . /home/ros2_ws/src/ros2_control_demos

RUN cd /home/ros2_ws/src \
&& vcs import < ros2_control_demos/ros2_control_demos.${ROS_DISTRO}.repos \
&& apt-get update \
&& rosdep update \
&& rosdep install --from-paths ./ -i -y --rosdistro ${ROS_DISTRO}
&& rosdep install --from-paths ./ -i -y --rosdistro ${ROS_DISTRO} --skip-keys rviz2

RUN cd /home/ros2_ws/ \
&& . /opt/ros/${ROS_DISTRO}/setup.sh \
&& colcon build --merge-install
&& colcon build --merge-install --symlink-install

COPY Dockerfile/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

CMD ros2 launch ros2_control_demo_example_2 diffbot.launch.py start_rviz:=false
CMD ros2 launch ros2_control_demo_example_1 rrbot.launch.py start_rviz:=false

0 comments on commit 8081073

Please sign in to comment.