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: no matching function for call to ‘toMsg(const Eigen::Transform<double, 3, 1>&)’ #512

Closed
knorth55 opened this issue May 13, 2021 · 1 comment

Comments

@knorth55
Copy link

moveit melodic-devel fails with follwing error with latest geometry2 melodic-devel.

geometry2: melodic-devel
moveit: melodic-devel

Errors     << pilz_industrial_motion_planner:make /home/knorth55/ros/moveit_ws/logs/pilz_industrial_motion_planner/build.make.003.log
In file included from /opt/ros/melodic/include/tf2/convert.h:36:0,
                 from /home/knorth55/ros/moveit_ws/src/ros-planning/moveit/moveit_planners/pilz_industrial_motion_planner/test/test_utils.cpp:39:
/opt/ros/melodic/include/tf2/impl/convert.h: In instantiation of ‘static void tf2::impl::Converter<IS_MESSAGE_A, IS_MESSAGE_B>::convert(const A&, B&) [with A = Eigen::Transform<double, 3, 1>; B = geometry_msgs::Pose_<std::allocator<void> >; bool IS_MESSAGE_A = false; bool IS_MESSAGE_B = true]’:
/opt/ros/melodic/include/tf2/convert.h:51:113:   required from ‘void tf2::convert(const A&, B&) [with A = Eigen::Transform<double, 3, 1>; B = geometry_msgs::Pose_<std::allocator<void> >]’
/home/knorth55/ros/moveit_ws/src/ros-planning/moveit/moveit_planners/pilz_industrial_motion_planner/test/test_utils.cpp:556:72:   required from here
/opt/ros/melodic/include/tf2/impl/convert.h:65:12: error: no matching function for call to ‘toMsg(const Eigen::Transform<double, 3, 1>&)’
   b = toMsg(a);
       ~~~~~^~~
In file included from /opt/ros/melodic/include/tf2/convert.h:35:0,
                 from /home/knorth55/ros/moveit_ws/src/ros-planning/moveit/moveit_planners/pilz_industrial_motion_planner/test/test_utils.cpp:39:
/opt/ros/melodic/include/tf2/transform_functions.h:90:5: note: candidate: template<class A, class B> B tf2::toMsg(const A&)
   B toMsg(const A& a);
     ^~~~~
/opt/ros/melodic/include/tf2/transform_functions.h:90:5: note:   template argument deduction/substitution failed:
In file included from /opt/ros/melodic/include/tf2/convert.h:36:0,
                 from /home/knorth55/ros/moveit_ws/src/ros-planning/moveit/moveit_planners/pilz_industrial_motion_planner/test/test_utils.cpp:39:
/opt/ros/melodic/include/tf2/impl/convert.h:65:12: note:   couldn't deduce template parameter ‘B’
   b = toMsg(a);
       ~~~~~^~~
make[2]: *** [CMakeFiles/pilz_industrial_motion_planner_testhelpers.dir/test/test_utils.cpp.o] Error 1
make[1]: *** [CMakeFiles/pilz_industrial_motion_planner_testhelpers.dir/all] Error 2
make: *** [all] Error 2
cd /home/knorth55/ros/moveit_ws/build/pilz_industrial_motion_planner; catkin build --get-env pilz_industrial_motion_planner | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
...........................................................................................
@knorth55
Copy link
Author

Now I clean up all workspace and rebuild it, and the error disappered...
It's a pretty wierd error, but I close this issue.

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

1 participant