change_prismatic_joint_fixed.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 # prismatic joint is not simulated in gazebo 1.5
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 


hrpsys_gazebo_tutorials
Author(s): Yohei Kakiuchi
autogenerated on Tue Oct 7 2014 12:01:15