add wait for detection
some additional checks for publishing perceived objects
remove debug message