Add ros2 launch and make it the default
This commit is contained in:
+2
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user