MCPcopy Create free account
hub / github.com/SAMMiCA/ChangeSim / ObjectLabeling

Function ObjectLabeling

script/utils/Object_Labeling.py:65–590  ·  view source on GitHub ↗
(client,map_id,name2idx)

Source from the content-addressed store, hash-verified

63 return seg_map_semantic_class, seg_map_change_class
64
65def ObjectLabeling(client,map_id,name2idx):
66 found = client.simSetSegmentationObjectID("[\w]*", name2idx['background']['index'], True)
67 print("set all object IDs to 0: %r" % (found))
68
69 found = client.simSetSegmentationObjectID("[\w]*column[\w]*", 1, True)
70 found = client.simSetSegmentationObjectID("[\w]*pillar[\w]*", 1, True)
71 found = client.simSetSegmentationObjectID("[\w]*pilar[\w]*", 1, True)
72 found = client.simSetSegmentationObjectID("[\w]*Pilar[\w]*", 1, True)
73 found = client.simSetSegmentationObjectID("[\w]*Pillar[\w]*", 1, True)
74
75 found = client.simSetSegmentationObjectID("[\w]*pipe[\w]*", 2, True)
76 found = client.simSetSegmentationObjectID("[\w]*tube[\w]*", 2, True)
77
78 found = client.simSetSegmentationObjectID("[\w]*wall[\w]*", 3, True)
79 found = client.simSetSegmentationObjectID("[\w]*tunnel[\w]*", 3, True)
80 found = client.simSetSegmentationObjectID("[\w]*Wall[\w]*", 3, True)
81
82 found = client.simSetSegmentationObjectID("[\w]*beam[\w]*", 4, True)
83
84 found = client.simSetSegmentationObjectID("[\w]*floor[\w]*", 5, True)
85 found = client.simSetSegmentationObjectID("[\w]*Floor[\w]*", 5, True)
86 found = client.simSetSegmentationObjectID("[\w]*slam[\w]*", 5, True)
87 found = client.simSetSegmentationObjectID("[\w]*ground[\w]*", 5, True)
88 found = client.simSetSegmentationObjectID("[\w]*road[\w]*", 5, True)
89 found = client.simSetSegmentationObjectID("[\w]*walk[\w]*", 5, True)
90 found = client.simSetSegmentationObjectID("[\w]*floor[\w]panel[\w]*", 5, True)
91
92 found = client.simSetSegmentationObjectID("[\w]*frame[\w]*", 6, True)
93 found = client.simSetSegmentationObjectID("[\w]*scafolding[\w]*", 6, True)
94 found = client.simSetSegmentationObjectID("[\w]*scaffolding[\w]*", 6, True)
95 found = client.simSetSegmentationObjectID("[\w]*scaffold[\w]*", 6, True)
96 found = client.simSetSegmentationObjectID("[\w]*form[\w]*work[\w]*", 6, True)
97 found = client.simSetSegmentationObjectID("[\w]*pole[\w]*", 6, True)
98 found = client.simSetSegmentationObjectID("[\w]*support[\w]*", 6, True)
99
100 found = client.simSetSegmentationObjectID("[\w]*fence[\w]*", 7, True)
101 found = client.simSetSegmentationObjectID("[\w]*fencing[\w]*", 7, True)
102 found = client.simSetSegmentationObjectID("[\w]*Fence[\w]*", 7, True)
103
104 found = client.simSetSegmentationObjectID("[\w]*wire[\w]*", 8, True)
105 found = client.simSetSegmentationObjectID("[\w]*wire[\w]*cylinder[\w]*", 8, True)
106
107 found = client.simSetSegmentationObjectID("[\w]*cable[\w]*", 9, True)
108
109 found = client.simSetSegmentationObjectID("[\w]*window[\w]*", 10, True)
110 found = client.simSetSegmentationObjectID("[\w]*glass[\w]*panel[\w]*", 10, True)
111 found = client.simSetSegmentationObjectID("[\w]*Window[\w]*", 10, True)
112
113 found = client.simSetSegmentationObjectID("[\w]*railing[\w]*", 11, True)
114
115 found = client.simSetSegmentationObjectID("[\w]*rail[\w]*", 12, True)
116
117 found = client.simSetSegmentationObjectID("[\w]*ceiling[\w]*", 13, True)
118 found = client.simSetSegmentationObjectID("[\w]*roof[\w]*", 13, True)
119 found = client.simSetSegmentationObjectID("[\w]*Roof[\w]*", 13, True)
120
121 found = client.simSetSegmentationObjectID("[\w]*stair[\w]*", 14, True)
122 found = client.simSetSegmentationObjectID("[\w]*Stairs[\w]*", 14, True)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected