Using a Direct Drive Wheel base as a Auto stroker?

I have a Direct drive wheel base and was wondering if it would be possible to use it as something like The Handy by making it oscillate back and forth according to a script with a stroker attached.

I know I’m probably reaching here but any help is appreciated

the tempestmax discord has other people who have built and or modified open source machines. It seems like a lot of work when compared to 2 servos, some 3d printed parts, and an esp32 that you can just flash.

It just depends on how much you value your time and how much better you think the outcome will be.