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

MoveItVisualTools::publishTrajectoryPath rejects valid Multi-DoF paths #91

Open
werner291 opened this issue Apr 27, 2021 · 1 comment
Open

Comments

@werner291
Copy link

Hello,
the function bool MoveItVisualTools::publishTrajectoryPath(const moveit_msgs::RobotTrajectory& trajectory_msg, const robot_state::RobotStateConstPtr robot_state, bool blocking) has this bit in it:

// Check if we have enough points
if (!trajectory_msg.joint_trajectory.points.size())
{
    ROS_WARN_STREAM_NAMED(name_, "Unable to publish trajectory path because trajectory has zero points");
    return false;
}

Trajectories that have multi-DoF points, but no regular points, get rejected by that check.

@simonschmeisser
Copy link
Contributor

Please test if adding something like || (trajectory_msg.joint_trajectory.multi_dof.size() != 0) fixes your problem and create a pull request (PR) for it. Ideally also provide a small example to test this (does not need to be a full unit-test, just something to run quickly)

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

No branches or pull requests

2 participants