常用命令

git检索:
stars:>9 in:name ORB_SLAM3 in:description YOLO dense language:C++

mkdir build && cd build && rm -rf * && cmake ../ && make -j6

递归删除目录:
find . -name build | xargs rm -rf

find . -name "*.txt" -exec vim {} \;

解压多个压缩文件:
for tar in *.tar.gz;  do tar xvf $tar; done

查看目录大小:
du -h –max-depth=1 *


#export SVGA_VGPU10=0
export LIBGL_ALWAYS_SOFTWARE=1

虚拟机磁盘压缩:
sudo vmware-toolbox-cmd disk list
sudo vmware-toolbox-cmd disk shrink /
清理Ubuntu内部缓存:
sudo apt clean
sudo journalctl --vacuum-time=3d


wget http://fishros.com/install -O fishros && bash fishros

vins调试:
rosrun --prefix 'gdb -ex run --args' vins vins_node /home/xx/catkin_ws/src/VINS-Fusion/config/euroc/euroc_stereo_config.yaml



账户名:lwwtju630
令牌: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


stars:10..29 (in:name ORB_SLAM3 OR in:description ORB_SLAM3) language:C++

sudo git clone -b v0.6 http://github.com/stevenlovegrove/Pangolin.git
sudo apt install -y libglew-dev

cmake -DCMAKE_INSTALL_PREFIX=/path/to/install  ../
list(APPEND CMAKE_PREFIX_PATH "/home/yolo/thirdpart/ceres-solver-2.1.0/build")
set(OpenCV_DIR "OpenCVConfig.cmake文件所在的路径")
find_package(OpenCV REQUIRED)
message("Found OpenCV in: ${OpenCV_INCLUDE_DIR}")
find_package(PCL REQUIRED
             PATHS /media/fy/Disk/download/pcl/pcl-1.8 # look here
             NO_DEFAULT_PATH)



cmake -D CMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -D CMAKE_INSTALL_PREFIX=/home/ice/thirdpart/opencv-4.2.0/install -D ENABLE_PRECOMPILED_HEADERS=OFF ..

mkdir install && mkdir build && cd install && pwd && cd ../build && cmake -D CMAKE_INSTALL_PREFIX=/home/ice/thirdpart/Pangolin-0.8/install ..

set(OpenCV_DIR "/home/ice/thirdpart/opencv-4.2.0/install/lib/cmake/opencv4")

posted @ 2023-09-18 02:28  dsfsadfdgd  阅读(21)  评论(0编辑  收藏  举报