//注册action服务
//注册action的回调函数execute
//把_1和&server作为两个参数,每次调用回调函数都把这两个参数传进去
//_1是占用符,详见https://www.cnblogs.com/blueoverflow/p/4740093.html
actionlib::SimpleActionServer<package::Action> server(n, "action", boost::bind(&execute, _1, &server), false);
boost::bind
最新推荐文章于 2022-01-10 20:58:52 发布