5.3.3通过c++查询TF关系运行时报错
-
Ubuntu版本20.04,ROS2版本foxy。如题,按照视频中代码输入后编译正常,运行前也进行了source,运行时报错chihaya@chihaya-virtual-machine:~/chapt5/chapt5_ws$ ros2 run demo_cpp_tf tf_listener
terminate called after throwing an instance of 'std::runtime_error'
what(): Node has already been added to an executor.
询问deepseek的解决方法是删除(*buffer_,this)中的this,但是删除后只会输出警告Warning: Invalid frame ID "base_link" passed to canTransform argument target_frame - frame does not exist
at line 133 in /tmp/binarydeb/ros-foxy-tf2-0.13.14/src/buffer_core.cpp
求大佬解决!