implemented addObject in onlinePlannerController
Fixed addObject to use the onlinePlannerController addObject
implementation so that objects are added in the main thread