dddvision / functionalnavigation

Trajectory Optimization Manager for Multiple Algorithms and Sensors (TOMMAS)
3 stars 4 forks source link

Camera Sim failing to access all data in MiddleBury data set #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?----
1. Update to PointBasedMeasure 2.2.1a, older versions will not work with r496
2. set demoConfig to the following
     uri = 'matlab:MiddleburyData';
     dynamicModelName = 'Default';
     measureNames = {'PointBasedMeasure'};
     optimizerName = 'MatlabGA';   
3. run demo

What is the expected output? What do you see instead?----
When pair [2,6] is being evauluated the camera sim function getImage will fail 
an assertion check (6<=5,n<=nb) and return no data. This issue may be further 
up the class structure, probably in the MiddleburyData DataContainer.

Original issue reported on code.google.com by Fenelon.Patrick@gmail.com on 27 Oct 2010 at 9:25

GoogleCodeExporter commented 9 years ago
There is a bug on line 137 of PointBasedMeasure.m

for kb = (ka:nMax)+uint32(1)

This loop causes kb to exceed nMax, which means that it exceeds 
this.sensor.last(), resulting in an error.

Original comment by dddvis...@gmail.com on 28 Oct 2010 at 5:13