Re: [ros-users] questions about nodelets

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
+ (text/html)
このメッセージを削除
このメッセージに返信
著者: User discussions
日付:  
To: User discussions
題目: Re: [ros-users] questions about nodelets
>
>
> Sure. I assume the callbacks just don't get called any more. But, a
> device thread (see below) needs to know when to terminate. Does it
> still check ros::ok() or ros::shutdown()?
>


No, you'd check some flag that you set in your nodelet's destructor, and
then the destructor joins on that thread. Your nodelet may be getting
stopped even though the node itself is still running.

Josh