Go to the documentation of this file.00001
00002
00003
00004 import os
00005 import commands
00006
00007
00008 def change_prismatic_joint_fixed ():
00009 print "Change prismatic joint to fixed joint included in static model"
00010 package_dir_path = commands.getoutput('rospack find hrpsys_gazebo_tutorials')
00011 model_dir_path = package_dir_path + '/environment_models/'
00012
00013 os.system("ls " + model_dir_path + '*static/model.urdf | xargs sed -i -e "s/prismatic/fixed/g"')
00014 print "Done"
00015
00016 if __name__ == '__main__':
00017 change_prismatic_joint_fixed()
00018
00019