You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Humble version for ros2.
I installed rplidar in the sbc workspace through the command below.
sudo apt install ros-humble-rplidar-ros
In the foxy version, lidar worked well, but the error log appears as the operating time out error occurs, which I would have used by changing the version to humble.
I've tried changing the cable here and I've tried changing the built rate. (I'm currently using 256000.)
I gave chmod 666 and 777 and tried using lidar nodes.
But it all comes up with an operation timeout. How do I fix it?
Below is the rplidar node code.
`
import os
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
return LaunchDescription([
Node(
package='rplidar_ros',
executable='rplidar_composition',
output='screen',
parameters=[{
'serial_port': '/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-port0',
'frame_id': 'laser_frame',
'angle_compensate': True,
'scan_mode': 'Standard'
}]
)
])`
(my english bad, sorry) i have the same problem; my solution isn't in the rplidar_ros package. for me the problem is in the launch file to my package which use for launch my rplidar. in this package i have a rplidar_node.yaml this :
"/**:
rplidar_node:
ros__parameters:
angle_compensate: true
channel_type: serial
flip_x_axis: false
frame_id: laser_frame
inverted: false
scan_mode: ''
serial_baudrate: 256000
serial_port: /dev/ttyUSB0
topic_name: scan
use_sim_time: false
# True turns off lidar motor when scan topic is not subscribed to.
# False runs lidar motor constantly.
auto_standby: true"
but my code search the "rplidar_composition" so i change in this file "rplidar_node" by "rplidar_composition" and my code work.
i hope this comment help you; my package for launch my rplidar is here : https://github.com/iRobotEducation/create3_examples/tree/humble/create3_lidar_slam
the problem is so the node execution and this name.
I'm using the Humble version for ros2.
I installed rplidar in the sbc workspace through the command below.
In the foxy version, lidar worked well, but the error log appears as the operating time out error occurs, which I would have used by changing the version to humble.
I referred to it.
#63
#5
I've tried changing the cable here and I've tried changing the built rate. (I'm currently using 256000.)
I gave chmod 666 and 777 and tried using lidar nodes.
But it all comes up with an operation timeout. How do I fix it?
Below is the rplidar node code.
`
`[INFO] [1704785243.525071991] [rplidar_node]: RPLidar running on ROS2 package rplidar_ros. RPLIDAR SDK Version:2.0.0
[ERROR] [1704785247.587766150] [rplidar_node]: Error, operation time out. SL_RESULT_OPERATION_TIMEOUT!
[ros2run]: Process exited with failure 255
robot@robot-desktop:
/robot_ws$ ls -l /dev/ttyUSB*/robot_ws$ sudo chmod 666 /dev/ttyUSB0crw-rw-rw-+ 1 root dialout 188, 0 Jan 9 16:27 /dev/ttyUSB0
crw-rw----+ 1 root dialout 188, 1 Jan 9 16:28 /dev/ttyUSB1
robot@robot-desktop:
[sudo] password for robot:
robot@robot-desktop:~/robot_ws$ ros2 run rplidar_ros rplidar_composition --ros-args -p serial_port:=/dev/ttyUSB0 -p frame_id:=lidar_link -p angle_compensate:=true -p scan_mode:=Standard
[INFO] [1704785425.028944733] [rplidar_node]: RPLidar running on ROS2 package rplidar_ros. RPLIDAR SDK Version:2.0.0
[ERROR] [1704785429.084461004] [rplidar_node]: Error, operation time out. SL_RESULT_OPERATION_TIMEOUT!
[ros2run]: Process exited with failure 255
`
The text was updated successfully, but these errors were encountered: