Fixes to LidarPlot2 to be used with Hokuyo so it can act as a Camera in the web interface
Integration of LidarPlot2 with existing templates/configs
Notes:
To set it up you need to configure the Ethernet port on the Pi by creating a file in /etc/interfaces.d. This is well-described by many online tutorials, and googling "f1tenth hokuyo" also brings up a lot of helpful info.
Also, unlike the RPLidar(2) parts, instead of returning a generator of individual measurements this part returns the entire scan at once. Thus in complete.py it is called lidar/dist_scan instead of lidar/dist_array.
lidar.py
to interface with HokuyoLidarPlot2
to be used with Hokuyo so it can act as aCamera
in the web interfaceLidarPlot2
with existing templates/configsNotes: To set it up you need to configure the Ethernet port on the Pi by creating a file in
/etc/interfaces.d
. This is well-described by many online tutorials, and googling "f1tenth hokuyo" also brings up a lot of helpful info.Also, unlike the RPLidar(2) parts, instead of returning a generator of individual measurements this part returns the entire scan at once. Thus in
complete.py
it is calledlidar/dist_scan
instead oflidar/dist_array
.Pictures: