Meet the GamePRo: a robotic device that attaches to a 3DS console to perform tasks. It uses servo motors to press buttons on the device and has a webcam to detect changes on the console’s top screen. A bunch of programs are already available for Pokemon games.
This project is on Kickstarter at this time. You can find it here.