Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Commit

Permalink
Merge pull request #571 from ymollard/indigo-devel
Browse files Browse the repository at this point in the history
Added python wrapper for MoveGroup.asyncExecute()
  • Loading branch information
davetcoleman committed Mar 27, 2015
2 parents 1ec46de + 8e80194 commit f843955
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,13 @@ class MoveGroupWrapper : protected py_bindings_tools::ROScppInitializer,
return execute(plan);
}

bool asyncExecutePython(const std::string &plan_str)
{
MoveGroup::Plan plan;
py_bindings_tools::deserializeMsg(plan_str, plan.trajectory_);
return asyncExecute(plan);
}

std::string getPlanPython()
{
MoveGroup::Plan plan;
Expand Down Expand Up @@ -435,6 +442,7 @@ static void wrap_move_group_interface()
MoveGroupClass.def("async_move", &MoveGroupWrapper::asyncMovePython);
MoveGroupClass.def("move", &MoveGroupWrapper::movePython);
MoveGroupClass.def("execute", &MoveGroupWrapper::executePython);
MoveGroupClass.def("async_execute", &MoveGroupWrapper::asyncExecutePython);
moveit::planning_interface::MoveItErrorCode (MoveGroupWrapper::*pick_1)(const std::string&) = &MoveGroupWrapper::pick;
MoveGroupClass.def("pick", pick_1);
MoveGroupClass.def("pick", &MoveGroupWrapper::pickGrasp);
Expand Down

0 comments on commit f843955

Please sign in to comment.