mpl_ros icon indicating copy to clipboard operation
mpl_ros copied to clipboard

error: ‘class rviz::PointCloudCommon’ has no member named ‘getCallbackQueue’ update_nh_.setCallbackQueue(point_cloud_common_->getCallbackQueue());

Open RENyunfan opened this issue 3 years ago • 5 comments

Hi! I am trying to install mpl_ros with catkin_make on Ubuntu18.04, and get error:

error: ‘class rviz::PointCloudCommon’ has no member named ‘getCallbackQueue’
   update_nh_.setCallbackQueue(point_cloud_common_->getCallbackQueue());

I guess the problem comes from the wrong version of Rviz, any suggestion?

RENyunfan avatar Oct 10 '21 04:10 RENyunfan

I also have this problem on Ubuntu 20.04. My rviz is version 1.14.10. I just solved this by commenting out the line that gives the error:

  mesh_height_ = mesh_height_property_->getFloat();
  //update_nh_.setCallbackQueue(point_cloud_common_->getCallbackQueue());
  map_util_.reset(new MPL::VoxelMapUtil());

It is not exactly a solution but at least I can get past this error.

jemzipx avatar Oct 21 '21 15:10 jemzipx

Errors << planning_ros_utils:make /home/linzgood/agile_autonomy_ws/catkin_aa/logs/planning_ros_utils/build.make.007.log
/home/linzgood/agile_autonomy_ws/catkin_aa/src/rpg_mpl_ros/planning_ros_utils/src/planning_rviz_plugins/map_display.cpp: In constructor ‘planning_rviz_plugins::MapDisplay::MapDisplay()’: /home/linzgood/agile_autonomy_ws/catkin_aa/src/rpg_mpl_ros/planning_ros_utils/src/planning_rviz_plugins/map_display.cpp:39:52: error: ‘class rviz::PointCloudCommon’ has no member named ‘getCallbackQueue’ update_nh_.setCallbackQueue(point_cloud_common_->getCallbackQueue()); ^~~~~~~~~~~~~~~~ make[2]: *** [CMakeFiles/planning_rviz_plugins.dir/build.make:160: CMakeFiles/planning_rviz_plugins.dir/src/planning_rviz_plugins/map_display.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:381: CMakeFiles/planning_rviz_plugins.dir/all] Error 2 make: *** [Makefile:160: all] Error 2

linzgood avatar Nov 19 '21 12:11 linzgood

same error in 20.04 installing agile autonomy

FPSychotic avatar Nov 26 '21 17:11 FPSychotic

@FPSychotic did you find the solution to this except for commenting it out?

AnshShah3009 avatar Oct 05 '23 13:10 AnshShah3009

@FPSychotic did you find the solution to this except for commenting it out?

No sorry, I moved to other things.

FPSychotic avatar Oct 05 '23 20:10 FPSychotic