Add capability of execute known trajectory with a ROS action#60
Add capability of execute known trajectory with a ROS action#60rhaschke merged 10 commits intomoveit:indigo-develfrom
Conversation
5c4fca4 to
26c5d0d
Compare
| { | ||
| std::string response = "Cannot execute trajectory since ~allow_trajectory_execution was set to false"; | ||
| action_res.error_code.val = moveit_msgs::MoveItErrorCodes::CONTROL_FAILED; | ||
| execute_action_server_->setAborted(action_res, response); |
There was a problem hiding this comment.
Is the lack of a return here on purpose?
There was a problem hiding this comment.
Thanks! I fixed it.
| setExecutePathState(IDLE); | ||
| } | ||
|
|
||
| void MoveGroupExecutePathAction::executePathCallback_Execute(const moveit_msgs::ExecutePathGoalConstPtr& goal, moveit_msgs::ExecutePathResult &action_res) |
|
Thanks for porting this to the new repo, I'm excited about this new feature |
|
Thanks for the reviews. I fixed them. |
| void MoveGroupExecutePathAction::executePathCallback_Execute(const moveit_msgs::ExecutePathGoalConstPtr& goal, | ||
| moveit_msgs::ExecutePathResult &action_res) | ||
| { | ||
| ROS_INFO("Execution request received for ExecutePath action."); |
There was a problem hiding this comment.
missed this earlier: needs _NAMED("move_group"
| moveit_msgs::ExecuteKnownTrajectory::Response res; | ||
| req.trajectory = plan.trajectory_; | ||
| req.wait_for_execution = wait; | ||
| if (execute_service_.call(req, res)) |
There was a problem hiding this comment.
Since we are no longer using execute_service_ within move_group, I think we can remove it from this class (but keep the capability in general for backwards compatibility)
e.g. we don't need execute_service_ as a MoveGroup member variable and we don't need to initialize it
|
When we merge this, is it ok if we squash-merge to cleanup the multiple commits? |
Yeah, no problem. |
|
just merged the moveit_msgs change and retriggered this travis build |
| (node_handle_, move_group::PLACE_ACTION, false)); | ||
| waitForAction(place_action_client_, wait_for_server, move_group::PLACE_ACTION); | ||
|
|
||
| execute_service_ = node_handle_.serviceClient<moveit_msgs::ExecuteKnownTrajectory>(move_group::EXECUTE_SERVICE_NAME); |
There was a problem hiding this comment.
You can also remove #include <moveit_msgs/ExecuteKnownTrajectory.h>
|
@davetcoleman Please wait before merging. I want to have a look too. |
|
@rhaschke sounds great. this current PR doesn't break any old functionality AFAIK, but I think you're saying that what is missing is a warning message and inline comments telling users not to use the old excute_service. Then we can remove it completely in ROS-L |
|
@wkentaro @davetcoleman: Sorry, I accidentally pressed merged, while I was looking for the commandline instructions. I reverted for now, because I have some more comments.
NO! There are lots of The Furthermore, you should adapt the template of moveit_setup_assistant. @wkentaro I'm afraid that you need to reopen as new PR. I apologize. |
|
Reopened here #85 |
|
@rhaschke good points |
|
Fixed in #85 |
Moved from moveit/moveit_ros#719
Depends on moveit/moveit_msgs#24