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

Added missing case for external axes #94

Merged
merged 2 commits into from
May 26, 2020

Conversation

jontje
Copy link
Contributor

@jontje jontje commented May 22, 2020

Fix for missed case in PR #88.

I.e. parsing of velocity commands when configured to only use external axes.

@jontje jontje requested a review from gavanderhoorn May 22, 2020 12:08
Comment on lines +595 to +607
case None:
{
if (robot_velocity.values_size() == 0)
{
for (int i = 0; i < external_velocity.values_size() && i < ext_condition; ++i)
{
speed_reference->mutable_externaljoints()->add_joints(external_velocity.values(i));
}

speed_ok = true;
}
}
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would perhaps be nice to add a line or two of comments explaining why this is necessary.

@jontje jontje merged commit 8c6df4e into ros-industrial:master May 26, 2020
@jontje
Copy link
Contributor Author

jontje commented May 26, 2020

Thanks for the review @gavanderhoorn 👍

@jontje jontje deleted the fix_external_axes_support branch June 1, 2020 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants