WindowBat实战

  • 自动拷贝文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
cls
cd ./bin

REM 打印当前文件夹中的dll名称
dir *.dll

for /r %%j in (*.dll) do (
REM 拷贝Release版的dll到指定目录
echo %%j | find "_d" || xcopy %%j E:path\Release\ /Y
REM 拷贝Debug版的dll到指定目录
echo %%j | find "_d" && xcopy %%j E:path\Debug\ /Y
)

PAUSE
  • 批量自动移动文件并自动建立同名文件夹
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
REM 首先遍历最外层的文件夹,
for /f %%i in ('"dir /ad/b/on *.*"') do (
echo "First Dir: %%~fi"
REM MKDIR OF DESTINATION
md E:\Destination\%%i
cd %%~fi
REM 获取到子文件夹之后再递归遍历子文件夹
for /f %%j in ('"dir /ad/b/on *.*"') do (
echo "Second Dir:%%~fj"
REM MKDIR OF DESTINATION
md E:\Destination\%%i\%%j
cd %%~fj
REM 拷贝每个文件到预定的路径中
for %%k in (*.las) do (
echo "Third Dir:%%~fk"
REM COPY EACH LAS FILE
xcopy %%k E:\Destination\%%i\%%j\ /E /D /R /Y
)
REM 返回到上层文件夹,继续后续的遍历
cd ..
)
REM 同理
cd ..
)
REM 脚本运行完之后不退出
pause

OSG中的坐标系

OSG中的坐标系和OpenGL中的坐标系

OSG中采用四元数表示旋转:osg::Quat(angle to rotate, rotate around axis);

///***
///Q quaternion * P quaternion means that first conduct a rotation P,Second conduct a rotation Q, means a fusion about two rotations with a multiplication operation ///***

The osg coordinate definition as left-hand coordinate which is right-front-up(x-y-z) and the OpenGL coordinate definition also as left-hand coordinate which is right-up-behind(x-y-z), z axis is pointer to outside the screen The OSG default viewport is along down direction, so heading is rotate to be equal to the y positive direction, rotate axis is x axis

FFMPEG-Usage

Usage

  Here, i'm trying to sequeeze a normal video to a n times faster. But, i found that there are many ways to relize this, such as

  • ffmpeg and adjust the speed while roamming, etc.
  • OpenCV requires being complied with ffmpeg, which i didn't have the condition and many video format(.mp4) is not well supported.

Installation

  • Under Linux
1
sudo apt install ffmpeg
  • Under Windows

Directly download the binary executable file from the official page. Move to the bin folder and run the ./ffmpeg in command line.

For example the "ffmpeg-master-latest-win64-gpl-shared" file.

Markdown初体验


  • 本文结合菜鸟教程 与个人实践完成 (仅用于博主个人经验记录)
    ## Markdown语言介绍
  • Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档。
  • Markdown 语言在 2004 由约翰·格鲁伯(英语:John Gruber)创建。
  • Markdown 编写的文档可以导出 HTML 、Word、图像、PDF、Epub 等多种格式的文档。
  • Markdown 编写的文档后缀为 .md, .markdown。
  • 可以编辑MarkDown的编辑器种类很丰富,如Typora, Notepad++, VSCode
    笔者目前使用的是比较常用的 Notepad++ 配合 MarkDownViewer++ 插件进行编辑的。 (博客导出为PDF有问题,存为HTML网页没问题,公式,图表功能不全)

Docker初体验


泡泡机器人SLAM与你一同成长

Docker简介

Docker 是一个开源的应用容器引擎,基于Go语言 并遵从Apache2.0协议开源。

Docker 可以让开发者打包他们的应用以及依赖包到一个轻量级、可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。

容器可以认为是一种虚拟环境,它完全使用沙箱机制,相互之间不会有任何接口(类似iPhone的app),更重要的是容器性能开销极低。

(我认为是一种管理虚拟环境的引擎,方便快速构建任何虚拟环境,而各个环境之间不会相互影响,并且支持快速移植和部署。)

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×