M10P
13
Figure 6.2 sudo tcpdump -n -i eth3s0 Command Feedback
6.2
Software Operation Example
1)
Establish a workspace and build a compilation environment
mkdir -p ~/leishen_ws/src
Note:
The workspace can be named arbitrarily. (But the path of workspace
shall be in English only.) For example, “leishen_ws” can be changed to any
name.
2)
Download the LiDAR ROS driver
The ROS driver can also be obtained directly from our website or customer
service. Copy the obtained driver file to the newly created workspace “src”,
and decompress it.
3)
Compile and package
cd ~/leishen_ws
catkin_make
4)
Run the program
source devel/setup.bash
roslaunch lslidar_m10_decoder lslidar_m10.launch
Figure 6.3 ROS Program Running
Input starting instruction: rostopic pub -1 /lslidar_difop_switch
std_msgs/Int8 "data: 1"