Skip to content

Commit

Permalink
Merge pull request #1847 from kochigami/update-pepper-cross-to-use-ro…
Browse files Browse the repository at this point in the history
…sdistro

[naoqieus/cross] use $ROS_DISTRO instead of melodic when installing pepper_meshes to allow us to use ROS noetic for build cross environment
  • Loading branch information
k-okada authored Aug 6, 2023
2 parents e59b800 + e273a11 commit d6bf03c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jsk_naoqi_robot/cross/build_user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ done

# force copy pepper_meshes
if [ ! -e ${SOURCE_ROOT}/src/pepper_meshes/meshes ]; then
if [ ! -e /opt/ros/melodic/share/pepper_meshes/meshes/ ]; then
if [ ! -e /opt/ros/$ROS_DISTRO/share/pepper_meshes/meshes/ ]; then
set +x
echo "ERROR: You need /opt/ros/melodic/share/pepper_meshes/meshes/ " 1>&2
echo "ERROR: run apt 'install ros-melodic-pepper-meshes'" 1>&2
echo "ERROR: You need /opt/ros/$ROS_DISTRO/share/pepper_meshes/meshes/ " 1>&2
echo "ERROR: run apt 'install ros-$ROS_DISTRO-pepper-meshes'" 1>&2
exit -1
fi
cp -r /opt/ros/melodic/share/pepper_meshes/meshes/ ${SOURCE_ROOT}/src/pepper_meshes/
cp -r /opt/ros/$ROS_DISTRO/share/pepper_meshes/meshes/ ${SOURCE_ROOT}/src/pepper_meshes/
fi

## UPDATE_SOURCE_ROOT=1 # TRUE
Expand Down

0 comments on commit d6bf03c

Please sign in to comment.