Rplidar A1M8 connection on PIO pins #520
Replies: 4 comments 2 replies
-
hi,
but
fails to transform rplidar_compositiion node in rplidar_node |
Beta Was this translation helpful? Give feedback.
-
HI, |
Beta Was this translation helpful? Give feedback.
-
see my create3 wander around the house avoiding prohibited areas such as the indoor garden and possibly make friends with the robot vacuum cleaner. |
Beta Was this translation helpful? Give feedback.
-
Wonderful your robots! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you connecting to your Create 3?
Wi-Fi (ROS 2)
Computer(s) Model(s) and Operating System(s)
RaspberryPI 4B 8Go
Which version of ROS 2 is installed on your computer?
Humble
Which firmware version is installed on your robot?
H.2.3
Which RMW is your robot running?
FastRTPS
Does your robot have an assigned namespace? If so, please share.
/
Is the robot connected to a network? If so, what is the network type?
home network
Are there multiple Create 3 robots connected to your network?
No
Is multicast enabled?
None
What is the Adapter Board's USB/BLE Toggle currently switched to?
USB
Describe your question.
Hi,
The USB/UART adapter of my rplidar being damaged and given that the only supplier found RobotShop is in stock renewal, I fell back on the PIO connection described on https://github.com/berndporr/rplidar_rpi.
The example
sudo ./printdata > tt2.tsv
gnuplot> plot "tt2.tsv"
corrected to:
sudo ./printdata > tt2.tsv
gnuplot
set terminal jpeg
set output "output.jpg"
plot "tt2.tsv"
gives with output.jpg the image of a laser trace.
But I can't get the mapping proposed in create3_lidar to work.
The serial_port having changed I create a symbolic link:
ln -s /dev/ttyAMA0 /dev/ttyUSB0
then I run the launches
moi@pi4b-8go-u-22-04:~/create3_ws$ ros2 launch create3_lidar_slam rviz_launch.py
[INFO] [launch]: All log files can be found below /home/moi/.ros/log/2024-01-18-11-09-36-475551-pi4b-8go-u-22-04-4413
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [rviz2-1]: process started with pid [4414]
[rviz2-1] [INFO] [1705572580.075111606] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-1] [INFO] [1705572580.075437472] [rviz2]: OpenGl version: 4.5 (GLSL 4.5)
[rviz2-1] [INFO] [1705572582.503774911] [rviz2]: Stereo is NOT SUPPORTED
moi@pi4b-8go-u-22-04:~/create3_ws$ ros2 topic info --verbose /scan
Type: sensor_msgs/msg/LaserScan
Publisher count: 0
Subscription count: 2
Node name: slam_toolbox
Node namespace: /
Topic type: sensor_msgs/msg/LaserScan
Endpoint type: SUBSCRIPTION
GID: 01.0f.7d.2d.21.11.44.bf.02.00.00.00.00.00.22.04.00.00.00.00.00.00.00.00
QoS profile:
Reliability: BEST_EFFORT
History (Depth): UNKNOWN
Durability: VOLATILE
Lifespan: Infinite
Deadline: Infinite
Liveliness: AUTOMATIC
Liveliness lease duration: Infinite
Node name: rviz
Node namespace: /
Topic type: sensor_msgs/msg/LaserScan
Endpoint type: SUBSCRIPTION
GID: 01.0f.7d.2d.3e.11.b6.a4.01.00.00.00.00.00.29.04.00.00.00.00.00.00.00.00
QoS profile:
Reliability: RELIABLE
History (Depth): UNKNOWN
Durability: VOLATILE
Lifespan: Infinite
Deadline: Infinite
Liveliness: AUTOMATIC
Liveliness lease duration: Infinite
moi@pi4b-8go-u-22-04:~/create3_ws$
moi@pi4b-8go-u-22-04:~/create3_ws$ ros2 launch rplidar_ros view_rplidar_a1_launch.py
[INFO] [launch]: All log files can be found below /home/moi/.ros/log/2024-01-18-13-10-34-186673-pi4b-8go-u-22-04-4786
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [rplidar_node-1]: process started with pid [4787]
[INFO] [rviz2-2]: process started with pid [4789]
[rplidar_node-1] [INFO] [1705579834.858576144] [rplidar_node]: RPLidar running on ROS2 package rplidar_ros. RPLIDAR SDK Version:2.1.0
[rviz2-2] [INFO] [1705579838.237953699] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-2] [INFO] [1705579838.238655431] [rviz2]: OpenGl version: 4.5 (GLSL 4.5)
[rviz2-2] [INFO] [1705579840.767183752] [rviz2]: Stereo is NOT SUPPORTED
Beta Was this translation helpful? Give feedback.
All reactions