Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how_to_build_and_install.md (build directory/permission/dependency issue) #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions doc/howto/how_to_build_and_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if you want to use python API, you need to install python and swig:
In the YDLidar SDK directory, run the following commands to compile the project:
```
git clone https://github.com/YDLIDAR/YDLidar-SDK.git
cd YDLidar-SDK/build
mkdir YDLidar-SDK/build && cd YDLidar-SDK/build
cmake ..
make
sudo make install
Expand Down Expand Up @@ -95,11 +95,16 @@ Three samples are provided in samples, which demonstrate how to configure YDLida

![](images/sequence.png)

### Ubuntu 18.04/16.04 /14.04 LTS
For Ubuntun 18.04/16.04/14.04 LTS, run the *tri_test* if connect with the Triangle LiDAR unit(s) or TOF LiDAR unit(s):
### Ubuntu 20.04/18.04/16.04/14.04 LTS
For Ubuntun 20.04/18.04/16.04/14.04 LTS, run the *tri_test* if connect with the Triangle LiDAR unit(s) or TOF LiDAR unit(s):
```
./tri_test
```
* If you have connection(binding) issue, try to set permission of USB port
```
sudo chmod 666 /dev/ttyUSB0
```

### Windows 7/10
After compiling the YDLidar SDK as shown in section 4.1.2, you can find `tri_test.exe` in the {YDLidar-SDK}\build\Debug or {YDLidar-SDK}\build\Release folder, respectively, which can be run directly.

Expand Down Expand Up @@ -155,6 +160,7 @@ python tof_test.py
# If it's a drawing
pip install numpy
pip install matplotlib
sudo apt-get install python-gi-cairo
python plot_tof_test.py
```
![](images/ydlidar_lidar_monitor.png)
Expand Down