mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
removed irrlevant docs
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
# Setup CAN on Beaglebone Black
|
|
||||||
|
|
||||||
CAN/RS485 Cape: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.68b02e8d02l2uT&id=42637485181&_u=a4mg52ma183
|
|
||||||
|
|
||||||
* Install latest Debian image from offical site
|
|
||||||
* Build and install overlays
|
|
||||||
```
|
|
||||||
$ sudo apt install device-tree-compiler
|
|
||||||
$ git clone https://github.com/beagleboard/bb.org-overlays
|
|
||||||
$ cd ./bb.org-overlays/
|
|
||||||
$ ./install.sh
|
|
||||||
```
|
|
||||||
* Edit /boot/uEnv.txt
|
|
||||||
```
|
|
||||||
# 1. Add the following overlay
|
|
||||||
###Custom Cape
|
|
||||||
dtb_overlay=/lib/firmware/BB-CAN1-00A0.dtbo
|
|
||||||
|
|
||||||
# 2. Disable auto loading of virutal capes (uncomment the two lines)
|
|
||||||
disable_uboot_overlay_video=1
|
|
||||||
disable_uboot_overlay_audio=1
|
|
||||||
```
|
|
||||||
* Reboot the system
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
```
|
|
||||||
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu stretch main" > /etc/apt/sources.list.d/ros-latest.list'
|
|
||||||
$ wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
|
|
||||||
$ sudo apt-get update
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
$ sudo apt-get install -y python-pip python-setuptools python-yaml python-distribute python-docutils python-dateutil python-six
|
|
||||||
$ sudo pip install rosdep rosinstall_generator wstool rosinstall
|
|
||||||
$ sudo apt-get install -y \
|
|
||||||
libconsole-bridge-dev liblz4-dev checkinstall cmake \
|
|
||||||
python-empy python-nose libbz2-dev \
|
|
||||||
libboost-test-dev libboost-dev libboost-program-options-dev \
|
|
||||||
libboost-regex-dev libboost-signals-dev \
|
|
||||||
libtinyxml-dev libboost-filesystem-dev libxml2-dev \
|
|
||||||
libgtest-dev libpoco-dev
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
$ sudo rosdep init
|
|
||||||
$ rosdep update
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
$ rosinstall_generator ros_comm --rosdistro melodic --deps --tar > melodic-ros_comm.rosinstall
|
|
||||||
$ wstool init -j1 src melodic-ros_comm.rosinstall
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
$ # rosdep install --from-paths src --ignore-src --rosdistro melodic -y
|
|
||||||
$ sudo ./src/catkin/bin/catkin_make_isolated --install --install-space /opt/ros/melodic -DCMAKE_BUILD_TYPE=Release
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
$ source /opt/ros/melodic/setup.bash
|
|
||||||
```
|
|
||||||
|
|
||||||
Additional runtime dependencies:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ sudo apt install -y python-defusedxml python-netifaces
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654
|
|
||||||
```
|
|
||||||
|
|
||||||
Reference:
|
|
||||||
|
|
||||||
* [1] https://machinekoder.com/ros-with-debian-stretch-on-the-beaglebone-black-green-blue/
|
|
||||||
* [2] http://wiki.ros.org/melodic/Installation/Source
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,55 +0,0 @@
|
|||||||
# 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/)
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# Enable CAN on Jetson TX2
|
|
||||||
|
|
||||||
```
|
|
||||||
$ sudo modprobe can
|
|
||||||
$ sudo modprobe mttcan
|
|
||||||
$ sudo ip link set can0 type can bitrate 500000
|
|
||||||
$ sudo ip link set up can0
|
|
||||||
```
|
|
||||||
|
|
||||||
Reference:
|
|
||||||
|
|
||||||
* https://devtalk.nvidia.com/default/topic/1006762/jetson-tx2/how-can-i-use-can-bus-in-tx2-/post/5166583/#5166583
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
* Disable tests to keep minimal dependency by default
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
can1 131 [8] 00 00 00 00 00 00 E4 1E
|
|
||||||
can1 141 [8] 00 00 00 02 0E 00 E3 3D
|
|
||||||
can1 151 [8] 01 00 00 EF 00 3C E5 6B
|
|
||||||
can1 200 [8] 00 00 00 00 00 00 EA F4
|
|
||||||
can1 201 [8] 00 00 00 00 00 00 EA F5
|
|
||||||
can1 202 [8] 00 00 00 00 00 00 EA F6
|
|
||||||
can1 203 [8] 00 00 00 00 00 00 EA F7
|
|
||||||
Reference in New Issue
Block a user