123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- package com.fdkankan.scene.constant;
- import jdk.nashorn.internal.ir.LexicalContext;
- /**
- * Created by owen on 2020/12/31 0031 14:22
- */
- public class CmdConstant {
- /**
- * ossUtil上传目录
- * ./ossutil cp -r localfolder/ oss://examplebucket/desfolder/
- * opt/ossutil/ossutil64 cp -r /root/owen/720yun/vtour/ oss://oss-xiaoan/720yun_fd_manage/
- *
- */
- // public final static String OSSUTIL_UPLOAD_DIR = "/opt/ossutil/ossutil64 cp -r /mnt/720yun_fd_manage_data/@sceneCode oss://oss-xiaoan/720yun_fd_manage/@sceneCode";
- /**
- * 用脚本的好处会自动结束线程, java直接跑命令容易出问题
- * 调用oss上传目录脚本
- * bash /opt/ossutil/ossupload.sh @dir @ossDir
- * bash /opt/ossutil/ossupload.sh /mnt/720yun_fd_manage_data/fd720_1A4Tba8mA 720yun_fd_manage/fd720_1A4Tba8mA
- *
- * @uploadDir :服务器资源目录
- * @target oss目录名字
- * @mergeCode 合并的场景码
- */
- // public final static String OSSUTIL_UPLOAD_DIR = "bash /opt/ossutil/ossupload.sh /mnt/720yun_fd_manage_data/@sceneCode 720yun_fd_manage/@sceneCode";
- // public final static String OSSUTIL_UPLOAD_DIR_CHUNK = "bash /root/user/java/jar_run/ossupload.sh @uploadDir data/@sceneCode/data/chunk1/@target";
- // 2021-08-26 - chunk1 -> 改场景码
- public final static String OSSUTIL_UPLOAD_DIR_CHUNK = "bash /opt/ossutil/ossupload.sh @uploadDir @defaultFolder/@sceneCode/data/@mergeCode/@target";
- public final static String OSSUTIL_UPLOAD_DIR = "bash /opt/ossutil/ossupload.sh @uploadDir @target";
- public final static String OSSUTIL_RM_DIR = "bash /root/user/java/jar_run/ossrm.sh @target";
- public final static String MINIO_OSSUTIL_UPLOAD_DIR_CHUNK = "bash /opt/ossutil/minioupload.sh @uploadDir @defaultFolder/@sceneCode/data/@mergeCode/";
- // MINIO 上传文件夹命令
- public final static String MINIO_UTIL_UPLOAD_DIR = "bash /opt/ossutil/minioupload.sh @uploadDir/ @target";
- public final static String MINIO_UTIL_RM_DIR = "bash /opt/ossutil/miniorm.sh @target";
- /**
- * 2021-08-17
- * 剪切模型命令, 这个需要在nas共享目录, 测试服务器,跟算法服务器是分开的
- * bash /home/ubuntu/bin/PotreeConverter.sh /mnt/data/00001002/872819408496492544/74ee2a39e656_202108051135248650/results/laserData/laser.las
- * /mnt/data/00001002/872819408496492544/74ee2a39e656_202108051135248650/results/laserData/indoor_cut.las
- * /mnt/data/00001002/872819408496492544/74ee2a39e656_202108051135248650/results/laserData/cut_param.json
- * bash /home/ubuntu/bin/PotreeConverter.sh inPath outPath inCutParam;
- */
- public final static String CUT_MODEL = "bash /home/ubuntu/bin/PotreeConverter.sh @inPath @outPath @cutParam";
- /**
- * ossUtil下载目录
- *
- * @downloadDir oss需要下载的目录
- * @target 服务器存放位置(会把当前目录也下载)
- */
- public final static String OSSUTIL_DOWNLOAD_DIR = "bash /root/user/java/jar_run/ossdownload.sh @downloadDir @target";
- public final static String RM_Folder = "rm -rf @Folder";
- public final static String RM_Folder_WIN = "rmdir @Folder /s";
- public final static String MV_Folder = "mv -f @Folder @Target";
- public final static String MV_Folder_WIN = "move /y @Folder @Target";
- public final static String CP_Folder = "cp -r -f @Folder @Target";
- public final static String CP_Folder_WIN = "xcopy /y /s /f /h @Folder @Target";
- public final static String MK_LINK_DIR = "sudo ln -s /J @Target @Link";
- public final static String MK_LINK_DIR_WIN = "mklink /J @Link @Target";
- public final static String MK_LINK_FILE = "sudo ln @Target @Link";
- public final static String MK_LINK_FILE_WIN = "mklink /H @Link @Target";
- public final static String OBJ_TO_GLB = "obj2gltf @inPath @outPath";
- public final static String OBJ_TO_GLB_WIN = "objtoglb.exe @inPath @outPath";
- /**
- * zip merge_cut.zip merge_cut.las
- **/
- public final static String ZIP = "cd @path && zip -r @target @inPath";
- /**
- * 2021-09-23
- * 英达:多数据集模型剪切
- * bash /home/ubuntu/bin/PotreeConverter.sh "" xxx/xxx.las xxx/merge_cut_param.json"
- * 三个参数,合并裁剪的,第一个参数为空字符串"", 第二个是输出.las路径,第三个是merge_cut_param.json文件路径
- * outPath: 是输出.las路径
- * inPath: merge_cut_param.json文件路径
- */
- public final static String MERGE_CUT_MODEL = "bash /home/ubuntu/bin/PotreeConverter.sh cut @outPath @inPath";
- public final static String MERGE_CUT_MODEL_WIN = "PotreeConverter.bat cut @outPath @inPath";
- /**
- * 2022年3月26日15:58:37
- * 英达:点云文件坐标转换
- *
- * @param json文件路径 @inPath 输入las模型路径 @outPath 输出las模型路径
- */
- public final static String CONVERTER_ADD_GEO = "bash /home/ubuntu/bin/PotreeConverter.sh @param @inPath @outPath ";
- public final static String CONVERTER_ADD_GEO_WIN = "PotreeConverter.bat @param @inPath @outPath ";
- //生成模型的命令
- public static final String BUILD_MODEL_COMMAND = "bash /home/ubuntu/bin/Launcher.sh @inPath";
- public static final String BUILD_MODEL_COMMAND_WIN = "Launcher.bat @inPath";
- public static final String BUILD_3DTILES_MODEL_COMMAND_WIN = "Obj2Tiles.bat @inPath";
- //生成模型的命令
- public static final String KILL_BUILD_MODEL_COMMAND = "ps -ef | grep MainLoader.exe | grep -v grep | awk '{print $2}' | xargs kill -9";
- public static final String KILL_BUILD_MODEL_COMMAND_WIN = "taskkill /f /im MainLoader.exe";
- public static final String AUTH_LICENSE_WIN = "Launcher.bat @inPath";
- /**
- * 2021-09-24
- * 世超: 平面图切图
- * 需要参数:
- * 工作目录
- * data.json -> {"split_type":"SPLIT_V15","skybox_type":"SKYBOX_V5"}
- * extras
- * info.json
- * xxx.png
- * bash /home/ubuntu/bin/Launcher.sh ${工作路径}
- */
- public final static String TILED_MAP = "bash /home/ubuntu/bin/Laser-Launcher.sh @inPath";
- public final static String TILED_MAP_WIN = "Launcher.bat @inPath";
- /**
- * las to bin
- * bash PotreeConverter_webcloud_bin.sh /mnt/data/00001050/933817767755251712/00001050_202201202011578010_laserData/cloud_extras/point.las
- * /mnt/data/00001050/933817767755251712/00001050_202201202011578010_laserData/cloud_extras
- */
- public final static String LAS_TO_BIN = "bash /home/ubuntu/bin/PotreeConverter.sh @inPath @outPath ''";
- public final static String LAS_TO_BIN_WIN = "PotreeConverter.bat @inPath @outPath ''";
- /***
- * # 模型检查 check 路径 输出json {"check_result":"0","model_path":"add_geo.las"} 0/1 模型正确是1,模型不正确是0
- */
- public final static String CHECK_LASER = "bash /home/ubuntu/bin/PotreeConverter.sh check @inPath @outPath";
- public final static String CHECK_LASER_WIN = "PotreeConverter.bat check @inPath @outPath";
- public final static String OBJ2_TILES ="bash /home/ubuntu/bin/Obj2Tiles.sh @inPath";
- public final static String OBJ2_TILES_WIN ="Obj2Tiles.bat @inPath";
- }
|