<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi Dejan,</DIV>
<DIV> </DIV>
<DIV>Thanks for the feedback. I managed to get my bg subtraction filter to work for 2D backgrounds.</DIV>
<DIV>Thanks for the link; I will check it</DIV>
<DIV> </DIV>
<DIV>Peshala <BR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Dejan Pangercic <dejan.pangercic@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> ros-users@code.ros.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, April 7, 2010 17:41:34<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [ros-users] Filters<BR></FONT><BR>Hi Peshala,<BR><BR>just on the side, my colleague has written a box filter some time ago<BR>in case you want to do some really trivial bg subtraction:<BR><A href="http://tum-ros-pkg.svn.sourceforge.net/viewvc/tum-ros-pkg/mapping/cloud_tools/src/box_filter.cpp?revision=239&view=markup" target=_blank>http://tum-ros-pkg.svn.sourceforge.net/viewvc/tum-ros-pkg/mapping/cloud_tools/src/box_filter.cpp?revision=239&view=markup</A><BR><BR>cheers, D.<BR>On Wed, Mar 31, 2010 at 9:49 PM, Tully Foote <<A href="mailto:tfoote@willowgarage.com"
 ymailto="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</A>> wrote:<BR>> Peshala,<BR>><BR>> For question 1 you need to add a plugin description file.  See<BR>> <A href="http://www.ros.org/wiki/pluginlib " target=_blank>http://www.ros.org/wiki/pluginlib </A> linked from here<BR>> <A href="http://www.ros.org/wiki/filters " target=_blank>http://www.ros.org/wiki/filters </A> You will both need to add this file and<BR>> export it in the manifest.<BR>><BR>> To run it inside the scan_to_scan_filter_chain node you just need to add<BR>> your filter to the nodes configuration parameters.  See 3.2.2 in<BR>> <A href="http://www.ros.org/wiki/filters#Steps_to_create_a_filter " target=_blank>http://www.ros.org/wiki/filters#Steps_to_create_a_filter </A> There is specific<BR>> documentation on scan_to_scan_filter_chain node at<BR>> <A href="http://www.ros.org/wiki/laser_filters"
 target=_blank>http://www.ros.org/wiki/laser_filters</A><BR>><BR>> For question 2, filters can be run in any node.  The filters::FilterChain<BR>> class is the recommended way to instantiate filters in code.  However for<BR>> your purposes the scan_to_scan_filter_chain node is likely the easiest.<BR>><BR>> Tully<BR>><BR>> On Wed, Mar 31, 2010 at 12:05 AM, Peshala Jayasekara <<A href="mailto:peshala_24@yahoo.com" ymailto="mailto:peshala_24@yahoo.com">peshala_24@yahoo.com</A>><BR>> wrote:<BR>>><BR>>> Dear Ros-Users,<BR>>><BR>>> I am thinking of writing a background subtraction filter for my incoming<BR>>> laser data through hokoyo_node.<BR>>><BR>>> Here are my problems.<BR>>><BR>>> 1) After going through the examples of laser_filters, I thought I can use<BR>>> scan_to_scan_filter_chain node to run "background_subtraction_filter-which<BR>>> is the one
 I am writing, inside it. However, it gave an error msg saying<BR>>><BR>>> According to the loaded plugin descriptions the class<BR>>> LaserBackgroundSubtractionFilter with base class type<BR>>> filters::FilterBase<sensor_msgs::LaserScan> does not exist.<BR>>><BR>>> Is there a way to run a user's filter inside scan_to_scan_filter_chain<BR>>> node?<BR>>><BR>>> 2) On the other hand, once you write your own filter according to the<BR>>> "Implementing a simple filter" tutorial how do you run it - what node should<BR>>> it be associated with ?<BR>>><BR>>> Thank you in advance<BR>>> Peshala<BR>>><BR>>><BR>>><BR>>> ________________________________<BR>>> Get your preferred Email name!<BR>>> Now you can @ymail.com and @rocketmail.com.<BR>>> _______________________________________________<BR>>> ros-users mailing list<BR>>>
 <A href="mailto:ros-users@code.ros.org" ymailto="mailto:ros-users@code.ros.org">ros-users@code.ros.org</A><BR>>> <A href="https://code.ros.org/mailman/listinfo/ros-users" target=_blank>https://code.ros.org/mailman/listinfo/ros-users</A><BR>>><BR>><BR>><BR>><BR>> --<BR>> Tully Foote<BR>> Systems Engineer<BR>> Willow Garage, Inc.<BR>> <A href="mailto:tfoote@willowgarage.com" ymailto="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</A><BR>> (650) 475-2827<BR>><BR>> _______________________________________________<BR>> ros-users mailing list<BR>> <A href="mailto:ros-users@code.ros.org" ymailto="mailto:ros-users@code.ros.org">ros-users@code.ros.org</A><BR>> <A href="https://code.ros.org/mailman/listinfo/ros-users" target=_blank>https://code.ros.org/mailman/listinfo/ros-users</A><BR>><BR>><BR><BR><BR><BR>-- <BR>MSc. Dejan Pangercic<BR>PhD Student/Researcher<BR>Computer Science IX<BR>Technische
 Universität München<BR>Telephone: +49 (89) 289-17780<BR>E-Mail: <A href="mailto:dejan.pangercic@in.tum.de" ymailto="mailto:dejan.pangercic@in.tum.de">dejan.pangercic@in.tum.de</A><BR>WWW: <A href="http://ias.cs.tum.edu/people/pangercic" target=_blank>http://ias.cs.tum.edu/people/pangercic</A><BR>_______________________________________________<BR>ros-users mailing list<BR><A href="mailto:ros-users@code.ros.org" ymailto="mailto:ros-users@code.ros.org">ros-users@code.ros.org</A><BR><A href="https://code.ros.org/mailman/listinfo/ros-users" target=_blank>https://code.ros.org/mailman/listinfo/ros-users</A><BR></DIV></DIV></div><br>
      <hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> Get your new Email address! </a> <br>
Grab the Email name you've always wanted before someone else does!</body></html>