Skip to content

Latest commit

 

History

History
executable file
·
54 lines (41 loc) · 1.67 KB

File metadata and controls

executable file
·
54 lines (41 loc) · 1.67 KB

01_how_to_connect_live_lidar

1.1 Launch file

start.{launch,py}              // support parameter configuration and launch rviz
start_with_config.{launch,py}  // launch use config.yaml and launch rviz

1.2 Connect to lidar using config.yaml

  1. Create a new YAML file or use the installed config.yaml file, and modify or input the necessary configurations as needed.
common:
  log_level: info                                     #Log level: info, warn, error
lidars:
  - lidar:
      frame_topic: /iv_points                         #Frame topic

      lidar_name: seyond                              #Lidar name
      lidar_ip: 172.168.1.10                          #Lidar ip
      port: 8010                                      #Lidar port
      udp_port: 8010                                  #Udp port, if < 0, use tcp

  - lidar:
      frame_topic: /iv_points1                        #Frame topic

      lidar_name: seyond1                             #Lidar name
      lidar_ip: 172.168.1.11                          #Lidar ip
      port: 8011                                      #Lidar port
      udp_port: 8011                                  #Udp port, if < 0, use tcp
  1. Start the Driver
// for ros
roslaunch seyond start_with_config.launch
roslaunch seyond start.launch config_path:=<config_file_path>

// for ros2
ros2 launch seyond start_with_config.py
ros2 launch seyond start.py config_path:=<config_file_path>

1.3 Start using command line parameters (supports only one lidar).

// for ros
roslaunch seyond start.launch lidar_ip:=172.168.1.10 udp_port:=8010
// for ros2
ros2 launch seyond start.py lidar_ip:=172.168.1.10 udp_port:=8010