fix:新增例程
This commit is contained in:
21
基础使用/e5.RflySim3D载具样式切换实验/code/LoadModelsByTxt.bat
Normal file
21
基础使用/e5.RflySim3D载具样式切换实验/code/LoadModelsByTxt.bat
Normal file
@@ -0,0 +1,21 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Run script as administrator
|
||||
REM %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
|
||||
|
||||
REM Set the path of the RflySim tools
|
||||
if not defined PSP_PATH (
|
||||
SET PSP_PATH=C:\PX4PSP
|
||||
SET PSP_PATH_LINUX=/mnt/c/PX4PSP
|
||||
)
|
||||
|
||||
REM UE4Path
|
||||
cd /d %PSP_PATH%\RflySim3D
|
||||
tasklist|find /i "RflySim3D.exe" || start %PSP_PATH%\Rflysim3D\RflySim3D.exe
|
||||
|
||||
if not defined PSP_PATH (
|
||||
SET PSP_PATH=D:\PX4PSP
|
||||
SET PSP_PATH_LINUX=/mnt/d/PX4PSP
|
||||
)
|
||||
cd /d %PSP_PATH%
|
||||
cmd.exe /k "echo Python3.8 environment has been set with openCV+pymavlink+numpy+pyulog etc. && echo You can use pip or pip3 command to install other libraries && echo Put your python scripts 'XXX.py' into the folder '%PSP_PATH%\RflySimAPIs\Python38Scripts' && echo Use the command: 'python XXX.py' to run the script with Python && echo For example, try entering 'python ImgCVShow.py' below to use OpenCV to read and show a image && echo You can also use pyulog (see https://github.com/PX4/pyulog) to convert PX4 log file && echo For example, try entering 'ulog2csv log.ulg' to convert ulg file to excel files for MATLAB && cd /d %PSP_PATH%\RflySimAPIs\Python38Scripts && SET PATH=%PSP_PATH%\Python38;%PSP_PATH%\Python38\Scripts;%PATH%"
|
||||
Reference in New Issue
Block a user