From 46e220529d46eb26cfc307850e25052359a7e877 Mon Sep 17 00:00:00 2001 From: Kanae Kochigami Date: Wed, 20 Sep 2023 17:37:00 +0900 Subject: [PATCH] [jsk_naoqi_robot/cross] force copy nao_meshes in build_user.sh --- jsk_naoqi_robot/cross/build_user.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/jsk_naoqi_robot/cross/build_user.sh b/jsk_naoqi_robot/cross/build_user.sh index 8e56a4a01b..34dcfe040f 100755 --- a/jsk_naoqi_robot/cross/build_user.sh +++ b/jsk_naoqi_robot/cross/build_user.sh @@ -52,6 +52,17 @@ if [ ! -e ${SOURCE_ROOT}/src/pepper_meshes/meshes ]; then cp -r /opt/ros/$ROS_DISTRO/share/pepper_meshes/meshes/ ${SOURCE_ROOT}/src/pepper_meshes/ fi +# force copy nao_meshes +if [ ! -e ${SOURCE_ROOT}/src/nao_meshes/meshes ]; then + if [ ! -e /opt/ros/$ROS_DISTRO/share/nao_meshes/meshes/ ]; then + set +x + echo "ERROR: You need /opt/ros/$ROS_DISTRO/share/nao_meshes/meshes/ " 1>&2 + echo "ERROR: run apt 'install ros-$ROS_DISTRO-nao-meshes'" 1>&2 + exit -1 + fi + cp -r /opt/ros/$ROS_DISTRO/share/nao_meshes/meshes/ ${SOURCE_ROOT}/src/nao_meshes/ +fi + ## UPDATE_SOURCE_ROOT=1 # TRUE # run on docker