Put task into task queue for prediction and visualization. Args: task (TaskInfo object): task object that contain the necessary information for action prediction. (e.g. frames)
(self, task)
| 252 | self.async_vis = async_vis |
| 253 | |
| 254 | def put(self, task): |
| 255 | """ |
| 256 | Put task into task queue for prediction and visualization. |
| 257 | Args: |
| 258 | task (TaskInfo object): task object that contain |
| 259 | the necessary information for action prediction. (e.g. frames) |
| 260 | """ |
| 261 | self.async_vis.get_indices_ls.append(task.id) |
| 262 | self.model.put(task) |
| 263 | |
| 264 | def get(self): |
| 265 | """ |