Skip to content

Commit

Permalink
(gen_hand_attached_hrp2_model.sh): Wait to generate depending models …
Browse files Browse the repository at this point in the history
…before build {robotname}_WH.urdf in connection with issue start-jsk#84. This workaround should be temporary.
  • Loading branch information
orikuma committed Oct 2, 2014
1 parent b58fec7 commit 407a109
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ ADDITIONAL_ROS_PACKAGE_PATH=$5
TMP_FILE=`echo ${INPUT_FILE} | sed "s/.urdf/_tmp.urdf/g"`
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$ADDITIONAL_ROS_PACKAGE_PATH

# wait until input files are generated
echo "wait to generate ${INPUT_FILE} and ${LAUNCH_FILE}"
while [ ! -e ${INPUT_FILE} -o ! -e ${LAUNCH_FILE} -o ! -e `rospack find hrpsys_ros_bridge_tutroials`/models/HRP3HAND_L.urdf -o ! -e `rospack find hrpsys_ros_bridge_tutroials`/models/HRP3HAND_R.urdf]
do
sleep 1
done

# make tmp file
cp ${INPUT_FILE} ${TMP_FILE}
Expand Down

0 comments on commit 407a109

Please sign in to comment.