-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MiJiao #42
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前的问题解决以后可以在对话下面按一下resolve,这样才能走完审批流程
#include <string> | ||
|
||
|
||
void SigintHandler(int sig) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先前没看到这个,其实ros内部已经注册了一个信号管理器,当收到停止信号的时候ros::ok()的结果会变为false,根据你的代码此时将退出while主循环,可以在主循环后面加上退出处理这一部分即可
BTW,ros守护进程会监视node是否正常停止,如果在发送停止信号后15s(默认时间)后该node还没有正常结束将被强制杀死
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
但这样改了之后我试了一下似乎ros::shutdown()会先被调用我就发送不了最后的服务了
No description provided.