Sorry Felix, I was looking at the wrong branch when looking at the actionlib revision history.<br><br>isServerConnected is exposed in Common-1.3.0.  Thus, it will be available in the Diamondback release.  For now, you can probably get away with repeatedly calling waitForServer with a very short timeout.<br>

<br>Vijay<br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 10:42 AM, Felix Ingrand <span dir="ltr"><<a href="mailto:felix@laas.fr">felix@laas.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Vijay,<br>
<div class="im"><br>
On 4 févr. 2011, at 19:12, Vijay Pradeep wrote:<br>
<br>
> Can you check what version of the common stack you are running?<br>
><br>
> > roscd common<br>
> > cat CMakeLists.txt<br>
><br>
> You'll see something like rosbuild_make_distribution(1.x.x)<br>
<br>
</div>rosbuild_make_distribution(1.2.2)<br>
<br>
felix@cturtle:/opt/ros/cturtle/stacks/common$ grep isServerConnected /opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/simple_action_client.h<br>
felix@cturtle:/opt/ros/cturtle/stacks/common$<br>
<br>
<br>
Compiling I get this:<br>
<br>
pr2-action.cc:234: error: ‘class actionlib::SimpleActionClient<learning_actionlib::FibonacciAction_<std::allocator<void> > >’ has no member named ‘isServerConnected’<br>
<br>
I can find isServerConnected in connection_monitor.h, but not in simple_action_client.h<br>
<br>
felix@cturtle:/opt/ros/cturtle/stacks/common$ grep isServerConnected /opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/*.h<br>
/opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/connection_monitor.h:  bool isServerConnected();<br>
felix@cturtle:/opt/ros/cturtle/stacks/common$<br>
<div class="im"><br>
<br>
<br>
> isServerConnected was added in Common 1.2.0.  If you have an up-to-date C-Turtle release, it should definitely be there.<br>
><br>
> > should I also check that isServerConnected? before the waitForServer? or isServerConnected just similar to waitForServer but return immediately? in this case, it is probably better to use it in place of waitForServer.<br>


><br>
> In the actual implementation, waitForServer actually repeatedly calls isServerConnected until the timeout is reached or the server connects.  Thus, for your case, you should probably just use isServerConnected.<br>
<br>
</div>OK, I will use isServerConnected... as soon as I can find it ;-)<br>
<div><div></div><div class="h5"><br>
><br>
> Vijay<br>
><br>
> On Fri, Feb 4, 2011 at 1:17 AM, Felix Ingrand <<a href="mailto:felix@laas.fr">felix@laas.fr</a>> wrote:<br>
> Hi Vijay,<br>
><br>
> On 3 févr. 2011, at 22:33, Vijay Pradeep wrote:<br>
><br>
> > Hi Felix,<br>
> ><br>
> ><br>
> > Waiting for Server:<br>
> > Instead of calling waitForServer(), you can repeatedly call isServerConnected()<br>
> > Refer to the docs: SimpleActionClient::isServerConnected()<br>
><br>
><br>
> Is SimpleActionClient::isServerConnected() a recent addition? it does not seem to be define in my:<br>
><br>
> /opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/simple_action_client.h<br>
><br>
> while it is indeed in :<br>
><br>
> <a href="http://www.ros.org/doc/api/actionlib/html/simple__action__client_8h_source.html" target="_blank">http://www.ros.org/doc/api/actionlib/html/simple__action__client_8h_source.html</a><br>
><br>
> Or am I including the wrong simple_action_client.h?<br>
><br>
> PS: I am using the Ubuntu 10.4 VirtualBox appliance provided by WG, and which I regularly update.<br>
> --<br>
>     Felix<br>
> The danger of science denial: <a href="http://tinyurl.com/yyg5sfd" target="_blank">http://tinyurl.com/yyg5sfd</a><br>
><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><br>
><br>
><br>
><br>
> --<br>
> Vijay Pradeep<br>
> Systems Engineer<br>
> Willow Garage, Inc.<br>
> <a href="mailto:vpradeep@willowgarage.com">vpradeep@willowgarage.com</a><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><br>
<br>
--<br>
</div></div><div class="im">     Felix<br>
You think you are making economical rational decisions...<br>
<a href="http://tinyurl.com/kvu9ck" target="_blank">http://tinyurl.com/kvu9ck</a><br>
<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Vijay Pradeep<br>
Systems Engineer<br>
Willow Garage, Inc.<br>
<a href="mailto:tfoote@willowgarage.com" target="_blank"><span></span></a><a href="mailto:vpradeep@willowgarage.com" target="_blank">vpradeep@willowgarage.com</a><br>
<br>