Created attachment 187737 [details]
.shar file of comms/libsweep
This is a port of libsweep 1.3.0, part of Scanse Sweep LiDAR SDK.
I recently contributed to the official SDK repository to enable its build on FreeBSD; now I am trying to add this to ports tree.
Comment on attachment 187737 [details]
.shar file of comms/libsweep
># This is a shell archive. Save it in a file, remove anything before
># this line, and then unpack it by entering "sh file". Note, it may
># create directories; files and directories will be owned by you and
># have default permissions.
># This archive contains:
>echo c - libsweep
>mkdir -p libsweep > /dev/null 2>&1
>echo x - libsweep/Makefile
>sed 's/^X//' >libsweep/Makefile << 'b47cffe3636e985bd1bc6562ac9a9863'
>XCOMMENT= Low-level Scanse Sweep LiDAR library
>XNO_DEVICE_DESC= The library will generate dummy static point cloud
>echo x - libsweep/pkg-descr
>sed 's/^X//' >libsweep/pkg-descr << '92242883e02cf8d54f1827452e218f52'
>XThis is a port of libsweep, part of Scanse Sweep LiDAR SDK.
>XThis port will install libsweep with C99 header <sweep/sweep.h> and
>XC++11 header <sweep/sweep.hpp>. This port also installs sweep-ctl(1)
>Xwhich lets you to issue very basic commands to Sweep device.
>echo x - libsweep/pkg-plist
>sed 's/^X//' >libsweep/pkg-plist << 'c31f850d588a9083a142d4887a164efb'
>echo x - libsweep/distinfo
>sed 's/^X//' >libsweep/distinfo << 'eec312efd11245cf1fe23fca401fdee6'
>XTIMESTAMP = 1509816807
>XSHA256 (scanse-sweep-sdk-v1.3.0_GH0.tar.gz) = 30b51a9f68ec64684648b54e0d704da7e38a5a0f42a6bc965f3e33f4e3a80af0
>XSIZE (scanse-sweep-sdk-v1.3.0_GH0.tar.gz) = 101819
>echo c - libsweep/files
>mkdir -p libsweep/files > /dev/null 2>&1
>echo x - libsweep/files/patch-libsweep_man_sweep-ctl.1
>sed 's/^X//' >libsweep/files/patch-libsweep_man_sweep-ctl.1 << '4997432a116ac8576274871b58a79413'
>X--- libsweep/man/sweep-ctl.1.orig 2017-11-04 17:36:19 UTC
>X@@ -34,10 +34,10 @@ The device\[aq]s sample rate in Hz.
>X-$\ sweep\-ctl\ /dev/ttyUSB0\ get\ motor_speed
>X+$\ sweep\-ctl\ /dev/ttyU0\ get\ motor_speed
>X-$\ sweep\-ctl\ /dev/ttyUSB0\ set\ motor_speed\ 5
>X+$\ sweep\-ctl\ /dev/ttyU0\ set\ motor_speed\ 5
Created attachment 188264 [details]
Created attachment 188265 [details]
portlint -AC output
Created attachment 188266 [details]
poudriere testport logs of all supported releases
I didn't know this tool, but it's seems nice.
Did you plan to port everything related to this product?
I can't test in real condition, but it builds.
I created a review.
(In reply to lbartoletti from comment #5)
> Did you plan to port everything related to this product?
The rest of the SDK are language-specific bindings in Java, Node.js, and Python. They all require this libsweep.so for their operation. So, yeah, I can add other language bindings as separate ports that bases upon this very port.
> I can't test in real condition, but it builds.
I had to use this on my Raspberry Pi which runs 11.1-RELEASE, so I can assure you that this works. :)
Committed as misc/libsweep-lidar.
Thank you, Hyun, for your contribution!
Thank you, lbartoletti, for reminding about it!
A commit references this bug:
Date: Wed Mar 14 08:05:53 UTC 2018
New revision: 464468
New port: misc/libsweep-lidar: Low-level Scanse Sweep LiDAR library
The library to communicate with the Scanse Sweep LiDAR device
that is able to scan the space around it and build its point cloud
Submitted by: Hyun Hwang <email@example.com>
Differential Revision: https://reviews.freebsd.org/D14691