Open 9friday opened 6 years ago
This is untested as of now because I am running into further build problems but
either add
#include "g2o/types/sim3/sim3.h"
or
in utils/SophusUtils.h:40, uncomment
// typedef Sophus::Vector7d Vector7;
It is most likely that you will run into other building porblems causing from version changes (i.e. g2o updated their Solvers to not own the pointers and switched to unique_ptr
instead)
@OAkyildiz , thanks for the advice. I tried that but I am getting the same error:
[ 3%] Building CXX object CMakeFiles/lsdslam.dir/DataStructures/Frame.cpp.o In file included from /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/DataStructures/FramePoseStruct.h:23:0, from /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/DataStructures/Frame.h:26, from /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/DataStructures/Frame.cpp:21: /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h: In member function ‘virtual bool lsd_slam::EdgeSim3::setMeasurementData(const double)’: /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h:98:20: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive] Eigen::Map
v(m); ^~~ /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h:98:33: error: template argument 1 is invalid Eigen::Map ’ to ‘int’ [-fpermissive] Eigen::Mapv(m); ^ /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h:98:38: error: invalid conversion from ‘const double v(m); ^ /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/GlobalMapping/g2oTypeSim3Sophus.h:99:38: error: no matching function for call to ‘Sophus::Sim3Group ::exp(int&)’ setMeasurement(Sophus::Sim3d::exp(v)); ^ In file included from /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/util/SophusUtil.h:23:0, from /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/DataStructures/Frame.h:22, from /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/DataStructures/Frame.cpp:21: /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/thirdparty/Sophus/sophus/sim3.hpp:418:27: note: candidate: static const Sophus::Sim3Group<typename Eigen::internal::traits ::Scalar> Sophus::Sim3GroupBase ::exp(const Tangent&) [with Derived = Sophus::Sim3Group ; typename Eigen::internal::traits ::Scalar = double; Sophus::Sim3GroupBase ::Tangent = Eigen::Matrix<double, 7, 1>] const Sim3Group exp(const Tangent & a) { ^~~ /home/username/Downloads/lsd_slam_jserv/lsd_slam-master/lsd_slam_core/src/thirdparty/Sophus/sophus/sim3.hpp:418:27: note: no known conversion for argument 1 from ‘int’ to ‘const Tangent& {aka const Eigen::Matrix<double, 7, 1>&}’ CMakeFiles/lsdslam.dir/build.make:62: recipe for target 'CMakeFiles/lsdslam.dir/DataStructures/Frame.cpp.o' failed make[2]: [CMakeFiles/lsdslam.dir/DataStructures/Frame.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/lsdslam.dir/all' failed make[1]: [CMakeFiles/lsdslam.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
I tried the changes on the https://github.com/jserv/lsd_slam repo.
Thanks for helping. I will keep trying to solve this.
Cheers :+1:
Were you able to solve this?
No, i haven't been able to solve this. What are the steps you took for installing this?
On Mon 18 Jun, 2018, 7:35 AM Aditya Sundar, notifications@github.com wrote:
Were you able to solve this?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tum-vision/lsd_slam/issues/303#issuecomment-397924768, or mute the thread https://github.com/notifications/unsubscribe-auth/AkCptf8kMhdYGiaoFczsMxbJnLJCrtuRks5t9wrugaJpZM4TrU0k .
Even I haven't been able to
What are the exact steps you followed? Can you mention them here?
On Mon 18 Jun, 2018, 12:17 PM Aditya Sundar, notifications@github.com wrote:
Even I haven't been able to
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tum-vision/lsd_slam/issues/303#issuecomment-397957339, or mute the thread https://github.com/notifications/unsubscribe-auth/AkCptaU_dZqa5aLVGzE1atvziPyGcuLcks5t900dgaJpZM4TrU0k .
Even if you haven't been able to.
On Mon 18 Jun, 2018, 12:34 PM Everyday Newday, everynewdayday@gmail.com wrote:
What are the exact steps you followed? Can you mention them here?
On Mon 18 Jun, 2018, 12:17 PM Aditya Sundar, notifications@github.com wrote:
Even I haven't been able to
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tum-vision/lsd_slam/issues/303#issuecomment-397957339, or mute the thread https://github.com/notifications/unsubscribe-auth/AkCptaU_dZqa5aLVGzE1atvziPyGcuLcks5t900dgaJpZM4TrU0k .
g2oTypeSim3Sophus.h line 96
Eigen::Map<const g2o::Vector7d> v(m);
change to
Eigen::Map<const Eigen::Matrix<double, 7 ,1> > v(m);
g2oTypeSim3Sophus.h line 96
Eigen::Map<const g2o::Vector7d> v(m);
change to
Eigen::Map<const Eigen::Matrix<double, 7 ,1> > v(m);
I think that maybe a misstype of Sophus::Vector7d
I have a 64-bit laptop with Ubuntu 17.10. I am trying to run LSD-SLAM without the ROS dependencies. I have found three repos which contain LSD-SLAM without the ROS dependency. They are all modified versions of the original LSD-SLAM. ROS is just used for IO so the rest of the code should be pretty much the same. But on building them with cmake and then executing 'sudo make', I get a common error across all three repos.
These are the links to the repos:
While 2 and 3 give the exact same error, 1 is a bit different:
But even this has the error related to this line(link takes you to
g2oTypeSim3Sophus.h
, the file that contains this line of code) :Eigen::Map<const g2o::Vector7d> v(m);
I would be really grateful if you guys could help me out or just point me in the right direction.
Than You :+1: