Slamtec / rplidar_ros

BSD 2-Clause "Simplified" License
485 stars 527 forks source link

Error, cannot retrieve rplidar health code: 80008000 #133

Open wsung1 opened 11 months ago

wsung1 commented 11 months ago

Hi, there, I'm using S2 model based on RPLIDAR ROS package with ROS melodic and Ubuntu 18.04. One unit works fine but multiple units throw an error: [ERROR] [1692239374.076535278]: Error, cannot retrieve rplidar health code: 80008000 when launching with, for example,

  <include ns="lidar0" file="$(find rplidar_ros)/launch/rplidar_s2.launch">
    <param name="serial_port" value="/dev/ttyUSB0"/>
  </include>
  <include ns="lidar1" file="$(find rplidar_ros)/launch/rplidar_s2.launch">
    <param name="serial_port" value="/dev/ttyUSB1"/>
  </include>

Error, cannot retrieve rplidar health code: 80008000 Right before the error occurs in the other unit, one unit says "RPLidar health status : OK." indicating that the first unit passes the health check but the following one fails. FYI, the health status is checked by https://github.com/Slamtec/rplidar_ros/blob/2f10ad5be867a6192fb28306cfc1307213a19850/src/node.cpp#L162C38-L162C44 As shown below, this error has been reported before but it was not sorted out properly. https://answers.ros.org/question/207222/how-to-connect-two-rplidars-on-one-computer/ Do you have any idea? Thanks for your interest.

deyouslamtec commented 6 months ago

try it. I tried it feasible

YHuniv15 commented 6 months ago

Thank you.

What .launch file are used for the Rplidar 10N and 10 NP ? https://fr.aliexpress.com/item/1005004178345980.html?gatewayAdapt=glo2fra This lidar is installed on this robot , but I get the error in scrren . https://www.roboworks.net/store/p/rosbot-pro

I used : for N10

  <node name="rplidarNode"          pkg="rplidar_ros"  type="rplidarNode" output="screen">
  <param name="serial_port"         type="string" value="/dev/ttyUSB0"/>
  <param name="serial_baudrate"     type="int"    value="230400"/>
  <param name="frame_id"            type="string" value="laser"/>
  <param name="inverted"            type="bool"   value="false"/>
  <param name="angle_compensate"    type="bool"   value="true"/>

for N10P :


  <node name="rplidarNode"          pkg="rplidar_ros"  type="rplidarNode" output="screen">
  <param name="serial_port"         type="string" value="/dev/ttyUSB0"/>
  <param name="serial_baudrate"     type="int"    value="256000"/>
  <param name="frame_id"            type="string" value="laser"/>
  <param name="inverted"            type="bool"   value="false"/>
  <param name="angle_compensate"    type="bool"   value="true"/>

Thanks again

deyouslamtec commented 6 months ago

N10/N10P is not our product, rplidar_ros does not adapt to this radar.You can consult the manufacturer.