Skip to content

When using matlab, when I call this function noiseModel.mEstimator.Cauchy matlab always comes up with a crash page #4

@xi-song

Description

@xi-song

Hi,sir! first of all,thank you very much for sharing the code. When I use it,I come into some troubles,would you mind explaining this to me? the troubles are as follows:

When using matlab, when I call this function noiseModel.mEstimator.Cauchy matlab always comes up with a crash page
The specific use is as follows: noiseModel.Robust.Create(noiseModel.mEstimator.Cauchy.Create(k), ...
noiseModel.Diagonal.Sigmas(([0.1; 0.1; 0.1]))));

I haven't called any other kernel functions under M estimation, but this one won't run, and there were some warnings then, too, just once, as follows


Warning: The following error was caught when executing the 'gtsam.noiseModel.mEstimator.Base' class destructor.
Error using gtsam_wrapper
Exception from gtsam.
equals expects 2 arguments, not 0

Error gtsam.noiseModel.mEstimator.Base/delete (line 24)
gtsam_wrapper(606, obj.ptr_gtsamnoiseModelmEstimatorBase);

Error gtsam.noiseModel.Robust.Create (line 59)
if length(varargin) == 2 && isa(varargin{1},'gtsam.noiseModel.mEstimator.Base') && isa(varargin{2},'gtsam.noiseModel.Base')

Error robust (line 68)
odometryNoiseModel = noiseModel.Robust.Create(noiseModel.mEstimator.Huber.Create(k), ...

Error statistical_analysi_and_plot (line 127)
[X2,Y2]=robust(1,0,0.2,2,Positions,GNSS);%feels like a good version now!

Location: gtsam.noiseModel/Robust/Create (line 59)
Location: robust (line 68)
Location: statistical_analysi_and_plot (line 127)
Warning: The following error was caught when executing the 'gtsam.noiseModel.mEstimator.Base' class destructor.
Wrong use of gtsam_wrapper
Exception from gtsam.
equals expects 2 arguments, not 0

Error gtsam.noiseModel.mEstimator.Base/delete (line 24)
gtsam_wrapper(606, obj.ptr_gtsamnoiseModelmEstimatorBase);

Error gtsam.noiseModel.Robust.Create (line 59)
if length(varargin) == 2 && isa(varargin{1},'gtsam.noiseModel.mEstimator.Base') && isa(varargin{2},'gtsam.noiseModel.Base')

Error robust (line 70)
gnssNoiseModel = noiseModel.Robust.Create(noiseModel.mEstimator.Huber.Create(k), ...

Regarding installation, I am using matlab on 64 bit windows 64 bit R2021b Clicked to install the VC_redist.x64.exe and wrap.exe you provided . The latter flashed for a while.

I hope to hear from you ! Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions