Skip to content
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

error: no match for ‘operator=’ #92

Open
jierui778 opened this issue Feb 5, 2024 · 2 comments
Open

error: no match for ‘operator=’ #92

jierui778 opened this issue Feb 5, 2024 · 2 comments

Comments

@jierui778
Copy link

按照markdowm步骤构建发生如下错误
/home/jierui778/ego-planner/src/planner/traj_utils/include/traj_utils/polynomial_traj.h: In member function ‘double PolynomialTraj::getJerk()’:
/home/jierui778/ego-planner/src/planner/traj_utils/include/traj_utils/polynomial_traj.h:238:94: error: no match for ‘operator=’ (operand types are ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<double, -1, -1>, double, double> >::type {aka Eigen::IndexedView<Eigen::Matrix<double, -1, -1>, double, double>}’ and ‘double’)
i * (i - 1) * (i - 2) * j * (j - 1) * (j - 2) * pow(ts, i + j - 5) / (i + j - 5);

@bigsuperZZZX
Copy link
Member

Eigen没装好吧,这里是最基础的Eigen矩阵赋值操作,不可能不支持的

@Cyaeghas
Copy link

厚米听我说,这里的报错的代码,循环体里i和j用的是double,估计是下标类型不支持,所以要改成int。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants