Skip to content

Linear and rotational part as separate maneuvers - #95

Merged
dorkamotorka merged 1 commit into
kinetic-develfrom
feature-rotation-only
Jun 9, 2021
Merged

Linear and rotational part as separate maneuvers#95
dorkamotorka merged 1 commit into
kinetic-develfrom
feature-rotation-only

Conversation

@dorkamotorka

Copy link
Copy Markdown
Contributor

This should solve #94

@dorkamotorka
dorkamotorka requested a review from MoffKalast June 8, 2021 12:09
Comment thread src/move_basic.cpp
double finalYaw = goalYaw - (yaw + requestedYaw);
if (std::abs(finalYaw) > angularTolerance) {
if (!rotate(finalYaw, drivingFrame)) {
return;

Copy link
Copy Markdown
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
Copy Markdown
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 👍

Comment thread src/move_basic.cpp
sleep(localizationLatency);
}

actionServer->setSucceeded();

Copy link
Copy Markdown
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

@MoffKalast MoffKalast Jun 8, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
@michael545
michael545 deleted the feature-rotation-only branch January 14, 2026 13:13
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.

2 participants