You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understood from tutorial 10 that:
I have a measurements from camera and sonar in a csv file and I want to create multiTargetMixtureTracker.
I use kalman predictor and updater and I set:
# 5. Data association componentsself.hypothesiser=PDAHypothesiser(
predictor=self.predictor,
updater=self.updater,
prob_detect=0.8
)
self.data_associator=JPDA(self.hypothesiser)
I set 2 initiators (because I have 2 different measurement models for the camera and the sonar), I choose the appropriate initiator base on the source of the detection (if there is more smooth way to handle detections from different measurement models I would like to hear too)
So I ran this tracker but then I got the following error:
---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
CellIn[7], line265259plotter.fig.show()
264if__name__=="__main__":
-->265main()
CellIn[7], line247, inmain()
244detections.add(det)
246# Process this time step-->247timestamp, track=tracker.process_step_by_step(detections, timestamp)
248detections_set.add(det)
249tracks.update(track)
CellIn[7], line184, inMultiSensorTracker.process_step_by_step(self, detections, timestamp)
180unassociated_detections.remove(hyp.measurement)
183self._tracks-=self.deleter.delete_tracks(self.tracks)
-->184self._tracks|=initiator.initiate(
185unassociated_detections, timestamp)
187returntimestamp, self.tracksFilec:\Users\RINAVE\AppData\Local\miniconda3\envs\rinav\Lib\site-packages\stonesoup\initiator\simple.py:217, inMultiMeasurementInitiator.initiate(self, detections, timestamp, **kwargs)
215fortrack, hypothesisinassociations.items():
216ifhypothesis:
-->217state_post=self.updater.update(hypothesis)
218track.append(state_post)
219associated_detections.add(hypothesis.measurement)
Filec:\Users\RINAVE\AppData\Local\miniconda3\envs\rinav\Lib\site-packages\stonesoup\updater\kalman.py:293, inKalmanUpdater.update(self, hypothesis, **kwargs)
272r"""The Kalman update method. Given a hypothesised association between 273 a predicted state or predicted measurement and an actual measurement, 274 calculate the posterior state. (...) 290 291 """292# Get the predicted state out of the hypothesis-->293predicted_state=hypothesis.prediction295# If there is no measurement prediction in the hypothesis then do the296# measurement prediction (and attach it back to the hypothesis).297ifhypothesis.measurement_predictionisNone:
298# Get the measurement model out of the measurement if it's there.299# If not, use the one native to the updater (which might still be300# none)AttributeError: 'MultipleHypothesis'objecthasnoattribute'prediction'
The problem is when in the initiator.initiate there is a problem for the kalman updater to do "update" because the hypothesis is multiple and not single. So how should I use the multiTargetMixtureTracker? is it need different initiator or updater? I didn't find information regarding this in the documentation.
I would like for any help and explanations about how to use stonesoup in a smart way.
Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I understood from tutorial 10 that:

I have a measurements from camera and sonar in a csv file and I want to create multiTargetMixtureTracker.
I use kalman predictor and updater and I set:
I set 2 initiators (because I have 2 different measurement models for the camera and the sonar), I choose the appropriate initiator base on the source of the detection (if there is more smooth way to handle detections from different measurement models I would like to hear too)
So I ran this tracker but then I got the following error:
The problem is when in the initiator.initiate there is a problem for the kalman updater to do "update" because the hypothesis is multiple and not single. So how should I use the multiTargetMixtureTracker? is it need different initiator or updater? I didn't find information regarding this in the documentation.
I would like for any help and explanations about how to use stonesoup in a smart way.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions