mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
initial comit, ported scout_sdk and added hunter support
This commit is contained in:
55
docs/misc/commands.md
Normal file
55
docs/misc/commands.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# Commands
|
||||
|
||||
## Create gif animation using "imagemagick"
|
||||
|
||||
```
|
||||
$ convert -delay 120 -loop 0 *.png animated.gif
|
||||
```
|
||||
|
||||
## Get statistics of the code base
|
||||
|
||||
```
|
||||
$ sudo apt install cloc
|
||||
$ cd ~/Workspace/librav/src
|
||||
$ cloc --exclude-dir=cmake,lcmtypes,third_party .
|
||||
```
|
||||
|
||||
## Create a pair of VSP’s
|
||||
|
||||
```
|
||||
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
|
||||
```
|
||||
|
||||
```
|
||||
$ cat nmea_test.txt > /dev/pts/6
|
||||
```
|
||||
|
||||
## git subtree
|
||||
|
||||
Adding the sub-project as a remote
|
||||
```
|
||||
$ git remote add -f [remote-name] [remote-url]
|
||||
$ git subtree add --prefix [sub-project-name] [remote-name] [branch-name] --squash
|
||||
```
|
||||
|
||||
Update the sub-project
|
||||
```
|
||||
$ git fetch [remote-name] [branch-name]
|
||||
$ git subtree pull --prefix [sub-project-name] [remote-name] [branch-name] --squash
|
||||
```
|
||||
|
||||
Push to remote
|
||||
```
|
||||
$ git subtree push --prefix=[sub-project-name] [remote-name] [branch-name]
|
||||
```
|
||||
|
||||
Firmware branch update
|
||||
```
|
||||
$ git fetch fw_origin pios_pixcar
|
||||
$ git subtree pull --prefix firmware fw_origin pios_pixcar --squash
|
||||
```
|
||||
|
||||
## Reference
|
||||
|
||||
* [Git subtree: the alternative to Git submodule](https://www.atlassian.com/blog/git/alternatives-to-git-submodule-git-subtree)
|
||||
* [Virtual serial port: socat](https://justcheckingonall.wordpress.com/2009/06/09/howto-vsp-socat/)
|
||||
Reference in New Issue
Block a user