sikang / mpl_ros

A ROS wrapper for trajectory planning based on motion primitives

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

RENyunfan opened this issue · 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?

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.

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

same error in 20.04 installing agile autonomy

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

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

No sorry, I moved to other things.