Skip to content

[move_group_interface] unable to wait forever for execution capability to come online#335

Merged
v4hn merged 1 commit intomoveit:kinetic-develfrom
davetcoleman:kinetic-move-group-wait
Nov 2, 2016
Merged

[move_group_interface] unable to wait forever for execution capability to come online#335
v4hn merged 1 commit intomoveit:kinetic-develfrom
davetcoleman:kinetic-move-group-wait

Conversation

@davetcoleman
Copy link
Copy Markdown
Member

Fix for recent changes by@rhaschke in #94

When the default constructor is used, such as in the moveit_tutorials, the timeout for the capabilities of move_group is should be zero indicating wait forever. For the new execution actionlib interface, it would wait 0 time then throw a runtime error. In this PR I mimicked the behavior of the original waitForAction() function that the temporary waitForExecuteActionOrService() function was suppose to have, including renaming a variable to be the same for clarity.

I also added some helper console feedback.

This fixes our tutorials in Kinetic.

}

void waitForExecuteActionOrService(ros::WallTime timeout_for_servers)
void waitForExecuteActionOrService(ros::WallTime timeout)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var rename mimics void waitForAction(const T &action, const std::string &name, const ros::WallTime &timeout, double allotted_time)

ROS_ERROR_STREAM_NAMED("planning_interface", "Unable to find execution action on topic: "
<< node_handle_.getNamespace() + move_group::EXECUTE_ACTION_NAME
<< " or service: " << node_handle_.getNamespace() + move_group::EXECUTE_SERVICE_NAME);
throw std::runtime_error("No Trajectory execution capability available.");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was previously always being thrown when default MoveGroupInterface constructor used

@v4hn
Copy link
Copy Markdown
Contributor

v4hn commented Nov 1, 2016

testing failed due to #311 and because apparently you violated the format :P

@davetcoleman davetcoleman force-pushed the kinetic-move-group-wait branch from 60c475f to 946d694 Compare November 1, 2016 17:54
@davetcoleman
Copy link
Copy Markdown
Member Author

Format fixed.

@davetcoleman
Copy link
Copy Markdown
Member Author

ping - this is an important bug fix

@v4hn
Copy link
Copy Markdown
Contributor

v4hn commented Nov 2, 2016

lgtm.
could you please backport this as required?

@v4hn v4hn merged commit d0da057 into moveit:kinetic-devel Nov 2, 2016
@davetcoleman davetcoleman deleted the kinetic-move-group-wait branch November 3, 2016 00:25
davetcoleman added a commit to davetcoleman/moveit that referenced this pull request Nov 3, 2016
@davetcoleman
Copy link
Copy Markdown
Member Author

Done for jade, does not apply for indigo

v4hn pushed a commit that referenced this pull request Nov 3, 2016
@v4hn
Copy link
Copy Markdown
Contributor

v4hn commented Nov 5, 2016

On Wed, Nov 02, 2016 at 05:37:37PM -0700, Dave Coleman wrote:

Done for jade, does not apply for indigo

True, but it does apply to the resp. pull-request for indigo that I did not get around to review.

This bug-fix might actually be the fix for the issue I was concerned about there, but I didn't look at the issue in detail.
Sorry, I'm rather busy with teaching these weeks, everyone else can look at that too though. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants