sikang / mpl_ros

A ROS wrapper for trajectory planning based on motion primitives
Apache License 2.0
581 stars 148 forks source link

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

Open RENyunfan opened 3 years ago

RENyunfan commented 3 years ago

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?

jemzipx commented 3 years ago

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.

linzgood commented 2 years ago

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’ updatenh.setCallbackQueue(point_cloudcommon->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

FPSychotic commented 2 years ago

same error in 20.04 installing agile autonomy

AnshShah3009 commented 1 year ago

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

FPSychotic commented 1 year ago

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

No sorry, I moved to other things.