remove_all_generated_files.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 
00003 import os
00004 import commands
00005 
00006 
00007 def remove_all_generated_files ():
00008 
00009     package_dir_path = commands.getoutput('rospack find hrpsys_gazebo_tutorials')
00010     world_dir_path = package_dir_path + '/worlds/'
00011     launch_dir_path = package_dir_path + '/launch/'
00012 
00013     os.system("rm -rf $(svn st %s | grep ? | cut -f2- -d\" \")" % world_dir_path)
00014     os.system("rm -rf $(svn st %s | grep ? | cut -f2- -d\" \")" % launch_dir_path)
00015 
00016     os.system("rosrun hrpsys_gazebo_tutorials remove_all_added_models.py")
00017 
00018 if __name__ == '__main__':
00019     remove_all_generated_files()
00020 
00021 


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