Skip to content

Commit 3c3fb87

Browse files
sjahrmarioprats
andauthored
Make trajectory monitoring optional (#17)
Co-authored-by: Mario Prats <[email protected]>
1 parent 21f6a91 commit 3c3fb87

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

capabilities/src/execute_task_solution_capability.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ bool ExecuteTaskSolutionCapability::constructMotionPlan(const moveit_task_constr
151151
// define individual variable for use in closure below
152152
const std::string description = std::to_string(i + 1) + "/" + std::to_string(solution.sub_trajectory.size());
153153
exec_traj.description = description;
154+
exec_traj.trajectory_monitoring = sub_traj.execution_info.trajectory_monitoring;
154155

155156
const moveit::core::JointModelGroup* group = nullptr;
156157
{

msgs/msg/TrajectoryExecutionInfo.msg

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# List of controllers to use when executing the trajectory
22
string[] controller_names
3+
# MoveIt's PlanExecution capability that is used to execute MTC solutions has the ability to monitor a trajectory for collisions while it's being executed. This is useful in dynamic environments where obstacles may change between the time the plan was computed and its execution, or even during execution. If this flag is set to true, MoveIt's online collision monitor will be enabled, which can stop the trajectory at any point during execution if a collision is predicted.
4+
bool trajectory_monitoring
5+

0 commit comments

Comments
 (0)