~shadowrobot/sr-ros-interface/trunk

« back to all changes in this revision

Viewing changes to sr_mechanism_controllers/src/joint_spline_trajectory_action_controller.cpp

  • Committer: Ugo Cupcic
  • Date: 2012-07-27 09:19:40 UTC
  • mfrom: (377.1.1 shadow_robot)
  • Revision ID: ugo@shadowrobot.com-20120727091940-xyoouj843k0kc434
Corrected small issues to get manip stack working with this new stack (missing files and setups)

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
  joint_labels.push_back("WRJ1");
165
165
 
166
166
  //look for controllers and build controller name to joint map
167
 
  if( ros::service::waitForService("sr_controller_manager/list_controllers",4) )
 
167
  if( ros::service::waitForService("sr_controller_manager/list_controllers",20000) )
168
168
  {
169
169
    use_sendupdate=false;
170
170
    ros::ServiceClient controller_list_client = nh.serviceClient<pr2_mechanism_msgs::ListControllers>("sr_controller_manager/list_controllers");
212
212
  }
213
213
 
214
214
  ROS_INFO("waiting for getJointState");
215
 
  if( ros::service::waitForService("getJointState",4))
 
215
  if( ros::service::waitForService("getJointState",20000))
216
216
  {
217
217
    // open persistent link to joint_state service
218
218
    joint_state_client = nh.serviceClient<sr_utilities::getJointState>("getJointState",true);