1
2
3
4
5
6
7
8
9
10
11
12
13
14
| import lujing.Lunjingguihua;
|
| public class TestPlanner {
| public static void main(String[] args) {
| String polygon = "-3.74,1.88;-0.86,2.51;-0.32,0.12;1.15,-1.75;2.31,-7.15;1.56,-10.27;-0.45,-10.60;-1.73,-9.94;-3.61,0.51;-3.74,1.88";
| String obstacles = "";
| String widthMeters = "0.5";
| String mode = "parallel";
|
| String pathCoords = Lunjingguihua.generatePathFromStrings(polygon, obstacles, widthMeters, mode);
| System.out.println(pathCoords);
| System.out.println("Segments: " + Lunjingguihua.generatePathSegments(polygon, obstacles, widthMeters, mode).size());
| }
| }
|
|