Robots are effectively utilized in various applications by using ambient assisted living techniquesfor improving people lifestyle. Especially, in healthcare centers, robots are played a vital role instead of using supporting staff. The healthcare application needs to process multiple tasksat one time, for that reason, multiple robots’ systems are designed to handle the tasks. The task must be dynamically allocated for each robot dynamically allocated for each robot for improving the performance of the robots. For achieving this goal, this paper introduces the bacterial Foraging Optimization building block distribution algorithm is used to allocate the work to robots heterogeneously. This algorithm allocates the resources and tasks to the robot for performing their process with a specific time and minimum computation complexity. Then the efficiency of the system is evaluated using experimental analysis and results are compared with existing methods.