Slamtec / rplidar_ros

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

How to change default IP of Rplidar S2E #121

Closed raviparmar11 closed 1 year ago

raviparmar11 commented 1 year ago

The S2E has a default IP address of 192.168.11.2 and a default port of 8089. This means that, in order to read data from the LIDAR using ROS on your local PC, your PC must also be on the same IP range as the LIDAR. This can be achieved by changing the IP address of your PC to be within the same IP range. For example, you can set your PC's IP address to 192.168.11.4.

So is there any way to change default ip address of lidar s2e.

deyouslamtec commented 1 year ago

You can refer to page 14 of the user manual of S2E. Configure the IP address through the "Command > IP Config" option in the frame_grabber program.

raviparmar11 commented 1 year ago

Yes got it ..But I am using Jetson nx and the above SDK is for Winows. In manual they has also said that "For SDK, see setLidarIpConf and reset." but I didn't find anything related setLidarIpConf for lunix SDK

deyouslamtec commented 1 year ago

setLidarIpConf is declared in line 80 of sl_lidar_driver_impl.h and defined in line 634 of sl_lidar_driver.cpp.

reset is declared in line 68 of sl_lidar_driver_impl.h and defined in line 273 of sl_lidar_driver.cpp.

raviparmar11 commented 1 year ago

Ok. But how to use it is there any manual for it.

deyouslamtec commented 1 year ago

You can refer to the SDK user manual. more information :https://www.slamtec.com/en/Support#rplidar-s2