在使用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
)
由于目前还在学习之中,等深入理解后在来删除不需要的。