Robots and DIY defense are here to stay. In the past month, Youtuber Excessive Overkill released a video detailing the third iteration of his aim assist airsoft project. The design may not be immediatley useful as a firearm platform, but the electronic systems could be integrated into some truly out-of-pocket designs.
The system uses black-and-white cameras, infrared lights and isolating the frame location and overall resolution to maximize effective frame rate for feedback. Assuming a retro-reflective surface and cameras to the sides of the barrel, there are adjustments that can be made in software to link to industrial motors. It actually uses stereoscopic calculation to figure out where the target is in three-dimensional space so that standard trajectory calculations can be processed.
Primarily made from machined aluminum and off-the-shelf industrial components, there is an aside in the video on some 3D printed designs for silicon molds that create metal-filled resin gears. This is a fairly advanced hobbyist mechatronics project but that doesn't mean its totally irrelevant to DIY defense.
It does not appear that any system that could host a fully functional semi-automatic fire control, reciprocation, and magazine subsystems would be man-portable, let alone considering the control and power systems, but it could work as a stationary turret. Outside of how hazardous it is to give a robot control over a firearm, autonomous and electronic firing control are legally dubious, to say the least. It is still great that such experiments are being done at all and that Youtube has not just kept it up, but also algorithmically distributed it to nearly a million viewers.