Пример #1
0
        for point in range(len(x)):
            sdfFile.addRoadPoint([x[point], y[point], 0], road)
            #sdfFile.addRoadDebug([x[point], y[point], 0], road)

print ('|')
print ('|-----------------------------------')
print ('| Generating the SDF world file...')
sdfFile.writeToFile(args.outFile)

# if args.imageFile:
print ('| Generating Image File...')
print ('|-----------------------------------')
print ('|')
size = osmRoads.getMapSize()
#    args.imageFile = args.directory + args.imageFile
lanes.makeImage(size, 5, roadLaneSegments, centerLaneSegments, laneSegmentWidths, args.name + ".png")

print ('| Lat Center  = '+ str(osmRoads.getLat()))
print ('| Lon Center  = '+ str(osmRoads.getLon()))

if args.stage:
    stage = StageWorld([443, 700], [1300, 4800], [-45.12, 14.4334], [4.2,444.355])

    stage.createStageSetup(args.name)

#plt.show()

if TIMER:
    toc()

print ('|______________________________')
Пример #2
0
        #     lanes.showImage()

        for point in range(len(x)):
            sdfFile.addRoadPoint([x[point], y[point], 0], road)
            #sdfFile.addRoadDebug([x[point], y[point], 0], road)

print ('|')
print ('|-----------------------------------')
print ('| Generating the SDF world file...')
sdfFile.writeToFile(args.outFile)

# if args.imageFile:
print ('| Generating Image File...')
print ('|-----------------------------------')
print ('|')
size = osmRoads.getMapSize()
#    args.imageFile = args.directory + args.imageFile
lanes.makeImage(size, 5, roadLaneSegments, centerLaneSegments)

print ('| Lat Center  = '+ str(osmRoads.getLat()))
print ('| Lon Center  = '+ str(osmRoads.getLon()))


#plt.show()

if TIMER:
    toc()

print ('|______________________________')
print ('')
Пример #3
0
        for point in range(len(x)):
            sdfFile.addRoadPoint([x[point], y[point], 0], road)
            #sdfFile.addRoadDebug([x[point], y[point], 0], road)

print ('|')
print ('|-----------------------------------')
print ('| Generating the SDF world file...')
sdfFile.writeToFile(args.outFile)

# if args.imageFile:
print ('| Generating Image File...')
print ('|-----------------------------------')
print ('|')
size = osmRoads.getMapSize()
#    args.imageFile = args.directory + args.imageFile
lanes.makeImage(size, 5, roadLaneSegments, centerLaneSegments, laneSegmentWidths, args.name + ".png")

print ('| Lat Center  = '+ str(osmRoads.getLat()))
print ('| Lon Center  = '+ str(osmRoads.getLon()))

if args.stage:
    stage = StageWorld([443, 700], [1300, 4800], [-45.12, 14.4334], [4.2,444.355])

    stage.createStageSetup(args.name)

#plt.show()

if TIMER:
    toc()

print ('|______________________________')