Learning And Control For Biomedical Robotics With Application To Hydrocephalus