Advertisement
Guest User

ROS C++ adapting error

a guest
Jan 31st, 2020
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp: In static member function ‘static const char* ros::message_traits::MD5Sum<my_item_class::Item>::value(const my_item_class::Item&)’:
  2. /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp:182:57: error: no matching function for call to ‘ros::message_traits::MD5Sum<geometry2d::Item_<std::allocator<void> > >::value(const my_item_class::Item&)’
  3. return MD5Sum<geometry2d::Item>::value(m);
  4. ^
  5. In file included from /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp:8:0:
  6. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:120:22: note: candidate: static const char* ros::message_traits::MD5Sum<geometry2d::Item_<ContainerAllocator> >::value() [with ContainerAllocator = std::allocator<void>]
  7. static const char* value()
  8. ^~~~~
  9. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:120:22: note: candidate expects 0 arguments, 1 provided
  10. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:125:22: note: candidate: static const char* ros::message_traits::MD5Sum<geometry2d::Item_<ContainerAllocator> >::value(const geometry2d::Item_<ContainerAllocator>&) [with ContainerAllocator = std::allocator<void>]
  11. static const char* value(const ::geometry2d::Item_<ContainerAllocator>&) { return value(); }
  12. ^~~~~
  13. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:125:22: note: no known conversion for argument 1 from ‘const my_item_class::Item’ to ‘const geometry2d::Item_<std::allocator<void> >&’
  14. /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp: In static member function ‘static const char* ros::message_traits::DataType<my_item_class::Item>::value(const my_item_class::Item&)’:
  15. /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp:196:59: error: no matching function for call to ‘ros::message_traits::DataType<geometry2d::Item_<std::allocator<void> > >::value(const my_item_class::Item&)’
  16. return DataType<geometry2d::Item>::value(m);
  17. ^
  18. In file included from /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp:8:0:
  19. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:133:22: note: candidate: static const char* ros::message_traits::DataType<geometry2d::Item_<ContainerAllocator> >::value() [with ContainerAllocator = std::allocator<void>]
  20. static const char* value()
  21. ^~~~~
  22. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:133:22: note: candidate expects 0 arguments, 1 provided
  23. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:138:22: note: candidate: static const char* ros::message_traits::DataType<geometry2d::Item_<ContainerAllocator> >::value(const geometry2d::Item_<ContainerAllocator>&) [with ContainerAllocator = std::allocator<void>]
  24. static const char* value(const ::geometry2d::Item_<ContainerAllocator>&) { return value(); }
  25. ^~~~~
  26. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:138:22: note: no known conversion for argument 1 from ‘const my_item_class::Item’ to ‘const geometry2d::Item_<std::allocator<void> >&’
  27. /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp: In static member function ‘static const char* ros::message_traits::Definition<my_item_class::Item>::value(const my_item_class::Item&)’:
  28. /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp:210:61: error: no matching function for call to ‘ros::message_traits::Definition<geometry2d::Item_<std::allocator<void> > >::value(const my_item_class::Item&)’
  29. return Definition<geometry2d::Item>::value(m);
  30. ^
  31. In file included from /home/ninmort/catkin_ws/src/lib/geometry2d/src/ros_cast.cpp:8:0:
  32. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:144:22: note: candidate: static const char* ros::message_traits::Definition<geometry2d::Item_<ContainerAllocator> >::value() [with ContainerAllocator = std::allocator<void>]
  33. static const char* value()
  34. ^~~~~
  35. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:144:22: note: candidate expects 0 arguments, 1 provided
  36. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:151:22: note: candidate: static const char* ros::message_traits::Definition<geometry2d::Item_<ContainerAllocator> >::value(const geometry2d::Item_<ContainerAllocator>&) [with ContainerAllocator = std::allocator<void>]
  37. static const char* value(const ::geometry2d::Item_<ContainerAllocator>&) { return value(); }
  38. ^~~~~
  39. /home/ninmort/catkin_ws/devel/.private/geometry2d/include/geometry2d/Item.h:151:22: note: no known conversion for argument 1 from ‘const my_item_class::Item’ to ‘const geometry2d::Item_<std::allocator<void> >&’
  40. make[2]: *** [CMakeFiles/geometry_ros_cast.dir/src/ros_cast.cpp.o] Error 1
  41. make[1]: *** [CMakeFiles/geometry_ros_cast.dir/all] Error 2
  42. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement