当前位置:网站首页>Eigen(3):error: ‘Eigen’ has not been declared
Eigen(3):error: ‘Eigen’ has not been declared
2022-06-26 14:16:00 【biter0088】
Compiling c++ When you file , Report errors :
error: ‘Eigen’ has not been declared

Solution examples :
CMakeLists.txt in
Note that there are “#”
cmake_minimum_required(VERSION 2.8.3)
project(xxx)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
nav_msgs
sensor_msgs
roscpp
rospy
rosbag
std_msgs
image_transport
cv_bridge
tf
pcl_conversions
)
include_directories("/usr/local/include/eigen3")#eigen3 route
set(PCL_DIR "/usr/share/pcl-1.8")
set(OpenCV_DIR "/usr/share/OpenCV")
find_package(Eigen3 REQUIRED)# lookup eigen3 package
find_package(PCL REQUIRED)
find_package(OpenCV 3.2 REQUIRED)
find_package(Ceres REQUIRED)
include_directories(
# include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}# take eigen3 Contents included
${CERES_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS})
catkin_package(
CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy std_msgs pcl_conversions
DEPENDS EIGEN3 PCL # As a dependency
# INCLUDE_DIRS include
)cpp In file
Add... In the header file
#include <Eigen/Dense>Here's the ros answer in , Propose reference header file :
#include <eigen3/Eigen/Eigen>#include <Eigen/Eigen>I tried , It fails to work well ( Maybe you can try )
Eigen libriary does not work - ROS Answers: Open Source Q&A Forum
边栏推荐
- 证券开户安全吗,有没有什么危险啊
- New specification of risc-v chip architecture
- 虫子 运算符重载的一个好玩的
- [hnoi2010] flying sheep
- When drawing with origin, capital letter C will appear in the upper left corner of the chart. The removal method is as follows:
- Pycharm远程连接服务器来跑代码
- The most critical elements of team management
- Free machine learning dataset website (6300+ dataset)
- Zero basics of C language lesson 7: break & continue
- Jianzhi offer 43.47.46.48 dynamic planning (medium)
猜你喜欢

8.Ribbon负载均衡服务调用

ICML 2022 | limo: a new method for rapid generation of targeted molecules

C language | file operation and error prone points

2021-10-09

Codeforces Global Round 21A~D

Gartner 2022年顶级战略技术趋势报告

Sword finger offer 10 Ⅰ 10Ⅱ. 63 dynamic planning (simple)

Variable declaration of typescript

Sword finger offer 05.58 Ⅱ string

Wechat applet -picker component is repackaged and the disabled attribute is added -- above
随机推荐
Taishan Office Technology Lecture: four cases of using bold font
Wechat applet Registration Guide
GC is not used in D
Pytorch based generation countermeasure Network Practice (7) -- using pytorch to build SGAN (semi supervised GaN) to generate handwritten digits and classify them
Jianzhi offer 43.47.46.48 dynamic planning (medium)
Pointer
Mathematical design D12 according to string function
Codeforces Round #765 (Div. 2) D. Binary Spiders
Free machine learning dataset website (6300+ dataset)
爱可可AI前沿推介(6.26)
Applicable and inapplicable scenarios of mongodb series
Range of types
RISC-V 芯片架构新规范
Solutions to the failure of last child and first child styles of wechat applet
[scoi2016] lucky numbers
Introduction to granular computing
Common operation and Principle Exploration of stream
Installation and uninstallation of MySQL software for windows
Zero basics of C language lesson 8: Functions
Why is there always a space (63 or 2048 sectors) in front of the first partition when partitioning a disk