[ros-users] Nodelets

Nicholas Butko nbutko at ucsd.edu
Sun Dec 5 21:25:27 UTC 2010


The question is how to do that. The problem is how the nodelet can periodically "wake up" and grab a frame from the camera, in order to publish it. One proposed technique was to set a timer. 



On Dec 5, 2010, at 12:49 PM, Stuart Glaser <sglaser at willowgarage.com> wrote:

> Hi Nick,
> 
> On Sun, Dec 5, 2010 at 8:44 AM, Nicholas Butko <nbutko at ucsd.edu> wrote:
>> Thanks Tully. This is helpful.
>> So the suggestion, as I understand it, is to have a "camera nodelet manager"
>> that (a) has a nodelet::Loader and (b) has a while (ros::ok()) {} loop.
>> Something like
>> {{{
>> ros::init(argc, argv, "CameraImageServer");
>> ros::NodeHandle n;
>> nodelet::Loader l; //This is what we need to be a nodelet manager
>> ...
> 
> I think you could even write your camera driver as a nodelet itself,
> and just load it into a standard nodelet manager.
> 
> Just adding another option to an already overflowing list.
> 
> -- 
> Stuart Glaser
> sglaser -at- willowgarage -dot- com
> www.willowgarage.com
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users



More information about the ros-users mailing list