在使用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
)
由於目前還在學習之中,等深入理解後在來刪除不需要的。