Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Template #9

Open
grammers opened this issue Oct 13, 2021 · 0 comments
Open

Template #9

grammers opened this issue Oct 13, 2021 · 0 comments

Comments

@grammers
Copy link

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 > {
      |         ^~~~~~~~~~
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant