ROS2를 공부하면서 이 부분이 잘 몰라서 헤매었다... 스마트 포인터와 람다 함수가 얽혀있는 부분에서 이해가 안되서 쩔쩔 매었다. https://github.com/ros2/demos/blob/rolling/intra_process_demo/src/two_node_pipeline/two_node_pipeline.cpp GitHub - ros2/demos Contribute to ros2/demos development by creating an account on GitHub. github.com 일단 요지는.. 아래 코드에서 weak_ptr이 뜬금없이 들어가있는 거다. std::weak_ptr captured_pub = pub_; 왜 끈금없이 weak_ptr로 할까? 뭔가 람다 함수 내부에서 순환참조..