Skip to content

Make trajectory monitoring optional #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions capabilities/src/execute_task_solution_capability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ bool ExecuteTaskSolutionCapability::constructMotionPlan(const moveit_task_constr
// define individual variable for use in closure below
const std::string description = std::to_string(i + 1) + "/" + std::to_string(solution.sub_trajectory.size());
exec_traj.description = description;
exec_traj.trajectory_monitoring = sub_traj.execution_info.trajectory_monitoring;

const moveit::core::JointModelGroup* group = nullptr;
{
Expand Down
3 changes: 3 additions & 0 deletions msgs/msg/TrajectoryExecutionInfo.msg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# List of controllers to use when executing the trajectory
string[] controller_names
# 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.
bool trajectory_monitoring

Loading