Component based design of a drug delivery capsule robot