diff --git a/builder/assets/animation_map.txt b/builder/assets/animation_map.txt
deleted file mode 100644
index 8e04a74..0000000
--- a/builder/assets/animation_map.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-0 0.3375 0.0 4.6 0 0 0 0
-1 0.3375 1.15 4.6 0 0 0 0
-2 0.3375 2.3 4.6 0 0 0 0
-3 0.3375 3.45 4.6 0 0 0 0
-4 0.3375 4.6 4.6 0 0 0 0
-5 0.3375 0.0 3.45 0 0 0 0
-6 0.3375 1.15 3.45 0 0 0 0
-7 0.3375 2.3 3.45 0 0 0 0
-8 0.3375 3.45 3.45 0 0 0 0
-9 0.3375 4.6 3.45 0 0 0 0
-10 0.3375 0.0 2.3 0 0 0 0
-11 0.3375 1.15 2.3 0 0 0 0
-12 0.3375 2.3 2.3 0 0 0 0
-13 0.3375 3.45 2.3 0 0 0 0
-14 0.3375 4.6 2.3 0 0 0 0
-15 0.3375 0.0 1.15 0 0 0 0
-16 0.3375 1.15 1.15 0 0 0 0
-17 0.3375 2.3 1.15 0 0 0 0
-18 0.3375 3.45 1.15 0 0 0 0
-19 0.3375 4.6 1.15 0 0 0 0
-20 0.3375 0.0 0.0 0 0 0 0
-21 0.3375 1.15 0.0 0 0 0 0
-22 0.3375 2.3 0.0 0 0 0 0
-23 0.3375 3.45 0.0 0 0 0 0
-24 0.3375 4.6 0.0 0 0 0 0
diff --git a/builder/clever-config/launch/aruco.launch b/builder/clever-config/launch/aruco.launch
new file mode 100644
index 0000000..d7754d9
--- /dev/null
+++ b/builder/clever-config/launch/aruco.launch
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/builder/clever-config/launch/clever.launch b/builder/clever-config/launch/clever.launch
new file mode 100644
index 0000000..1020ea2
--- /dev/null
+++ b/builder/clever-config/launch/clever.launch
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/builder/clever-config/launch/main_camera.launch b/builder/clever-config/launch/main_camera.launch
new file mode 100644
index 0000000..92bec22
--- /dev/null
+++ b/builder/clever-config/launch/main_camera.launch
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/builder/clever-config/map/animation_map.txt b/builder/clever-config/map/animation_map.txt
new file mode 100644
index 0000000..9a54274
--- /dev/null
+++ b/builder/clever-config/map/animation_map.txt
@@ -0,0 +1,8 @@
+107 0.33 0 0 0 0 0 0
+106 0.33 0.77 0 0 0 0 0
+105 0.33 0 0.77 0 0 0 0
+104 0.33 0.77 0.77 0 0 0 0
+103 0.33 0 1.54 0 0 0 0
+102 0.33 0.77 1.54 0 0 0 0
+101 0.33 0 2.31 0 0 0 0
+100 0.33 0.77 2.31 0 0 0 0
diff --git a/builder/image-build.sh b/builder/image-build.sh
index 5432a5f..e2f70d5 100755
--- a/builder/image-build.sh
+++ b/builder/image-build.sh
@@ -30,10 +30,12 @@ echo_stamp() {
REPO_DIR="/mnt"
SCRIPTS_DIR="${REPO_DIR}/builder"
+CONFIG_DIR="${SCRIPTS_DIR}/clever-config"
IMAGES_DIR="${REPO_DIR}/images"
[[ ! -d ${SCRIPTS_DIR} ]] && (echo_stamp "Directory ${SCRIPTS_DIR} doesn't exist" "ERROR"; exit 1)
[[ ! -d ${IMAGES_DIR} ]] && mkdir ${IMAGES_DIR} && echo_stamp "Directory ${IMAGES_DIR} was created successful" "SUCCESS"
+[[ ! -d ${CONFIG_DIR} ]] && mkdir ${CONFIG_DIR} && echo_stamp "Directory ${CONFIG_DIR} was created successful" "SUCCESS"
if [[ -z ${TRAVIS_TAG} ]]; then IMAGE_VERSION="$(cd ${REPO_DIR}; git log --format=%h -1)"; else IMAGE_VERSION="${TRAVIS_TAG}"; fi
# IMAGE_VERSION="${TRAVIS_TAG:=$(cd ${REPO_DIR}; git log --format=%h -1)}"
@@ -105,7 +107,10 @@ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
# Copy service file for clever show client
img-chroot ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/clever-show.service' '/lib/systemd/system/'
-img-chroot ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/animation_map.txt' '/home/pi/catkin_ws/src/clever/aruco_pose/map/'
+
+# Copy config files for clever
+if [[ -d "${CONFIG_DIR}/launch" ]]; then img-chroot ${IMAGE_PATH} copy ${CONFIG_DIR}'/launch' '/home/pi/catkin_ws/src/clever/clever'; fi
+if [[ -d "${CONFIG_DIR}/map" ]]; then img-chroot ${IMAGE_PATH} copy ${CONFIG_DIR}'/map' '/home/pi/catkin_ws/src/clever/aruco_pose'; fi
# Shrink image
img-resize ${IMAGE_PATH}
diff --git a/builder/image-configure.sh b/builder/image-configure.sh
index 3ad8cf5..f7e0885 100755
--- a/builder/image-configure.sh
+++ b/builder/image-configure.sh
@@ -23,7 +23,7 @@ echo_stamp() {
}
# rename wifi ssid
-sed -i "s/NEW_SSID='CLEVER/NEW_SSID='CleverShow/" /root/init_rpi.sh
+sed -i "s/NEW_SSID='CLEVER/NEW_SSID='CLEVERSHOW/" /root/init_rpi.sh
# add sudoers variables to make sudo works with ros (for led strip)
grep -qxF 'Defaults env_keep += "ROS_LOG_DIR"' /etc/sudoers || cat << EOT >> /etc/sudoers
@@ -38,13 +38,5 @@ Defaults env_keep += "ROS_HOME"
Defaults env_keep += "ROS_LOG_DIR"
EOT
-# configure aruco.launch and clever.launch (for positioning with aruco map)
-sed -i '/' /home/pi/catkin_ws/src/clever/clever/launch/aruco.launch
-sed -i '/' /home/pi/catkin_ws/src/clever/clever/launch/aruco.launch
-sed -i '/' /home/pi/catkin_ws/src/clever/clever/launch/aruco.launch
-sed -i '/' /home/pi/catkin_ws/src/clever/clever/launch/clever.launch
-sed -i '/' /home/pi/catkin_ws/src/clever/clever/launch/clever.launch
-sed -i '/' /home/pi/catkin_ws/src/clever/clever/launch/clever.launch
-
echo_stamp "Image was configured!" "SUCCESS"