New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to add vertex? #575
Comments
Can you please provide a cpp with the full example. |
Hello, Rainer. The code is simply a copy of the main part in my project. Header files in pose.h.
The pose.cpp file:
The main.cpp:
BTW, the g2o I am using is a version of 2016. |
Tried using release version of 20170730, failed as well. |
or this
|
@RainerKuemmerle Hi, Rainer. Can you please give me some help about this? Am I using it in a wrong way? I am not very good at C++. |
I added a branch based on 20170730 which contains your example. Works with GCC on Ubuntu. I cannot test with older MSVC on Windows. CI is using MSVC 2019.
|
Oh, that s so touched. Thank you very much, Rainer. Anyway, I come to tell it works on VS2013 as soon as compiling it in Debug mode finished. I will try in my project. |
Hi, @RainerKuemmerle. After doing test many times, it still fails to get a normal output. And finally, I create a new independent project without any other library. The code is still playground with which g2o and eigen3 (the same one for compiling g2o) are used as 3rd libraries. Then the result is still a bizarre number but an error of 'Access violation executing location' occurs at return 0. There is no this error while running the playground example in g2o. Do you have any idea about this? |
One reason can be different compiler flags causing different behavior. In particular when march=native is defined for g2o but not on the project using g2o.
… Am 03.03.2022 um 09:00 schrieb aopaw ***@***.***>:
Hi, @RainerKuemmerle. After doing test many times, it still fails to get a normal output. And finally, I create a new independent project without any other library. The code is still playground with which g2o and eigen3 (the same one for compiling g2o) are used as 3rd libraries. Then the result is still a bizarre number but an error of 'Access violation executing location' occurs at return 0. There is no this error while running the playground of example in g2o. Do you have any idea about this?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.
|
Hello, @RainerKuemmerle. |
Hello,
I tried using a simple example to optimize poses. I have a class encapsulates several g2o items to do this, and all of pointers of them are initialized in the constructor, see
In main(), an object of Pose is declared and then a member function Run() of Pose is called to get everything working.
In Run(), I tried to add vertices into mog2oSOpt but failed to do that and don't know why. Here is a part of the code in Run()
The output is simply bizarre, see
The text was updated successfully, but these errors were encountered: