From 022170f535f9b294e3597e2fac820c3b124abe32 Mon Sep 17 00:00:00 2001
From: wu_xinjun <bent20140204@outlook.com>
Date: 星期三, 23 三月 2022 17:37:52 +0800
Subject: [PATCH] add lfs file

---
 scripts_launch/udp_get.bat          |    2 
 .gitignore                          |    3 +
 env/SettingEnv.bat                  |   16 +++++--
 scripts_launch/TEST_startClient.bat |    2 
 src/protos/compile.bat              |    2 
 .gitattributes                      |    1 
 scripts_launch/TEST_SlamAuto.bat    |    2 
 scripts_launch/TEST_udp_get.bat     |    2 
 scripts_launch/startClient.bat      |    2 
 env/JustDoubleClickMe.bat           |    2 
 env/aerial.tar.gz                   |    3 +
 scripts_launch/TEST_Slam.bat        |    2 
 scripts_launch/TEST_udp2ply.bat     |    2 
 scripts_launch/TEST_ply_show.bat    |    2 
 scripts_launch/bin2ply.bat          |    2 
 scripts_launch/TEST_bin2ply.bat     |    2 
 scripts_launch/TEST_startServer.bat |    2 
 scripts_launch/ply_show.bat         |    2 
 scripts_launch/udp2bin.bat          |    2 
 scripts_launch/startServer.bat      |    2 
 env/ExportEnv.bat                   |    4 +-
 scripts_launch/udp2ply.bat          |    2 
 scripts_launch/TEST_udp2bin.bat     |    2 
 23 files changed, 37 insertions(+), 26 deletions(-)

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..f087b42
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.tar.gz filter=lfs diff=lfs merge=lfs -text
diff --git a/.gitignore b/.gitignore
index 48ac82d..d05e1c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,7 +6,6 @@
 
 # env
 env/aerial_deploy
-env/*.gz
 
 # demodata
 src/microwave/demo/saveUdPData/
@@ -26,3 +25,5 @@
 *.log
 *.ply
 
+test/
+
diff --git a/env/ExportEnv.bat b/env/ExportEnv.bat
index 9956ec6..81d53dc 100644
--- a/env/ExportEnv.bat
+++ b/env/ExportEnv.bat
@@ -3,9 +3,9 @@
 @REM change to the filepath
 cd %~dp0
 echo change to path: %cd%
-set currentenv=%cd%/aerial_deploy/
+@REM set currentenv=%cd%/aerial_deploy/
 
 echo Exporting env ...
-conda pack  -p %currentenv% -o aerial.tar.gz -f
+conda pack -n aerial_deploy -o aerial.tar.gz -f --compress-level 9
 
 echo Done!
diff --git a/env/JustDoubleClickMe.bat b/env/JustDoubleClickMe.bat
index 3fa2128..b8dfd94 100644
--- a/env/JustDoubleClickMe.bat
+++ b/env/JustDoubleClickMe.bat
@@ -6,7 +6,7 @@
 echo setting done!
 echo ========== Testing Env ==============
 echo test it with hello word...
-set aerialpython=%cd%/aerial_deploy/python.exe
+set aerialpython=%cd%/../../aerial_deploy/python.exe
 %aerialpython% -c "import cv2, pika, flask, pika; print('hello world!')"
 echo =========== ALL DONE ================
 
diff --git a/env/SettingEnv.bat b/env/SettingEnv.bat
index c6640ae..c125f84 100644
--- a/env/SettingEnv.bat
+++ b/env/SettingEnv.bat
@@ -2,16 +2,22 @@
 
 @REM change to the filepath
 cd %~dp0
-echo change to path: %cd%
-if exist aerial_deploy (
+@REM echo change to path: %cd%
+if exist ../../aerial_deploy (
     echo the folder aerial_deploy is exited, removing it ...
-    rmdir /S /Q aerial_deploy
+    rmdir /S /Q "../../aerial_deploy"
     echo remove done!
 ) 
 
-mkdir aerial_deploy
+cd .. 
+git lfs install
+git lfs pull
+
+cd %~dp0
+mkdir "../../aerial_deploy"
+
 echo setting the env ...
-tar -xzf ./aerial.tar.gz -C %cd%/aerial_deploy
+tar -xzf "./aerial.tar.gz" -C "../../aerial_deploy"
 echo ALL DONE!
 
 
diff --git a/env/aerial.tar.gz b/env/aerial.tar.gz
new file mode 100644
index 0000000..e434c0b
--- /dev/null
+++ b/env/aerial.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9d87ffe468cb3562cc9268f1bd739341ee812eeebeb15b41b05eb2e73e855414
+size 252553861
diff --git a/scripts_launch/TEST_Slam.bat b/scripts_launch/TEST_Slam.bat
index 127ce05..9f8fb6f 100644
--- a/scripts_launch/TEST_Slam.bat
+++ b/scripts_launch/TEST_Slam.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_SlamAuto.bat b/scripts_launch/TEST_SlamAuto.bat
index 5ba9907..f0786a9 100644
--- a/scripts_launch/TEST_SlamAuto.bat
+++ b/scripts_launch/TEST_SlamAuto.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_bin2ply.bat b/scripts_launch/TEST_bin2ply.bat
index 524c9f9..6cca107 100644
--- a/scripts_launch/TEST_bin2ply.bat
+++ b/scripts_launch/TEST_bin2ply.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_ply_show.bat b/scripts_launch/TEST_ply_show.bat
index 3c45306..3415e5c 100644
--- a/scripts_launch/TEST_ply_show.bat
+++ b/scripts_launch/TEST_ply_show.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_startClient.bat b/scripts_launch/TEST_startClient.bat
index a2e41cc..cde57ae 100644
--- a/scripts_launch/TEST_startClient.bat
+++ b/scripts_launch/TEST_startClient.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_startServer.bat b/scripts_launch/TEST_startServer.bat
index 2038d8c..fbca5f7 100644
--- a/scripts_launch/TEST_startServer.bat
+++ b/scripts_launch/TEST_startServer.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_udp2bin.bat b/scripts_launch/TEST_udp2bin.bat
index ee9e31e..feafb43 100644
--- a/scripts_launch/TEST_udp2bin.bat
+++ b/scripts_launch/TEST_udp2bin.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_udp2ply.bat b/scripts_launch/TEST_udp2ply.bat
index ffb5eed..e18a036 100644
--- a/scripts_launch/TEST_udp2ply.bat
+++ b/scripts_launch/TEST_udp2ply.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/TEST_udp_get.bat b/scripts_launch/TEST_udp_get.bat
index 5ad3d82..5c6897b 100644
--- a/scripts_launch/TEST_udp_get.bat
+++ b/scripts_launch/TEST_udp_get.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/bin2ply.bat b/scripts_launch/bin2ply.bat
index e75bddd..2432a97 100644
--- a/scripts_launch/bin2ply.bat
+++ b/scripts_launch/bin2ply.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/ply_show.bat b/scripts_launch/ply_show.bat
index f7ef8af..a51f579 100644
--- a/scripts_launch/ply_show.bat
+++ b/scripts_launch/ply_show.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/startClient.bat b/scripts_launch/startClient.bat
index eb4e5ea..53345d6 100644
--- a/scripts_launch/startClient.bat
+++ b/scripts_launch/startClient.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/startServer.bat b/scripts_launch/startServer.bat
index 070f7b3..c93b201 100644
--- a/scripts_launch/startServer.bat
+++ b/scripts_launch/startServer.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/udp2bin.bat b/scripts_launch/udp2bin.bat
index 06c3894..c9f37b9 100644
--- a/scripts_launch/udp2bin.bat
+++ b/scripts_launch/udp2bin.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/udp2ply.bat b/scripts_launch/udp2ply.bat
index 9b0cfb1..b28b3cd 100644
--- a/scripts_launch/udp2ply.bat
+++ b/scripts_launch/udp2ply.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/scripts_launch/udp_get.bat b/scripts_launch/udp_get.bat
index 1860e9f..1c27f14 100644
--- a/scripts_launch/udp_get.bat
+++ b/scripts_launch/udp_get.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 cd ..
 
-set aerialpython=%cd%/env/aerial_deploy/python.exe
+set aerialpython=%cd%/../aerial_deploy/python.exe
 set envsetting=%cd%/env/SettingEnv.bat
 
 @REM Setting the env
diff --git a/src/protos/compile.bat b/src/protos/compile.bat
index 530cd7a..bbdbfd3 100644
--- a/src/protos/compile.bat
+++ b/src/protos/compile.bat
@@ -4,7 +4,7 @@
 cd %~dp0
 echo change to path: %cd%
 
-set protoc=%cd%/../../env/aerial_deploy/Library/bin/protoc.exe
+set protoc=%cd%/../../../aerial_deploy/Library/bin/protoc.exe
 
 %protoc% aerial.proto --python_out=%cd%
 

--
Gitblit v1.9.1