小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
ros2在cyberdog编译过程中出现的问题
-
auto send_goal_options = rclcpp_action::Client<AudioPlayT>::SendGoalOptions();
send_goal_options.goal_response_callback =
std::bind(&Bms::goal_response_callback, this, _1);
send_goal_options.feedback_callback =
std::bind(&Bms::feedback_callback, this, _1, _2);
send_goal_options.result_callback =
std::bind(&Bms::result_callback, this, _1);
第三行报错,错误如下/home/tang/cyberdog_ws/src/cyberdog_ros2/cyberdog_ception/cyberdog_bms/src/bms_recv.cpp:562:53: 错误:no match for ‘operator=’ (operand types are ‘rclcpp_action::Client<interaction_msgs::action::AudioPlay>::GoalResponseCallback’ {aka ‘std::function<void(std::shared_ptr<rclcpp_action::ClientGoalHandle<interaction_msgs::action::AudioPlay> >)>’} and ‘std::_Bind_helper<false, void (Bms::)(std::shared_future<std::shared_ptr<rclcpp_action::ClientGoalHandle<interaction_msgs::action::AudioPlay> > >), Bms, const std::_Placeholder<1>&>::type’)
562 | std::bind(&Bms::goal_response_callback, this, _1);