Multi-granularity service composition in industrial cloud robotics