Can you check what version of the <b><span style="font-family: courier new,monospace;">common</span></b> stack you are running?<br><br><b><span style="font-family: courier new,monospace;">> roscd common</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">> cat CMakeLists.txt</span></b><br><br>You'll see something like <b><span style="font-family: courier new,monospace;">rosbuild_make_distribution(1.x.x)</span></b><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, <b style="font-family: courier new,monospace;">waitForServer</b> actually repeatedly calls <b style="font-family: courier new,monospace;">isServerConnected </b>until the timeout is reached or the server connects.  Thus, for your case, you should probably just use <b style="font-family: courier new,monospace;">isServerConnected</b>.<br>

<br>Vijay<br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 1:17 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;">

Hi Vijay,<br>
<div class="im"><br>
On 3 févr. 2011, at 22:33, Vijay Pradeep wrote:<br>
<br>
> Hi Felix,<br>
><br>
><br>
</div><div class="im">> Waiting for Server:<br>
> Instead of calling waitForServer(), you can repeatedly call isServerConnected()<br>
> Refer to the docs: SimpleActionClient::isServerConnected()<br>
<br>
<br>
</div>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>
<div class="im">--<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>
</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>