(mapname,client)
| 24 | } |
| 25 | |
| 26 | def LabelSetting(mapname,client): |
| 27 | if mapname=="bunker": #jmpark |
| 28 | found = client.simSetSegmentationObjectID("[\w]*", 0, True) |
| 29 | print("set all object IDs to 0: %r" % (found)) |
| 30 | found = client.simSetSegmentationObjectID("floor[\w]*", 1, True) # 바닥 |
| 31 | found = client.simSetSegmentationObjectID("plate[\w]*", 1, True) |
| 32 | print("set all ground object IDs to 0: %r" % (found)) |
| 33 | found = client.simSetSegmentationObjectID("platform[\w]*", 2, True) # |
| 34 | found = client.simSetSegmentationObjectID("box[\w]*", 3, True) |
| 35 | found = client.simSetSegmentationObjectID("barel[\w]*", 4, True) |
| 36 | found = client.simSetSegmentationObjectID("wires[\w]*", 5, True) # cable |
| 37 | found = client.simSetSegmentationObjectID("wire[\w]*", 5, True) |
| 38 | found = client.simSetSegmentationObjectID("hose[\w]*", 5, True) |
| 39 | found = client.simSetSegmentationObjectID("door[\w]*", 6, True) # 문 |
| 40 | found = client.simSetSegmentationObjectID("Door[\w]*", 6, True) |
| 41 | found = client.simSetSegmentationObjectID("wall[\w]*", 7, True) # 벽 |
| 42 | found = client.simSetSegmentationObjectID("tunnel[\w]*", 7, True) |
| 43 | found = client.simSetSegmentationObjectID("ceiling[\w]*", 8, True) # 천장 |
| 44 | # found = client.simSetSegmentationObjectID("plate[\w]*", 8, True) |
| 45 | found = client.simSetSegmentationObjectID("column[\w]*", 9, True) # 기둥 |
| 46 | found = client.simSetSegmentationObjectID("pipe[\w]*", 10, True) # 파이프 |
| 47 | found = client.simSetSegmentationObjectID("cornice[\w]*", 7, True) # 벽 |
| 48 | found = client.simSetSegmentationObjectID("plinth[\w]*", 7, True) # 벽 |
| 49 | found = client.simSetSegmentationObjectID("electrical[\w]*", 11, True) # 전자기기( electric box fuse box) |
| 50 | found = client.simSetSegmentationObjectID("lamp[\w]*", 12, True) # 램프 |
| 51 | found = client.simSetSegmentationObjectID("rail[\w]*", 13, True) # 레일 |
| 52 | found = client.simSetSegmentationObjectID("crane_crane[\w]*", 13, True) |
| 53 | found = client.simSetSegmentationObjectID("crane_circle[\w]*", 13, True) |
| 54 | found = client.simSetSegmentationObjectID("cylinder[\w]*", 14, True) # 긴 통 가스통 |
| 55 | |
| 56 | elif mapname == "0002": #jhjang |
| 57 | found = client.simSetSegmentationObjectID("[\w]*", 0, True) |
| 58 | print("set all object IDs to 0: %r" % (found)) |
| 59 | found = client.simSetSegmentationObjectID("floor[\w]*", 1, True) # 바닥 |
| 60 | found = client.simSetSegmentationObjectID("plate[\w]*", 1, True) |
| 61 | print("set all ground object IDs to 0: %r" % (found)) |
| 62 | found = client.simSetSegmentationObjectID("platform[\w]*", 2, True) # |
| 63 | |
| 64 | found = client.simSetSegmentationObjectID("box[\w]*", 3, True) |
| 65 | found = client.simSetSegmentationObjectID("SM_wood_box[\w]*", 3, True) |
| 66 | |
| 67 | found = client.simSetSegmentationObjectID("barel[\w]*", 4, True) |
| 68 | |
| 69 | found = client.simSetSegmentationObjectID("SM_Cable_Triple_Str_a[\w]*", 5, True) # cable |
| 70 | found = client.simSetSegmentationObjectID("wire[\w]*", 5, True) |
| 71 | found = client.simSetSegmentationObjectID("hose[\w]*", 5, True) |
| 72 | |
| 73 | found = client.simSetSegmentationObjectID("door[\w]*", 6, True) # 문 |
| 74 | found = client.simSetSegmentationObjectID("SM_Single_Door[\w]*", 6, True) # 문 |
| 75 | found = client.simSetSegmentationObjectID("Door[\w]*", 6, True) |
| 76 | |
| 77 | found = client.simSetSegmentationObjectID("SM_TunnelBlock[\w]*", 7, True) # 벽 |
| 78 | found = client.simSetSegmentationObjectID("SM_DemoRoomBackWall[\w]*", 7, True) |
| 79 | found = client.simSetSegmentationObjectID("tunnel[\w]*", 7, True) |
| 80 | found = client.simSetSegmentationObjectID("cornice[\w]*", 7, True) # 벽 |
| 81 | found = client.simSetSegmentationObjectID("plinth[\w]*", 7, True) # 벽 |
| 82 | found = client.simSetSegmentationObjectID("BP_Tunnel[\w]*", 7, True) # 벽 |
| 83 |
nothing calls this directly
no outgoing calls
no test coverage detected