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

Robot Slightly turning to the right. #83

Open
dwhite18 opened this issue Mar 20, 2024 · 10 comments
Open

Robot Slightly turning to the right. #83

dwhite18 opened this issue Mar 20, 2024 · 10 comments

Comments

@dwhite18
Copy link

I've noticed when controlling via teleop_twist_keyboard the robot and giving a command to go purely forward the robot will slowly arc towards the right. I've check the inputs to the physics components for the wheels during runtime and the values are correct with the right being the negative of the left. These are the target angular velocities for the wheels.

Second I noticed that the robot moves even when it is supposed to be stationary.

What could be causing these?

@james-yoo
Copy link
Contributor

Same issue here

@dwhite18
Copy link
Author

I'm getting about 1 degree per meter with drift by setting the friction lower for the physics material for the wheels. When the friction is higher I'm seeing a much greater increase in drift.

@dwhite18
Copy link
Author

I found that if I flip the rotation of the right wheel physics component and also flip the sign on the right wheel velocity calculation in the differential drive the drift practically disappears.

@yuokamoto
Copy link
Contributor

Thanks for reporting.

Are you using BP_RRTurtlebotWaffle?
I'm investigating but it seems BP_RRTurtlebotWaffle does large drafting but BP_TurtlebotWaffle has less.

@yuokamoto
Copy link
Contributor

image (11)

I updpate Angular Dumper and Angular Sprint to avoid drifting of the robot.
Robot still does not always move straight. need more investigation.

rapyuta-robotics/RapyutaSimulationPlugins#275

@james-yoo
Copy link
Contributor

@yuokamoto
Any updates? I am still struggling with this issue.

@yuokamoto
Copy link
Contributor

Sorry, I haven't found solution.
Could you use BP_TurtlebotWaffle instead of BP_RRTurtlebotWaffle? BP_TurtlebotWaffle seems have less drifiting.

@yuokamoto
Copy link
Contributor

I created PR.
not perfect but at least able to avoid driting
rapyuta-robotics/RapyutaSimulationPlugins#278

@james-yoo
Copy link
Contributor

@yuokamoto
Could you please explain what you fixed?

@yuokamoto
Copy link
Contributor

I updated BP_RRTurtlebotWaffles' physics joint's(BaseWheelRight and BaseWheelLeft) damper and force limit to become same as BP_TurtlebotWaffle

original
image

new
image

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

3 participants