-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ch4/example/trajectoryError 运行可执行文件出现错误 #110
Comments
我也出现了这个问题 |
应该是某个版本的sophus增加了四元数归一化检查。我觉得在读取时加一句归一化应该能解决这个问题。 |
我在运行第十章的例子时遇到同样的问题 定位到的问题发生在构建SE3d的实例中 ···
··· 我将四元数和李代数的构建单独提取出来,并对四元数进行归一化,都不能解决上述错误。 ···
··· 另外我也尝试用宏SOPHUS_DISABLE_ENSURES来关闭检查,但在运行时直接发生段错误。 |
@chaksw @junlin49 @gaoxiang12 @ogtc890215 你们好!对于这个问题
是由于read函数没有返回true,修改之后即可正确执行!
改为,
|
我现在发现,之所以出现这个问题,是因为我读取数据时有错误,导致四元数都是0;错误出现在我在读取数据时使用了以下方式: |
My problem for ch4 was that I had the two input files but they were empty, after replacing them with the correct files everything worked. |
我在第四章就遇到了同样的问题,但是没法找到virtual bool read(。。)这个函数该怎么处理呢? |
while (fin.peek() != EOF) { |
高老师、张老师您好,
我在尝试编译trajectoryError程序过程中,在编译无错误并成功生成可执行文件后,运行可执行文件时遇见了一下问题。
machine:/mnt/hgfs/slambook2/ch4/example/build$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/hgfs/slambook2/ch4/example/build
machine:/mnt/hgfs/slambook2/ch4/example/build$ make
[100%] Built target trajectoryError
machine:/mnt/hgfs/slambook2/ch4/example/build$ ./trajectoryError
Sophus ensure failed in function 'void Sophus::SO3Base::normalize() [with Derived = Sophus::SO3]', file '/usr/local/include/sophus/so3.hpp', line 275.
Quaternion (6.95256e-310 6.94798e-310 6.95256e-310 6.94798e-310) should not be close to zero!
Aborted (core dumped)
根据我自己分析,是构造四元数时某个数据值过小(接近零),但翻查路径数据文件时没有发现与错误相似大小的数据,请问出现这个错误是什么原因? 希望有空可以解答下,谢谢!
The text was updated successfully, but these errors were encountered: