tracking a target

My work is on path planning. Where a mobile robot should move from start and track a target in obstacle bounded environment. Target can be any thing. May be an antennae or some red coloured ball(if it can be detected through web cam).