| | |
| | | |
| | | long startTime = System.currentTimeMillis(); |
| | | |
| | | Resource codeMatrixResource = new ClassPathResource("codeMatrix.txt"); |
| | | Resource cdaMatrixResource = new ClassPathResource("cdaMatrix.txt"); |
| | | |
| | | File codeMatrixFile = codeMatrixResource.getFile(); |
| | | File cdaMatrixFile = cdaMatrixResource.getFile(); |
| | | |
| | | String codeMatrixPath = codeMatrixFile.getAbsolutePath(); |
| | | String cdaMatrixPath = cdaMatrixFile.getAbsolutePath(); |
| | | |
| | | Resource resource = new ClassPathResource("agv.py"); |
| | | File file = resource.getFile(); |
| | | ProcessBuilder processBuilder = new ProcessBuilder( |
| | | "python" |
| | | , file.getAbsolutePath() |
| | | , String.valueOf(avoidDistance) |
| | | , codeMatrixPath |
| | | , cdaMatrixPath |
| | | , redisProperties.getHost() |
| | | , redisProperties.getPassword() |
| | | , String.valueOf(redisProperties.getPort()) |