{"action":"created","issue":{"url":"https://api.github.com/repos/ros2/cartographer_ros/issues/21","repository_url":"https://api.github.com/repos/ros2/cartographer_ros","labels_url":"https://api.github.com/repos/ros2/cartographer_ros/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ros2/cartographer_ros/issues/21/comments","events_url":"https://api.github.com/repos/ros2/cartographer_ros/issues/21/events","html_url":"https://github.com/ros2/cartographer_ros/issues/21","id":350828260,"node_id":"MDU6SXNzdWUzNTA4MjgyNjA=","number":21,"title":"fromROSMsg() compile error","user":{"login":"shiveshkhaitan","id":33219837,"node_id":"MDQ6VXNlcjMzMjE5ODM3","avatar_url":"https://avatars1.githubusercontent.com/u/33219837?v=4","gravatar_id":"","url":"https://api.github.com/users/shiveshkhaitan","html_url":"https://github.com/shiveshkhaitan","followers_url":"https://api.github.com/users/shiveshkhaitan/followers","following_url":"https://api.github.com/users/shiveshkhaitan/following{/other_user}","gists_url":"https://api.github.com/users/shiveshkhaitan/gists{/gist_id}","starred_url":"https://api.github.com/users/shiveshkhaitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiveshkhaitan/subscriptions","organizations_url":"https://api.github.com/users/shiveshkhaitan/orgs","repos_url":"https://api.github.com/users/shiveshkhaitan/repos","events_url":"https://api.github.com/users/shiveshkhaitan/events{/privacy}","received_events_url":"https://api.github.com/users/shiveshkhaitan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-15T14:22:14Z","updated_at":"2018-08-15T14:33:34Z","closed_at":null,"author_association":"NONE","body":"I am using Ubuntu 16.04 ros2 distro-bouncy compiled from source. While using colcon build for cartographer_ros I get the error\r\ncartographer_ros/cartographer_ros/cartographer_ros/msg_conversion.cc: In function ‘cartographer::sensor::PointCloudWithIntensities cartographer_ros::ToPointCloudWithIntensities(const PointCloud2&)’:\r\ncartographer_ros/cartographer_ros/cartographer_ros/msg_conversion.cc:178:45: error: no matching function for call to ‘fromROSMsg(const PointCloud2&, pcl::PointCloud<pcl::PointXYZI>&)’\r\n     pcl::fromROSMsg(message, pcl_point_cloud);\r\n                                             ^\r\nIn file included from \r\ncartographer_ros/cartographer_ros/./cartographer_ros/msg_conversion.h:27:0,\r\n                 from \r\ncartographer_ros/cartographer_ros/cartographer_ros/msg_conversion.cc:17:\r\n/usr/include/pcl_conversions/pcl_conversions.h:547:8: note: candidate: template<class T> void pcl::fromROSMsg(const PointCloud2&, pcl::PointCloud<PointT>&)\r\n   void fromROSMsg(const sensor_msgs::PointCloud2 &cloud, pcl::PointCloud<T> &pcl_cloud)\r\n        ^\r\n/usr/include/pcl_conversions/pcl_conversions.h:547:8: note:   template argument deduction/substitution failed:\r\ncartographer_ros/cartographer_ros/cartographer_ros/msg_conversion.cc:178:45: note:   cannot convert ‘message’ (type ‘const PointCloud2 {aka const sensor_msgs::msg::PointCloud2_<std::allocator<void> >}’) to type ‘const PointCloud2& {aka const sensor_msgs::PointCloud2_<std::allocator<void> >&}’\r\n     pcl::fromROSMsg(message, pcl_point_cloud);\r\n\r\nThe error is reproducible in ros2 and bouncy branch"},"comment":{"url":"https://api.github.com/repos/ros2/cartographer_ros/issues/comments/413216673","html_url":"https://github.com/ros2/cartographer_ros/issues/21#issuecomment-413216673","issue_url":"https://api.github.com/repos/ros2/cartographer_ros/issues/21","id":413216673,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzIxNjY3Mw==","user":{"login":"mikaelarguedas","id":6644208,"node_id":"MDQ6VXNlcjY2NDQyMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/6644208?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaelarguedas","html_url":"https://github.com/mikaelarguedas","followers_url":"https://api.github.com/users/mikaelarguedas/followers","following_url":"https://api.github.com/users/mikaelarguedas/following{/other_user}","gists_url":"https://api.github.com/users/mikaelarguedas/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelarguedas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelarguedas/subscriptions","organizations_url":"https://api.github.com/users/mikaelarguedas/orgs","repos_url":"https://api.github.com/users/mikaelarguedas/repos","events_url":"https://api.github.com/users/mikaelarguedas/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelarguedas/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T14:33:34Z","updated_at":"2018-08-15T14:33:34Z","author_association":"NONE","body":"Thanks @shiveshkhaitan for reporting.\r\n\r\nThe packages listed on the [turtlebot2_demo.repos](https://github.com/ros2/turtlebot2_demo/blob/bouncy/turtlebot2_demo.repos) are currently only supporting ubuntu Bionic.\r\n\r\nThe difference in system versions of `ceres` and `protobuf` between Ubuntu Xenial and Ubuntu Bionic makes maintaining a version compatible with both OSs more time consuming. I'm actually surprised you could get that far in the compilation process.\r\n\r\n\r\nRegarding the error you are seeing, I haven;t faced it before, but it looks like you are using `pcl_conversions` from `/usr/include`. How did you install that package?"}}
{"actor":{"display_login":"mikaelarguedas"}}