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

Angular Velocity of L/R Wheels #140

Merged
merged 20 commits into from
Oct 24, 2024
Merged

Conversation

thisjustin123
Copy link
Collaborator

@thisjustin123 thisjustin123 commented Oct 20, 2024

Description:

Adds the ability to manually set the angular velocity of the left and right wheels individually through the robot.TargetVelocity() command. To be safe, this functionality leverages the existing ToborMove.cs logic of setting a target velocity rather than setting the velocity explicitly.

Resolves #134.

Test Plan

Adds some rough test cases under test_bathing_env. test_target_angle_drive tests the use of this function.

Notes

Although I am (pretty sure that I'm) pushing the angular velocities correctly, as-is, due to the nature of the physics sim or perhaps the robot drive, some strange, possibly unexpected behavior occurs when passing some values.

For example, driving backwards for 300 steps goes further than driving forwards; about 2x further. Again, I'm not sure why...

@thisjustin123
Copy link
Collaborator Author

Last test case seems to be very clearly indicating wrong behavior. Even if driving a turn right, the angle appears to keep decreasing? Not sure why this is happening...

@thisjustin123
Copy link
Collaborator Author

Must let robot come to a complete stop before turning, lol.

Copy link
Member

@YoruCathy YoruCathy left a comment

Choose a reason for hiding this comment

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

Tested locally, good to merge.

@YoruCathy YoruCathy merged commit 5c91cb9 into phy-robo-care Oct 24, 2024
1 check passed
@thisjustin123 thisjustin123 deleted the justin/wheel-velocity branch November 13, 2024 16:57
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