Take a look at http://farmbot.org/. This is an open source robotic gardener that can be constructed in small spaces. And one can print the plastic parts or buy a complete kit for ~$3,900. Looks interesting. Rich