<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>Thank you for
the very clear tutorial.  Is there a way to give sendGoal callbacks that are
members of a Client class?  It seems to only want global functions or perhaps
static members…<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> ros-users-bounces@code.ros.org
[mailto:ros-users-bounces@code.ros.org] <b>On Behalf Of </b>Vijay Pradeep<br>
<b>Sent:</b> Friday, September 10, 2010 6:35 PM<br>
<b>To:</b> ros-users@code.ros.org<br>
<b>Subject:</b> Re: [ros-users] actionlib tutorials<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Ben,<br>
<br>
I'm sorry that you're having trouble learning how to use actionlib.  I
just put together a fairly short example of how to use the simple action client
callbacks:<br>
<a
href="http://www.ros.org/wiki/actionlib_tutorials/Tutorials/Writing%20a%20Callback%20Based%20Simple%20Action%20Client">http://www.ros.org/wiki/actionlib_tutorials/Tutorials/Writing%20a%20Callback%20Based%20Simple%20Action%20Client</a><br>
<br>
Hopefully this will give you something to build off of.  If it doesn't
answer your questions, please let me know, and I can try iterating on the
example.<br>
<br>
Good luck,<br>
Vijay<o:p></o:p></p>

<div>

<p class=MsoNormal>On Fri, Sep 10, 2010 at 10:46 AM, Blaise Gassend <<a
href="mailto:blaise@willowgarage.com">blaise@willowgarage.com</a>> wrote:<o:p></o:p></p>

<p class=MsoNormal>There are some examples in the linux_networking stack. They
are still<br>
under heavy development, and not particularly simple, but should give<br>
you the general idea.<br>
<br>
C++<br>
<a
href="https://code.ros.org/svn/ros-pkg/stacks/linux_networking/trunk/wpa_supplicant_node/src/nodes/wpa_supplicant_node.cpp"
target="_blank">https://code.ros.org/svn/ros-pkg/stacks/linux_networking/trunk/wpa_supplicant_node/src/nodes/wpa_supplicant_node.cpp</a><br>
<br>
Python<br>
<a
href="https://code.ros.org/svn/ros-pkg/stacks/linux_networking/branches/network_monitor_udp/nodes/udpmonsourcenode.py"
target="_blank">https://code.ros.org/svn/ros-pkg/stacks/linux_networking/branches/network_monitor_udp/nodes/udpmonsourcenode.py</a><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><br>
On Fri, Sep 10, 2010 at 10:37 AM, Axelrod, Benjamin <<a
href="mailto:baxelrod@irobot.com">baxelrod@irobot.com</a>> wrote:<br>
> I am a little disappointed in the actionlib tutorials (for boxturtle).
 They<br>
> all seem to demonstrate the same pattern, where the client blocks while
the<br>
> server is running.  Does anyone have any examples where the client
actually<br>
> subscribes to the Done, Active, and Feedback messages?  Ideally, the
client<br>
> would not simply call: client.waitForResult(), but instead use the full:<br>
><br>
><br>
><br>
> sendGoal  (  const Goal &   goal,<br>
><br>
>            
SimpleDoneCallback  done_cb,<br>
><br>
>            
SimpleActiveCallback  active_cb,<br>
><br>
>            
SimpleFeedbackCallback  feedback_cb<br>
><br>
> )<br>
><br>
><br>
><br>
> I can’t figure out the proper function signature for the Done, Active, and<br>
> Feedback callbacks.<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
> -Ben<br>
><br>
><br>
><br>
> --<br>
><br>
> Ben Axelrod<br>
><br>
> Research Scientist<br>
><br>
> iRobot Corporation<br>
><br>
> 8 Crosby Drive, Mail Stop 8-1<br>
><br>
> Bedford, MA 01730<br>
><br>
> (781) 430-3315 (Tel)<br>
><br>
> (781) 960-2628 (Fax)<br>
><br>
> <a href="mailto:baxelrod@irobot.com">baxelrod@irobot.com</a><br>
><br>
><br>
><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal>> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="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>
ros-users mailing list<br>
<a href="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><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br clear=all>
<br>
-- <br>
Vijay Pradeep<br>
Systems Engineer<br>
Willow Garage, Inc.<br>
<a href="mailto:vpradeep@willowgarage.com" target="_blank">vpradeep@willowgarage.com</a><o:p></o:p></p>

</div>

</body>

</html>