Hello all,
I'm trying to convert GIS data (Shape file - ArcGIS) to RoboCup-Rescue data.
But after converted the simulator can not run with these data. Therefore I
try to testing with a very simple data:
Please the the simple map: [ simplemap.GIF ]
But the simulator can not run with this data, can anyone help me to find the
error?
Below is my code:
public void testCase13(){
tools.MapGenerator generator = new tools.MapGenerator();
int k = 10000;
generator.addRoad(10*k, 70*k, 70*k, 70*k);
generator.addRoad(10*k, 50*k, 70*k, 50*k);
generator.addRoad(10*k, 30*k, 70*k, 30*k);
generator.addRoad(70*k, 70*k, 70*k, 50*k);
generator.addRoad(70*k, 50*k, 70*k, 30*k);
generator.addRoad(70*k, 10*k, 70*k, 30*k);
generator.addBuilding(50*k, 10*k, 50*k, 20*k, 60*k, 10*k, 60*k,
20*k);
System.out.println("Node ...");
makeNodeBin = new MakeNodeBin();
makeNodeBin.setNodeList(generator.getNodeList());
System.out.println("Road ...");
makeRoadBin = new MakeRoadBin();
makeRoadBin.setRoadList(generator.getRoadList());
System.out.print("Make Record Data");
makeNodeBin.MakeRecord(makeRoadBin.getRoadList(),
makeRoadBin.getNumberOfRoad());
System.out.println("Writing node.bin ...");
makeNodeBin.WriteNodeBin(path_node_bin);
System.out.println("Writing road.bin ...");
makeRoadBin.WriteRoadBin(path_road_bin);
System.out.println("Building ...");
makeBuildingBin = new MakeBuildingBin();
makeBuildingBin.setBuildingList(generator.getBuildingList());
makeBuildingBin.writeASetBuildingBin(path_building_bin);
System.out.println("All done!");
}
MapGenerator [ please see ] MapGenerator.java
makeNodeBin [ please see ] MakeBuildingBin.java
makeRoadBin [ please see ] MakeRoadBin.java
makeBuildingBin [ please see ] MakeBuildingBin.java
other files: Building.java, Node.java, Road.java
the resultat: building.bin, node.bin, road.bin
(Please see all in the attached file)
Ngo Van Luyen
_______________________________________________
robocup-rescue-s mailing list
robocup-rescue-s_at_cc.gatech.edu
https://lists.cc.gatech.edu/mailman/listinfo/robocup-rescue-s
This archive was generated by hypermail 2.2.0 : Thu 12 Jul 2007 - 11:44:55 GMT