turtle_tf2_listener.cpp:(.text+0x327):对‘tf2_ros::Buffer::Buffer(ros::Duration, bool)’未定义的引用

在使用ROS坐标转换tf2时,编译出现

turtle_tf2_listener.cpp:(.text+0x327):对‘tf2_ros::Buffer::Buffer(ros::Duration, bool)’未定义的引用

错误。
可以尝试添加

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  tf2
  tf2_bullet
  tf2_eigen
  tf2_geometry_msgs
  tf2_kdl
  tf2_msgs
  tf2_py
  tf2_ros
  tf2_sensor_msgs
  tf2_tools
  tf
)

由于目前还在学习之中,等深入理解后在来删除不需要的。

发布了125 篇原创文章 · 获赞 63 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/u011573853/article/details/105186371