ROS2 Topic Subscription Using Lambda Funtction
Can anybody please help me with this? why is the following wring?
auto temp_nh = rclcpp::Node::make_shared("foo_node");
auto fcnptr = [ ](geometry_msgs::msg::Point msg) { geometry_msgs::msg::Pose pick_pose; pick_pose.position = msg;};
auto assisted_vision_sub = temp_nh->create_subscription<geometry_msgs::msg::Point>(topic_name, rclcpp::QoS(1), std::bind(fcnptr,std::placeholders::_1));