Raspberry pie 4B-ros-noetic- Connect Beiyang Lidar URG-04XL-UG0 1
Zhuo Yuan is the best?
give rise to
watch out for
1 likes 125 people to read
Today, I will install a ROS-noitec with raspberry pie. I'm going to use it and hokuyo lidarurg-04xl-ug01to learn SLAM, and run the gmapping algorithm first. Here I will record the driver and connection process of installing URG-04XL-UG0 1 on Ubuntu20.04, which is also a reference for the partners who are learning lidar.
First of all, about the failure of rosdep init initialization.
When ros is installed to the last step, you may find the following errors:
Error: Unable to download the default source list from the following location:
/ROS/ROS distro/master/rosdep/sources . list . d/20-default . list
The website may be closed.
Copy after login
I don't know the cause of the mistake, but I have found a solution.
1. Open the following rosdistro download address and download it locally. The default address is download.
/ros/rosdistro
2. Decompress, the terminal opens the folder, enters the directory rosdistro/rosdep, finds the file /sources.list.d, and opens it with gedit.
sudo gedit 20-default.list
Copy after login
Display as follows:
# List the operating system-specific list first.
Yaml file: //home/ file address/OSX-homebrew.yaml OSX.
# Universal
YAML file://home/file address/rosdep/base . YAML
YAML file://home/file address/python . YAML
YAML file://home/file address/ruby . YAML
GBP distribution://home/fileaddress/releases/fuerte.yamlfuerte.
# Newer distributions (Groovy, Hydro, ...) must no longer be listed, but get them from rosdistro index.yaml.
# If the default Download address is download, then the rosdistro file address is in it.
Copy after login
3. modify __init__. Use python version of py file.
Because python3 was downloaded when ros was installed, the files in python3 were modified.
sudo gedit/usr/lib/python 3/dist-packages/ROS distro/_ _ init _ _。 Paraguay
Copy after login
Similarly, replace the following path with the rosdistro path in the download.
DEFAULT _ INDEX _ URL = '/ROS/ROS distro/master/INDEX-v4 . YAML '
Copy after login
Execute again
Rosdep initialization
Copy after login
Generally no problem. If not, go to /etc to find ros to see if there is a 20-default.list file in it, or look in the search box, delete the redundant files, and repeat the initialization steps again. After initialization, ros can be used normally. As for the update step, I still can't update it, but I gave up without affecting the use.
Secondly, connect and display lidar URG-04XL-UG0 1 in rivz.
1. Download the driver ros-noetic-node.
Sudo installs ros-noetic-urg-node.
Copy after login
Enter the password and wait for the download to complete.
2. Connect the laser radar
I use USB connection, and the power supply is directly on the raspberry pie motherboard. Open the ros running driver, start the ros first, and then run the startup program:
source/opt/ROS/no etic/setup . bash
Roscorey
Copy after login
Open a new terminal:
source/opt/ROS/no etic/setup . bash
Roslunburg node urg node
Copy after login
Wait for the lidar to automatically find and connect. After the connection is completed, the bottom will display: streaming data.
3. Open rviz to display the scanning status of lidar.
source/opt/ROS/no etic/setup . bash
Roslan Wizz Wizz
Copy after login
After opening, set the parameters as follows:
(1) Click Add in the lower left corner of rviz to add LaserScan.
(2) Click the fixed box below the global option to change the parameters on the right to laser.
(3) Click on the theme below laser scanning to change it to/scan.
(4) Click on the pattern below laser scanning and change it to dot.
Then you can see the map generated by lidar scanning:
Ros2 can also connect the recording next time, and other operations will be recorded later.
Enter the futures name and know the futures trend in 3 seconds!
Free analysis of futures trends
advertisement
Raspberry Pie 4B installed ubuntu 18.04.4 and ROS and tested the lidar.
1 18 Download 0 comments.
202 1 1.6
Combining hokuyo's UST- 10LX lidar to build a map on turtlebot.
Read 0 comments 0 likes 3505
February 6, 2065 438+07
ROS lidar (Hokuyo-URG-04LX-UG0 1)
Read 0 comments 1 like.
202065438+1October 24th.
Error solved successfully: RPC failed; When using git clone command to clone files; Curl 18 transmission is closed, leaving unfinished read data.
984 Read 0 comments 1 like it.
September 2020 14
The whole process of running Mid-40 lidar with raspberry pie 4B
1683 Read 0 comments 0 likes it.
65438+2022123 October
Difficult disease (17)- the solution to the problem of direct communication between raspberry pie and lidar
1852 Read 0 comments 0 likes it.
202 1 1 1 15.
Aouita 1 1, 40-degree seat amplitude modulation of four VIP seats, always have your angle, and test drive immediately.
Oita
advertisement
Ubuntu 18.04 installing ro
1 12 Read 0 comments 0 likes it.
June 24(th), 2022
Raspberry Pie 4b is installed with Ubuntu20.04 and ROS, and mapped with lidar.
Read 14 comments 14 likes it.
20213 June
The data of distributed communication raspberry pie lidar can not be displayed normally in host RVIZ.
140 Read 0 comments 0 likes it.
July 24(th), 2022
Use python thread to read URG lidar and rotary encoder.
249 Read 0 comments 1 like it.
July 30, 1965 438+09
Raspberry pie+rosingo+urg _ node connected to Hokuyo Netport lidar.
Read 0 comments 0 likes 2594
20 18 may 12
Replacing the original radar of raspberry pie robot car with lance lidar
129 1 Read 4 comments 1 Like it.
65438+February 23, 2020
Raspberry Pie 4B is equipped with MAVROS and lidar.
1743 Read 0 comments 1 like it.
202165438+1October 26th
Collecting HOKUYO Lidar Data from Raspberry Pie
Read 3 comments 2 like 6748.
2065438+September 2, 2006
Ubuntu 14.04 error while installing indigo to extract python-rosdistro.
48 1 Read 0 Comments 0 Like it
2018165438+10/0/4
When ROS installs ubuntu 16.04, it is not necessary to go online scientifically to solve the initialization problem of sudo rosdep init.
258 Read 1 Comment 2 Like.
April 30(th), 2022
Raspberry Pie and Ross: Lidar YDLIDAR-X4 drives EAI.
9667 read 8 comments 9 like it.
20 18 12/3
Go to home page
See more popular content