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 compiling RosAria: error: ‘class ArLaser’ has no member named ‘getCurrentBuffer’; did you mean ‘getCurrentBufferPtr’? #67

Open
Pedroacsilva opened this issue Jul 19, 2021 · 2 comments

Comments

@Pedroacsilva
Copy link

Pedroacsilva commented Jul 19, 2021

Hello,

After cloning this repo, running cmake in a build folder, trying to build Rosaria returns the following error:

EDIT: Issue happens on Ubuntu 20.04 and Ubuntu 18.04

In file included from /usr/include/c++/9/cassert:44,
                 from /usr/include/boost/mp11/detail/mp_with_index.hpp:15,
                 from /usr/include/boost/mp11/algorithm.hpp:19,
                 from /usr/include/boost/mp11/bind.hpp:11,
                 from /usr/include/boost/parameter/aux_/is_placeholder.hpp:46,
                 from /usr/include/boost/parameter/value_type.hpp:101,
                 from /usr/include/boost/parameter/aux_/arg_list.hpp:1207,
                 from /usr/include/boost/parameter/parameters.hpp:22,
                 from /usr/include/boost/signals2/signal_type.hpp:27,
                 from /usr/include/boost/signals2.hpp:20,
                 from /opt/ros/noetic/include/tf/tf.h:46,
                 from /opt/ros/noetic/include/tf/transform_broadcaster.h:36,
                 from /home/pedr/catkin_ws/src/rosaria/LaserPublisher.h:7,
                 from /home/pedr/catkin_ws/src/rosaria/LaserPublisher.cpp:8:
/home/pedr/catkin_ws/src/rosaria/LaserPublisher.cpp: In member function ‘void LaserPublisher::publishPointCloud()’:
/home/pedr/catkin_ws/src/rosaria/LaserPublisher.cpp:145:17: error: ‘class ArLaser’ has no member named ‘getCurrentBuffer’; did you mean ‘getCurrentBufferPtr’?
  145 |   assert(laser->getCurrentBuffer());
      |                 ^~~~~~~~~~~~~~~~
/home/pedr/catkin_ws/src/rosaria/LaserPublisher.cpp:146:71: error: base operand of ‘->’ has non-pointer type ‘const ArRangeBuffer’
  146 | st std::list<ArPoseWithTime*> *p = laser->getCurrentRangeBuffer()->getBuffer();
      |                                                                  ^~

make[2]: *** [CMakeFiles/RosAria.dir/build.make:76: CMakeFiles/RosAria.dir/LaserPublisher.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:848: CMakeFiles/RosAria.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

@reed-adept
Copy link

reed-adept commented Jul 22, 2021 via email

@reedhedges
Copy link
Contributor

I've merged the fix into the master branch (from skasperski-fix-for-ariacoda-rangebuffer-list-type). If anyone runs into a problem building, let me know. You may need to use the --force-cmake option to catkin.

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