Thursday, October 17, 2013

The Job Process

Finished up the revisions to pathfinding. I've been thinking about how to get the robots to automatically pick up and finish jobs, and this is the process I'm going to use.

  1. Create job at location. Jobs have required resources and required labor.
  2. Find the nearest available resources and create a hauling job for each one.
  3. Find the nearest and most qualified robot to complete the job.
  4. Once all resources have been gathered, signal the robot to come complete the task. 

In general, jobs may depend on other jobs being completed. Most will require at least one hauling job to move something from one place to another. The only part of that process I'm still shaky on is finding the best robot for a given job. For example, how far away does a well qualified robot have to be before it's better to just pick a nearby under qualified robot?

No comments:

Post a Comment