Skip to content

Commit c44d0ca

Browse files
committed
workaround for MoveIt PlanningScene bug
moveit/moveit#1835
1 parent bcc652b commit c44d0ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

capabilities/src/execute_task_solution_capability.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,12 @@ bool ExecuteTaskSolutionCapability::constructMotionPlan(const moveit_task_constr
173173
if (!planning_scene::PlanningScene::isEmpty(sub_traj.scene_diff)) {
174174
#endif
175175
ROS_DEBUG_STREAM_NAMED("ExecuteTaskSolution", "apply effect of " << description);
176-
return context_->planning_scene_monitor_->newPlanningSceneMessage(sub_traj.scene_diff);
176+
bool result = context_->planning_scene_monitor_->newPlanningSceneMessage(sub_traj.scene_diff);
177+
#if MOVEIT_MASTER
178+
// HACK: workaround for https://github.com/ros-planning/moveit/issues/1835
179+
ros::Duration(0.1).sleep();
180+
#endif
181+
return result;
177182
}
178183
return true;
179184
};

0 commit comments

Comments
 (0)