Go to the documentation of this file.00001
00002
00003 import sys
00004
00005 from xml.dom.minidom import parseString
00006
00007 with open(sys.argv[1]) as f:
00008 lines = f.readlines()
00009 text = '<dummy>%s</dummy>' % ('\n'.join(lines))
00010 root = parseString(text)
00011 classes = root.getElementsByTagName("class")
00012 counter = 0
00013 for klass in classes:
00014
00015 class_name = klass.getAttribute("type")
00016 if not class_name in ["jsk_pcl_ros::ImageRotateNodelet",
00017 "jsk_pcl_ros::MaskImageToDepthConsideredMaskImage",
00018 "jsk_pcl_ros::ColorizeRandomForest",
00019 "jsk_pcl_ros::Kinfu",
00020 "jsk_pcl_ros::ResizePointsPublisher",
00021 "jsk_pcl_ros::OrganizedEdgeDetector"]:
00022 print "%s instance_%d;" % (class_name, counter)
00023 counter = counter + 1
00024
00025