You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I have been using an older version of the dsl library to great satisfaction.
I have reached a point where I need to use some of the new features. But the templates have changed and I can't figure out how to use the new ones.
Curently am I suck at gridseartch construction. dsl::GridSearch<Eigen::Vector3d, int, std::vector<Eigen::Vector3d, int>>(*grid_, *connectivity_, cost_, true, true)
with a declaration in a .h file dsl::GridSearch<Eigen::Vector3d, int, std::vector<Eigen::Vector3d, int>>
Am I using the correct types?
Or is it something else I'm doing wrong?
The error msgs I get is:
/home/grammers/catkin_ws/dsl/src/Dsp/src/dsp/dsp.cpp: In member function ‘void dsp::Dsp::buildGraph()’:
/home/grammers/catkin_ws/dsl/src/Dsp/src/dsp/dsp.cpp:251:135: error: no matching function for call to ‘dsl::GridSearch<Eigen::Matrix<double, 3, 1>, int, std::vector<Eigen::Matrix<double, 3, 1>, int> >::GridSearch(std::__shared_ptr_access<dsl::Grid3d, __gnu_cxx::_S_atomic, false, false>::element_type&, std::__shared_ptr_access<dsl::Grid3dConnectivity, __gnu_cxx::_S_atomic, false, false>::element_type&, dsl::GridCost<Eigen::Matrix<double, 3, 1>, int>&, bool, bool)’
251 | gdsl_.reset(new dsl::GridSearch<Eigen::Vector3d, int, std::vector<Eigen::Vector3d, int>>(*grid_, *connectivity_, cost_, true, true));
| ^
In file included from /home/grammers/catkin_ws/dsl/src/Dsp/include/dsp/dsp.h:11,
from /home/grammers/catkin_ws/dsl/src/Dsp/src/dsp/dsp.cpp:1:
/usr/local/include/dsl/gridsearch.h:196:5: note: candidate: ‘dsl::GridSearch<PointType, DataType, ConnectionType>::GridSearch(const dsl::Grid<PointType, DataType>&, const dsl::GridConnectivity<PointType, DataType, ConnectionType>&, const dsl::GridCost<PointType, DataType>&, bool, bool) [with PointType = Eigen::Matrix<double, 3, 1>; DataType = int; ConnectionType = std::vector<Eigen::Matrix<double, 3, 1>, int>]’
196 | GridSearch< PointType, DataType, ConnectionType>::GridSearch(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/dsl/gridsearch.h:197:39: note: no known conversion for argument 1 from ‘std::__shared_ptr_access<dsl::Grid3d, __gnu_cxx::_S_atomic, false, false>::element_type’ {aka ‘dsl::Grid3d’} to ‘const dsl::Grid<Eigen::Matrix<double, 3, 1>, int>&’
197 | const Grid< PointType, DataType>& grid,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/usr/local/include/dsl/gridsearch.h:64:9: note: candidate: ‘dsl::GridSearch<Eigen::Matrix<double, 3, 1>, int, std::vector<Eigen::Matrix<double, 3, 1>, int> >::GridSearch(const dsl::GridSearch<Eigen::Matrix<double, 3, 1>, int, std::vector<Eigen::Matrix<double, 3, 1>, int> >&)’
64 | class GridSearch : public Search< Cell<PointType, DataType>, ConnectionType > {
| ^~~~~~~~~~
The text was updated successfully, but these errors were encountered:
Hello!
I have been using an older version of the dsl library to great satisfaction.
I have reached a point where I need to use some of the new features. But the templates have changed and I can't figure out how to use the new ones.
Curently am I suck at gridseartch construction.
dsl::GridSearch<Eigen::Vector3d, int, std::vector<Eigen::Vector3d, int>>(*grid_, *connectivity_, cost_, true, true)
with a declaration in a
.h
filedsl::GridSearch<Eigen::Vector3d, int, std::vector<Eigen::Vector3d, int>>
Am I using the correct types?
Or is it something else I'm doing wrong?
The error msgs I get is:
The text was updated successfully, but these errors were encountered: