update layers
This commit is contained in:
parent
8a8d1187bb
commit
7c3f7066d4
@ -1,29 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Basic entrypoint for ROS / Colcon Docker containers
|
|
||||||
|
|
||||||
# Source ROS 2
|
|
||||||
source /opt/ros/${ROS_DISTRO}/setup.bash
|
|
||||||
echo "Sourced ROS 2 ${ROS_DISTRO}"
|
|
||||||
|
|
||||||
# Source the base workspace, if built
|
|
||||||
if [ -f ${UNDERLAY_WS}/install/setup.bash ]
|
|
||||||
then
|
|
||||||
source ${UNDERLAY_WS}/install/setup.bash
|
|
||||||
#export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(ros2 pkg prefix turtlebot3_gazebo)/share/turtlebot3_gazebo/models
|
|
||||||
echo "Sourced Bot Mini base workspace"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Source the overlay workspace, if built
|
|
||||||
if [ -f /overlay_ws/install/setup.bash ]
|
|
||||||
then
|
|
||||||
source /overlay_ws/install/setup.bash
|
|
||||||
#export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(ros2 pkg prefix tb3_worlds)/share/tb3_worlds/models
|
|
||||||
echo "Sourced Bot Mini overlay workspace"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Start Robot ROS2 Nodes
|
|
||||||
ros2 launch bot_mini_bringup robot_controller.launch.py priority:=80 cpu-affinity:=4 lock-memory-size:=100 config-child-threads:=True &
|
|
||||||
ros2 launch bot_mini_bringup robot_twist_mux.launch.py &
|
|
||||||
ros2 launch bot_mini_bringup robot_joy_teleop.launch.py
|
|
||||||
|
|
||||||
wait
|
|
@ -44,11 +44,12 @@ RUN vcs import < dependencies.repos;
|
|||||||
WORKDIR /rmp_ws
|
WORKDIR /rmp_ws
|
||||||
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
|
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
|
||||||
&& apt-get update -y \
|
&& apt-get update -y \
|
||||||
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y
|
||||||
&& colcon build --symlink-install \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Use Cyclone DDS as middleware
|
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
|
||||||
|
&& colcon build --symlink-install
|
||||||
|
|
||||||
|
# Use Cyclone DDS as middleware and install xacro
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
|
ros-${ROS_DISTRO}-rmw-cyclonedds-cpp \
|
||||||
ros-${ROS_DISTRO}-xacro \
|
ros-${ROS_DISTRO}-xacro \
|
||||||
@ -74,21 +75,17 @@ WORKDIR /overlay_ws
|
|||||||
RUN echo "update overlay"
|
RUN echo "update overlay"
|
||||||
|
|
||||||
RUN source /rmp_ws/install/setup.bash \
|
RUN source /rmp_ws/install/setup.bash \
|
||||||
&& colcon build --symlink-install \
|
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN source /rmp_ws/install/setup.bash \
|
||||||
|
&& colcon build --symlink-install
|
||||||
|
|
||||||
# Set up the entrypoint
|
# Set up the entrypoint
|
||||||
COPY ./docker/entrypoint.sh /
|
COPY ./docker/entrypoint.sh /
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
COPY ./controller_startup.sh /
|
|
||||||
RUN chmod +x /controller_startup.sh
|
|
||||||
|
|
||||||
COPY ./localization_startup.sh /
|
|
||||||
RUN chmod +x /localization_startup.sh
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
@ -98,10 +95,8 @@ FROM overlay AS guis
|
|||||||
|
|
||||||
# Install additional GUI tools
|
# Install additional GUI tools
|
||||||
RUN source /rmp_ws/install/setup.bash \
|
RUN source /rmp_ws/install/setup.bash \
|
||||||
&& colcon build --symlink-install \
|
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends ros-${ROS_DISTRO}-rviz2 \
|
&& apt-get install -y --no-install-recommends ros-${ROS_DISTRO}-rviz2 \
|
||||||
&& rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Set up the entrypoint
|
# Set up the entrypoint
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Basic entrypoint for ROS / Colcon Docker containers
|
|
||||||
|
|
||||||
# Source ROS 2
|
|
||||||
source /opt/ros/${ROS_DISTRO}/setup.bash
|
|
||||||
echo "Sourced ROS 2 ${ROS_DISTRO}"
|
|
||||||
|
|
||||||
# Source the base workspace, if built
|
|
||||||
if [ -f ${UNDERLAY_WS}/install/setup.bash ]
|
|
||||||
then
|
|
||||||
source ${UNDERLAY_WS}/install/setup.bash
|
|
||||||
#export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(ros2 pkg prefix turtlebot3_gazebo)/share/turtlebot3_gazebo/models
|
|
||||||
echo "Sourced Bot Mini base workspace"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Source the overlay workspace, if built
|
|
||||||
if [ -f /overlay_ws/install/setup.bash ]
|
|
||||||
then
|
|
||||||
source /overlay_ws/install/setup.bash
|
|
||||||
#export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(ros2 pkg prefix tb3_worlds)/share/tb3_worlds/models
|
|
||||||
echo "Sourced Bot Mini overlay workspace"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Start Robot ROS2 Nodes
|
|
||||||
ros2 launch bot_mini_bringup robot_lidar.launch.py &
|
|
||||||
ros2 launch bot_mini_bringup robot_localization.launch.py
|
|
||||||
|
|
||||||
wait
|
|
Loading…
Reference in New Issue
Block a user