How to retrieve data from xv-11 lidar using rviz?
I want to work with my xv-11 lidar but I am a newbie in ros, rviz. I connected the lidar succesfully and can see surroundings, data from it. Now I want to do a simple system that if it detects objects closer than 1 meter it will light red led connected with arduino, if there is no object closer than 1 meter, green led will be on. How can I define my function for getting that data from rviz? Can you at least give me a roadmap.
I am using odroid xu4, lidar xv-11, ubuntu 18.04 with ros melodic.