[ros-users] Weird ros::ok() actionlib::SimpleActionClient interactions...

Felix Ingrand felix at laas.fr
Fri Feb 4 18:42:08 UTC 2011


Vijay,

On 4 févr. 2011, at 19:12, Vijay Pradeep wrote:

> Can you check what version of the common stack you are running?
> 
> > roscd common
> > cat CMakeLists.txt
> 
> You'll see something like rosbuild_make_distribution(1.x.x)

rosbuild_make_distribution(1.2.2)

felix at cturtle:/opt/ros/cturtle/stacks/common$ grep isServerConnected /opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/simple_action_client.h
felix at cturtle:/opt/ros/cturtle/stacks/common$ 


Compiling I get this:

pr2-action.cc:234: error: ‘class actionlib::SimpleActionClient<learning_actionlib::FibonacciAction_<std::allocator<void> > >’ has no member named ‘isServerConnected’

I can find isServerConnected in connection_monitor.h, but not in simple_action_client.h

felix at cturtle:/opt/ros/cturtle/stacks/common$ grep isServerConnected /opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/*.h
/opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/connection_monitor.h:  bool isServerConnected();
felix at cturtle:/opt/ros/cturtle/stacks/common$ 



> isServerConnected was added in Common 1.2.0.  If you have an up-to-date C-Turtle release, it should definitely be there.
> 
> > 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.
> 
> 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.

OK, I will use isServerConnected... as soon as I can find it ;-)

> 
> Vijay
> 
> On Fri, Feb 4, 2011 at 1:17 AM, Felix Ingrand <felix at laas.fr> wrote:
> Hi Vijay,
> 
> On 3 févr. 2011, at 22:33, Vijay Pradeep wrote:
> 
> > Hi Felix,
> >
> >
> > Waiting for Server:
> > Instead of calling waitForServer(), you can repeatedly call isServerConnected()
> > Refer to the docs: SimpleActionClient::isServerConnected()
> 
> 
> Is SimpleActionClient::isServerConnected() a recent addition? it does not seem to be define in my:
> 
> /opt/ros/cturtle/stacks/common/actionlib/include/actionlib/client/simple_action_client.h
> 
> while it is indeed in :
> 
> http://www.ros.org/doc/api/actionlib/html/simple__action__client_8h_source.html
> 
> Or am I including the wrong simple_action_client.h?
> 
> PS: I am using the Ubuntu 10.4 VirtualBox appliance provided by WG, and which I regularly update.
> --
>     Felix
> The danger of science denial: http://tinyurl.com/yyg5sfd
> 
> 
> 
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
> 
> 
> 
> -- 
> Vijay Pradeep
> Systems Engineer
> Willow Garage, Inc.
> vpradeep at willowgarage.com
> 
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users

-- 
     Felix
You think you are making economical rational decisions...
http://tinyurl.com/kvu9ck





More information about the ros-users mailing list