No subject
Tue Sep 21 18:39:23 UTC 2010
done in onInit() and in subscriber callbacks. </blockquote><div><br>onInit =
is not supposed to block and will cause problems if it does.=A0=A0 <br><br>
</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex;=
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">So, to impl=
ement a camera server, I'd either have to never finish initializing (is=
this okay?) or to set up an extra node that sends "wakeup" messa=
ges every 30 ms or so, and grab frames in the callback.<br>
<br></blockquote><div></div><blockquote class=3D"gmail_quote" style=3D"marg=
in: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-l=
eft: 1ex;">
Is there a way to set up a "callMeEvery30MS" callback function in=
a nodelet? Or even a "callAndLetMeRunForeverWhileOtherThreadsDoTheirT=
hing()" callback function that could then run an infinite loop?<br>
</blockquote><div><br>If=20
you want periodic operations.=A0 The ros::Timer object will give you=20
periodic callbacks.=A0 <a href=3D"http://www.ros.org/doc/api/roscpp/html/cl=
assros_1_1Timer.html">http://www.ros.org/doc/api/roscpp/html/classros_1_1Ti=
mer.html</a></div></div><br>Tully<br><br>
--001636c5b3ab01ed200496a59a6e--
More information about the ros-users
mailing list