Livox-SDK / livox_ros_driver

Livox device driver under ros, support Lidar Mid-40, Mid-70, Tele-15, Horizon, Avia.
Other
363 stars 203 forks source link

How to launch two devices #87

Closed russellyq closed 3 years ago

russellyq commented 3 years ago

Hi, Thanks for your great work

I am trying to launch two devices at same time.

I am using "roslaunch livox_ros_driver livox_lidar.launch multi_topic:="1" bd_list:="XX&XX""

However, it can only launch one of these two devices.

russellyq commented 3 years ago

To be clear, instead of using livox hub, are there any ways to launch two devices which are directly connected to laptop ?

Livox-SDK commented 3 years ago

"roslaunch livox_ros_driver livox_lidar.launch multi_topic:="1" bd_list:="XX&XX""

"multi_topic commandline parameter " is depreated,

add the broadcast code to livox_ros_driver/livox_ros_driver/config/livox_lidar_config.json file, for example:

{ "lidar_config": [ { "broadcast_code": "1PQDH5B00100041", "enable_connect": true, "return_mode": 0, "coordinate": 0, "imu_rate": 0, "extrinsic_parameter_source": 0, "enable_high_sensitivity": false }, { "broadcast_code": "0TFDG3U99101431", "enable_connect": true, "return_mode": 0, "coordinate": 0, "imu_rate": 0, "extrinsic_parameter_source": 0, "enable_high_sensitivity": false } ],

and then,use the following command : roslaunch livox_ros_driver livox_lidar.launch

russellyq commented 3 years ago

Thanks for your reply.

I changed the config file as follows:

"lidar_config": [
    {
        "broadcast_code": "3WEDH7600103381",
        "enable_connect": true,
        "enable_fan": true,
        "return_mode": 0,
        "coordinate": 0,
        "imu_rate": 0,
        "extrinsic_parameter_source": 0,
        "enable_high_sensitivity": false
    },
    {
        "broadcast_code": "1HDDH1200100801",
        "enable_connect": true,
        "enable_fan": true,
        "return_mode": 0,
        "coordinate": 0,
        "imu_rate": 0,
        "extrinsic_parameter_source": 0,
        "enable_high_sensitivity": false
    }
],

However, it still can only launch one of these two lidars.

@Livox-SDK

russellyq commented 3 years ago

Is it possible because of Ethernet port ?

One lidar converter is connected to the network port on PC and one lidar cable is converted to usb 3.0 and conects to PC.

Livox-SDK commented 3 years ago

Hi, russellyq Both lidars must be connected to your PC in the same loacal erea network! You can buy a network switch or network router.

russellyq commented 3 years ago

Thank you ! That works ! @Livox-SDK