Skip to content

Commit

Permalink
Use this docker for running the PC side
Browse files Browse the repository at this point in the history
Signed-off-by: Luetkebohle Ingo (CR/AEX3) <[email protected]>
  • Loading branch information
iluetkeb committed Jul 20, 2020
1 parent 15f3c43 commit 2d90623
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
23 changes: 17 additions & 6 deletions Demo-Kobuki/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
FROM microros/base:dashing
FROM microros/micro-ros-agent:dashing

WORKDIR /uros_ws

RUN apt-get update

RUN . ./install/setup.sh && \
ros2 run micro_ros_setup create_firmware_ws.sh nuttx olimex-stm32-e407
RUN . ./install/setup.sh && \
ros2 run micro_ros_setup configure_firmware.sh drive_base
RUN git clone --depth 1 https://github.com/micro-ROS/micro-ROS_kobuki_demo \
src/micro-ROS_kobuki_demo
RUN git clone --depth 1 https://github.com/micro-ROS/drive_base \
src/drive_base

# install deps -- but skip agent, it's already in here
RUN rosdep install -y --from-paths src -i src --skip-keys micro_ros_agent

RUN . ./install/setup.sh && \
ros2 run micro_ros_setup build_firmware.sh
colcon build --symlink-install --packages-select drive_base_msgs \
base_info_handler \
micro-ros_kobuki_demo_remote \
micro-ros_kobuki_demo_robot-description && \
rm -rf build log

# setup entrypoint
COPY ./demo_kobuki_entrypoint.sh /
ENTRYPOINT ["/bin/sh", "/demo_kobuki_entrypoint.sh"]
3 changes: 3 additions & 0 deletions Demo-Kobuki/demo_kobuki_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash
source "/uros_ws/install/setup.sh"
exec ros2 launch micro-ros_kobuki_demo_remote remote_without_control.launch.py "$@"

0 comments on commit 2d90623

Please sign in to comment.