livox_ros_driver2 icon indicating copy to clipboard operation
livox_ros_driver2 copied to clipboard

Unable to launch the driver (Init lds lidar fail!)

Open jaan1729 opened this issue 9 months ago • 0 comments

I configured my system ip to 192.168.1.111 and trying to run ros2 driver in docker but getting the following issue.

⚡ root  ros_ws  ✘  ros2 launch livox_ros_driver2 msg_HAP_launch.py 
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-05-16-21-22-05-883496-docker-desktop-4413
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [livox_ros_driver2_node-1]: process started with pid [4414]
[livox_ros_driver2_node-1] [INFO] [1715894525.916537002] [livox_lidar_publisher]: Livox Ros Driver2 Version: 1.0.0
[livox_ros_driver2_node-1] [INFO] [1715894525.916773042] [livox_lidar_publisher]: Data Source is raw lidar.
[livox_ros_driver2_node-1] [INFO] [1715894525.916783143] [livox_lidar_publisher]: Config file : /root/workspace/ros_ws/install/livox_ros_driver2/share/livox_ros_driver2/launch_ROS2/../config/HAP_config.json
[livox_ros_driver2_node-1] LdsLidar *GetInstance
[livox_ros_driver2_node-1] config lidar type: 8
[livox_ros_driver2_node-1] successfully parse base config, counts: 1
[livox_ros_driver2_node-1] bind failed
[livox_ros_driver2_node-1] Failed to init livox lidar sdk.
[livox_ros_driver2_node-1] [ERROR] [1715894525.918749262] [livox_lidar_publisher]: Init lds lidar fail!

Here's the config file I'm using.

  "lidar_summary_info" : {
    "lidar_type": 8
  },
  "HAP": {
    "lidar_net_info" : {
      "cmd_data_port": 56000,
      "push_msg_port": 0,
      "point_data_port": 57000,
      "imu_data_port": 58000,
      "log_data_port": 59000
    },
    "host_net_info" : {
      "cmd_data_ip" : "192.168.1.111",
      "cmd_data_port": 56000,
      "push_msg_ip": "",
      "push_msg_port": 0,
      "point_data_ip": "192.168.1.111",
      "point_data_port": 57000,
      "imu_data_ip" : "192.168.1.111",
      "imu_data_port": 58000,
      "log_data_ip" : "",
      "log_data_port": 59000
    }
  },
  "lidar_configs" : [
    {
      "ip" : "192.168.1.100",
      "pcl_data_type" : 1,
      "pattern_mode" : 0,
      "extrinsic_parameter" : {
        "roll": 0.0,
        "pitch": 0.0,
        "yaw": 0.0,
        "x": 0,
        "y": 0,
        "z": 0
      }
    }
  ]
}

Not sure if the Lidar is connected properly. I can't access any web ui when I used the lidar ip in the browser like other lidars.

Tried the following debugging approaches:

  1. getting ping from 192.168.1.100.

  2. Also tried Wireshark but it's also giving some errors. image

not an expert with Wireshark. But with some Google search, I realised that the Lidar is not sending any data on that port.

  1. I'm accessing the PC connected to Liar using Nomachine(remote control software) and I'm getting errors when launching LivoxViewer as well.

jaan1729 avatar May 16 '24 21:05 jaan1729