No matching function for call to moveitVisualTools::publishCollisionWall...etc
I am following the book "Mastering Ros for Robotics Programming" from Lenthin Joseph... in chapter 10 learning to Grasp with Movelt. I wish to launch the "grasp_generator_server.launch" from the seven_dof_arm_gazebo package...however I am having numerous errors which I could not alone solve when I builded the workspace using catkin_make. Below I am pasting the main errors:
1 - /home/marcus/catkin_ws/src/moveit_simple_grasps/include/moveit_simple_grasps/custom_environment2.h:78:78: error: no matching function for call to ‘moveit_visual_tools::MoveItVisualTools::publishCollisionWall(double, int, int, double, const string&)’I am following the book "Mastering Ros for Robotics Programming" from Lenthin Joseph... in chapter 10 learning to Grasp with Movelt. I wish to launch the "grasp_generator_server.launch" from the seven_dof_arm_gazebo package...however I am having numerous errors which I could not alone solve when I builded the workspace using catkin_make. Below I am pasting the main errors:
1 - /home/marcus/catkin_ws/src/moveit_simple_grasps/include/moveit_simple_grasps/custom_environment2.h:78:78: error: no matching function for call to ‘mo tools_->publishCollisionWall(-0.55, 0, 0, 2.2, WALL1_NAME); // back
2 - home/marcus/catkin_ws/src/moveit_simple_grasps/src/simple_grasps_test.cpp:99:20: error: ‘class moveit_visual_tools::MoveItVisualTools’ has no member named ‘setMuted’ visual_tools_->setMuted(false);
3 -/home/marcus/catkin_ws/src/moveit_simple_grasps/src/simple_grasps_test.cpp:116:78: error: no matching function for call to ‘moveit_visual_tools::MoveItVisualTools::loadEEMarker(std::__cxx11::string&, std::__cxx11::string&)’ visual_tools_->loadEEMarker(grasp_data_.ee_group_, planning_group_name_);
4- no matching function for call to ‘moveit_visual_tools::MoveItVisualTools::publishEEMarkers(geometry_msgs::Pose&, rviz_visual_tools::colors, const char [9])’ visual_tools_->publishEEMarkers(pose, rviz_visual_tools::GREEN, "test_eef")
5 - /home/marcus/catkin_ws/src/moveit_simple_grasps/src/simple_grasps_test.cpp:145:22: error: ‘class moveit_visual_tools::MoveItVisualTools’ has no member named ‘publishBlock’ visual_tools_->publishBlock(object_pose, rviz_visual_tools::BLUE, BLOCK_SIZE)
6- /home/marcus/catkin_ws/src/moveit_simple_grasps/src/grasp_filter_test.cpp:185:88: error: no matching function for call to ‘moveit_visual_tools::MoveItVisualTools::publishAnimatedGrasps(std::vector<moveit_msgs::grasp_<std::allocator<void> > >&, std::__cxx11::string&)’ visual_tools_->publishAnimatedGrasps(possible_grasps, grasp_data_.ee_parent_link_);
7- /home/marcus/catkin_ws/src/moveit_simple_grasps/src/grasp_filter_test.cpp:186:81: error: no matching function for call to ‘moveit_visual_tools::MoveItVisualTools::publishIKSolutions(std::vector<trajectory_msgs::jointtrajectorypoint_<std::allocator<void> >, std::allocator<trajectory_msgs::jointtrajectorypoint_<std::allocator<void> > > >&, std::__cxx11::string&, double)’ visual_tools_->publishIKSolutions(ik_solutions, planning_group_name_, 0.25);
I have already looked to /opt/ros/kinetic/include/moveit_visual_tools in "moveit_visual_tools.h" and the objects AnimatedGrasps, Wall, etc are configured correct (I guess) very similar as the object Table is configured...and the object Table presented any problem....Why I am having problems with these other objects? I also looked in the cpp files in src directory which is inside the moveit_simple_grasps directory.....Someone can assist me with this issue? I lost all they long trying to solve these errors....I tried to modify the cpp codes...changing some lines as suggested davetcoleman in "Fixed API changes in moveit_visual_tools" but unfortunately the errors kept.... I am using Ros- kinect and ubuntu 16.04. Thanks for advance.errors....I tried to modify the cpp codes...changing some lines as suggested davetcoleman in "Fixed API changes in moveit_visual_tools" but unfortunately the errors kept.... I am using Ros- kinect and ubuntu 16.04 ...
What do you mean by
? Can you post the output of
catkin_make
instead of an abbreviated version?The errors msg is over the allowed that is why I put the error which appeared more often and more than 1 time....( I know they should appear only once but they were displayed numerous times).Maybe the problem is that I cannot identify the error....a C++ lack of knowledge. I only would like to understand what is happening and where I need to go to change the code....is it in launch files, cpp files,..plugin .h files in the moveit_visual_tools in source (/opt/ros/kinect/include/moveit_visual_tools/moveit_visual_tools.h?) because I tried to change some line of codes but I could not solve. Could you please give an easy example what this problems means: "no mathing function for call to X::Y::publishZ(etc....) ....X, Y and Z is only an course example....maybe if you explain what this error means and give an example to correct ...(more)
Seeing as these are errors in one very specific package / from a book, I would suggest you contact the author(s) of the book. You can do that at qboticslabs/mastering_ros/issues.