Skip to content

Conversation

@dorkamotorka
Copy link
Contributor

This should solve #94

@dorkamotorka dorkamotorka requested a review from MoffKalast June 8, 2021 12:09
double finalYaw = goalYaw - (yaw + requestedYaw);
if (std::abs(finalYaw) > angularTolerance) {
if (!rotate(finalYaw, drivingFrame)) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we're missing a actionServer->setSucceeded(); over here, the state still never gets changed from active right now.

Copy link
Contributor

Choose a reason for hiding this comment

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

But otherwise it does work 👍

sleep(localizationLatency);
}

actionServer->setSucceeded();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MoffKalast this line is setting it as succeeded

Copy link
Contributor

@MoffKalast MoffKalast Jun 8, 2021

Choose a reason for hiding this comment

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

It doesn't seem to get that far apparently. I'm not sure what rotate() gives back at specific times, but I'd imagine it just returns without setting the status in line 503?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, yes it could be possible that the boolean we are returning from rotate function is wrong. If you are able to reproduce the issue, reopen it.

@dorkamotorka dorkamotorka merged commit 629c081 into kinetic-devel Jun 9, 2021
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

Successfully merging this pull request may close these issues.

3 participants