-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this docker for running the PC side
Signed-off-by: Luetkebohle Ingo (CR/AEX3) <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 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
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"] |
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,3 @@ | ||
#! /bin/bash | ||
source "/uros_ws/install/setup.sh" | ||
exec ros2 launch micro-ros_kobuki_demo_remote remote_without_control.launch.py "$@" |