Skip to content

catkin build voxgraph :error: ‘typedef class Eigen::Matrix<float, 3, 1> Eigen::Vector3’ redeclared as different kind of symbol #36

Open
@Luo-Zhongwei

Description

@Luo-Zhongwei

In file included from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/core/tsdf_submap.h:12:0,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/core/tsdf_submap.cpp:1:
/home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/core/common.h:63:44: error: ‘typedef class Eigen::Matrix<float, 3, 1> Eigen::Vector3’ redeclared as different kind of symbol
typedef Matrix<cblox::FloatingPoint, 3, 1> Vector3;
^~~~~~~
In file included from /usr/local/include/eigen3/Eigen/Core:279:0,
from /usr/local/include/eigen3/Eigen/Geometry:11,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/core/tsdf_submap.h:7,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/core/tsdf_submap.cpp:1:
/usr/local/include/eigen3/Eigen/src/Core/Matrix.h:539:1: note: previous declaration ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
EIGEN_MAKE_TYPEDEFS(3, 3)
^
/home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/core/tsdf_submap.cpp: In static member function ‘static cblox::TsdfSubmap::Ptr cblox::TsdfSubmap::LoadFromStream(const Config&, std::fstream*, uint64_t*)’:
/home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/core/tsdf_submap.cpp:73:18: error: missing template arguments before ‘t’
Eigen::Vector3 t = T_M_S.getPosition();
^
/home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/core/tsdf_submap.cpp:75:24: error: ‘t’ was not declared in this scope
LOG(INFO) << "[ " << t.x() << ", " << t.y() << ", " << t.z() << ", " << q.w()
^
/home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/core/tsdf_submap.cpp:75:24: note: suggested alternative: ‘tm’
LOG(INFO) << "[ " << t.x() << ", " << t.y() << ", " << t.z() << ", " << q.w()
^
tm
In file included from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/integrator/tsdf_submap_collection_integrator.h:9:0,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/integrator/tsdf_submap_collection_integrator.cpp:1:
/home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/core/common.h:63:44: error: ‘typedef class Eigen::Matrix<float, 3, 1> Eigen::Vector3’ redeclared as different kind of symbol
typedef Matrix<cblox::FloatingPoint, 3, 1> Vector3;
^~~~~~~
In file included from /usr/local/include/eigen3/Eigen/Core:279:0,
from /usr/local/include/eigen3/Eigen/Dense:1,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/minkindr/minkindr/include/kindr/minimal/rotation-quaternion.h:30,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/minkindr/minkindr/include/kindr/minimal/quat-transformation.h:30,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/voxblox/voxblox/include/voxblox/core/common.h:16,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/voxblox/voxblox/include/voxblox/core/tsdf_map.h:10,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/integrator/tsdf_submap_collection_integrator.h:6,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/integrator/tsdf_submap_collection_integrator.cpp:1:
/usr/local/include/eigen3/Eigen/src/Core/Matrix.h:539:1: note: previous declaration ‘template using Vector3 = Eigen::Matrix<Type, 3, 1>’
EIGEN_MAKE_TYPEDEFS(3, 3)
^
In file included from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/core/tsdf_submap.h:12:0,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/core/tsdf_esdf_submap.h:8,
from /home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/src/core/tsdf_esdf_submap.cpp:1:
/home/lzw/resplendent_code/SLAM/voxblox_ws/src/cblox/cblox/include/cblox/core/common.h:63:44: error: ‘typedef class Eigen::Matrix<float, 3, 1> Eigen::Vector3’ redeclared as different kind of symbol
typedef Matrix<cblox::FloatingPoint, 3, 1> Vector3;
^~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions