Skip to content
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

Moveit attempts to execute incomplete trajectories, causing some weird motions to be displayed in RVIZ #2969

Open
Schteve-Earl opened this issue Nov 18, 2021 · 1 comment
Labels

Comments

@Schteve-Earl
Copy link

Description

I have a Moveit config with a manipulator and a gripper motion group. Moveit Task Constructor creates solutions that I segment and then execute separately. I'm running into an issue where I construct an ExecutableMotionPlan from a moveit_msgs::RobotTrajectory and pass it to PlanExecution::executeAndMonitor(). PlanExecution will still attempt to execute the trajectory if the size of the positions vector changes midway through the trajectory points list. This occurs when I try to append a trajectory for the gripper onto a trajectory that contains my motion group that includes both the manipulator and the gripper. The resulting execution looks something like this:

crazy_gripper_motion_cut

Your environment

  • ROS Distro: Melodic
  • OS Version: Ubuntu 18.04
  • Source build, master branch

Steps to reproduce

Create and execute a plan using a RobotTrajectory that has all the joint names of both motion groups. Fill the first half with a trajectory that includes all joint positions, and then remove the pvae values for one of the motion groups from the last few points.

Expected behaviour

Moveit should never attempt to execute an incomplete trajectory. Instead, an error should be thrown stating that the motion cannot be executed because it is incomplete or changes motion groups midway through the JointTrajectory message.

Actual behaviour

See gif above.

@welcome
Copy link

welcome bot commented Nov 18, 2021

Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant