Add ros2 launch and make it the default

This commit is contained in:
2026-04-16 22:02:50 +00:00
parent ecbd72e9db
commit 6af4ba10bf
5 changed files with 87 additions and 56 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ros-${ROS_DISTRO}-geometry-msgs \
ros-${ROS_DISTRO}-std-msgs \
ros-${ROS_DISTRO}-sensor-msgs \
ros-${ROS_DISTRO}-launch-ros \
python3-smbus \
&& rm -rf /var/lib/apt/lists/*
@@ -42,4 +43,4 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["ros2", "run", "my_robot", "motor_controller"]
CMD ["ros2", "launch", "my_robot", "robot.launch.py"]