Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 670

no matching function for call to 'fromMsg(geometry_msgs::TransformStamped_::_transform_type, tf2::Transform&)' tf2::fromMsg(buffer.lookupTransform(targetFrame, sourceFrame, time).transform, targetFrameTrans);

$
0
0
Hello, I am currently trying to cross compile the [robot-localization](http://wiki.ros.org/robot_localization) package for a custom made OS with yocto. I managed to cross compile the other dependencies but I got a problem with this one. I did 2 modifications in the CMakelists.txt from origin, you can see mine here [http://pastebin.com/XYy53Cfs](http://pastebin.com/XYy53Cfs). During compilation, it stops at 70%. I think there is a problem with the tf2-geometry-msgs library. It is included but the issue is in the fromMsg method. [ 70%] Building CXX object CMakeFiles/ros_filter_utilities.dir/src/ros_filter_utilities.cpp.o /home/david/Documents/NEOCORTEX-OS/build/tmp/work/armv6-vfp-poky-linux-gnueabi/robot-localization/2.2.1-r0/robot_localization-2.2.1/src/ros_filter_utilities.cpp: In function 'bool RobotLocalization::RosFilterUtilities::lookupTransformSafe(const tf2_ros::Buffer&, const string&, const string&, const ros::Time&, tf2::Transform&)': /home/david/Documents/NEOCORTEX-OS/build/tmp/work/armv6-vfp-poky-linux-gnueabi/robot-localization/2.2.1-r0/robot_localization-2.2.1/src/ros_filter_utilities.cpp:80:104: error: no matching function for call to 'fromMsg(geometry_msgs::TransformStamped_>::_transform_type, tf2::Transform&)' tf2::fromMsg(buffer.lookupTransform(targetFrame, sourceFrame, time).transform, targetFrameTrans); ^ /home/david/Documents/NEOCORTEX-OS/build/tmp/work/armv6-vfp-poky-linux-gnueabi/robot-localization/2.2.1-r0/robot_localization-2.2.1/src/ros_filter_utilities.cpp:80:104: note: candidates are: In file included from /home/david/Documents/NEOCORTEX-OS/build/tmp/work/armv6-vfp-poky-linux-gnueabi/robot-localization/2.2.1-r0/robot_localization-2.2.1/src/ros_filter_utilities.cpp:36:0: [...] make: *** [all] Error 2 ERROR: oe_runmake failed WARNING: exit code 1 from a shell command. In the cpp file try { tf2::fromMsg(buffer.lookupTransform(targetFrame, sourceFrame, time).transform, targetFrameTrans); } Thanks

Viewing all articles
Browse latest Browse all 670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>