From c7e7edec70fb8afd9eb780e4960e6112a0db5818 Mon Sep 17 00:00:00 2001 From: Alexey Rogachevskiy Date: Wed, 6 May 2020 13:24:53 +0300 Subject: [PATCH] builder: Enable ROS services after first boot (#208) Merging this into master, this should not break anything. --- builder/assets/init_rpi.sh | 4 ++++ builder/image-ros.sh | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/assets/init_rpi.sh b/builder/assets/init_rpi.sh index 8054ebfd..69505152 100755 --- a/builder/assets/init_rpi.sh +++ b/builder/assets/init_rpi.sh @@ -62,6 +62,10 @@ hostnamectl set-hostname $NEW_HOSTNAME sed -i 's/127\.0\.1\.1.*/127.0.1.1\t'${NEW_HOSTNAME}' '${NEW_HOSTNAME}'.local/g' /etc/hosts # .local (mdns) hostname added to make it accesable when wlan and ethernet interfaces are down +echo_stamp "Enable ROS services" +systemctl enable roscore +systemctl enable clover + echo_stamp "Harware setup" /root/hardware_setup.sh diff --git a/builder/image-ros.sh b/builder/image-ros.sh index fef4aec3..9de629fd 100755 --- a/builder/image-ros.sh +++ b/builder/image-ros.sh @@ -100,10 +100,6 @@ my_travis_retry pip install -r /home/pi/catkin_ws/src/clover/clover/requirements source /opt/ros/melodic/setup.bash catkin_make -j2 -DCMAKE_BUILD_TYPE=Release -echo_stamp "Enable ROS services" -systemctl enable roscore -systemctl enable clover - echo_stamp "Install clever package (for backwards compatibility)" cd /home/pi/catkin_ws/src/clover/builder/assets/clever ./setup.py install