Comments (9)
The latest git develop version of the example runs cleanly (even under Valgrind) when built in GCC.
What version of gtsam are you using?
from gtsam.
I just pulled down "develop" on Aug 08 2019.
The interesting thing is that ImuFactorExample seems to be working fine. I can even make the isam2 updater and use it. Trying to go the other way and try to use the LM updater in ImuFactorExample2 does not work, the same exception gets thrown.
from gtsam.
That's weird. Seems windows-related, maybe compiler that is more anal about RTTI. Could you investigate in a bit more detail what exactly the issue is?
from gtsam.
If I figure out the exact thing that breaks it, I'll let you know.
from gtsam.
from gtsam.
I have a question about intended behavior of some of this stuff.
Let's say you have two 6DOF locations 2 priors, 1 binary factor. A situation where all values and factors have the same type obviously works.
initial(0) gets a Pose3; priorFactor(0) gets a Pose3;
initial(1) gets a Pose3, priorFactor(1) gets a Pose3;
betweenFactor(0,1) gets a Pose3;
You can change the Pose3 to a Rot3 for all of them and that still works.
Should I be able to mix and match types on the factors? Say by changing the second prior to a Rot3. As in
initial(0) gets Pose3; priorFactor(0) gets Pose3
initial(1) gets Pose3; priorFactor(1) gets Rot3
betweenFactor(0,1) gets a Pose3;
Is this scenario supposed to work? Because it's throwing the same exception for me.
from gtsam.
No, a prior factor needs to match the type of the variable. It is possible to have factors that only provide information about part of the variable (e.g., AttitudeFactor is an example), but that is not a βpriorβ on the variable in that case.
Could it be that this issue is not a GTSAM bug but rather the result of not being quite familiar yet with GTSAM and factor graphs? if so, please close the issue, read more (e.g. 2017 booklet by myself and Michael Kaess), and ask for help on Google Group - not via the GitHub issue system.
from gtsam.
Thanks that's exactly what I suspected.
The original issue is that the ImuFactorExample2 is throwing an exception on update after the IMU factor is added, without any modifications to the code on my part. Hence I needed to double check that the exception thrown by my simple dummy problem was in fact supposed to be thrown.
from gtsam.
Closing due to inactivity.
from gtsam.
Related Issues (20)
- Cannot find the Jacobian of Pose3 HOT 1
- Requested to eliminate a key that is not in the factors HOT 1
- LocalizationExample impossible porting to Python
- Add ExpressionFactor to Python Wrapper. HOT 3
- TriangulationFactor Python HOT 1
- ROS2 Jazzy binaries not using GTSAM_USE_SYSTEM_EIGEN=ON HOT 7
- Directed factors HOT 3
- GeographicLib not found Cmake fix HOT 2
- localCoordinates gives incorret Jacobian matrix?
- installation failed HOT 1
- tbb/scalable_allocator.h: No such file or directory (RHEL) HOT 5
- Building error when compiling examples with boost-1.82.0 HOT 3
- Numpy 2.0 arrays cause segfaults in many GTSAM constructors HOT 3
- Unary Factor Usage Error
- Optmization Failed by using Unary Factor HOT 2
- Modernize GTSAM containers HOT 4
- Failed to import after compiling with build type `Timing`
- Add "point" method to Python realization of SmartProjectionPose3Factor HOT 2
- Convergence analysis of factor graph HOT 1
- ROS2 Lookup error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtsam.