Issue with using ctrl for a differential drive robot rotating in place - uneven rotational velocity #2388
Unanswered
husnoo
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
Hi!
I am a hobbyist in robotics/AI simulations.
My setup
Python 3.8.18
My question
I have a differential drive robot, with 4 wheels. I can get it to rotate either by setting ctrl or qvel. But aside from the obvious units differences, there seems to be a weird slowing down and speeding up in the rotation speed. Is there a fundamental reason for this? Am I doing something wrong?
This causes the angular rotation speed to vary:
data.ctrl[:] = -10,10,-10,10
, this keeps it constant:data.qvel[6:] = -10,10,-10,10
. It then also happens at higher velocity with qvel:data.qvel[6:] = -100,100,-100,100
I've included a screenshot. The bottom left plot in each case is the interesting part - the plot_ctrl.png shows the issue, while plot_qvel.png is fine. But plot_qvel_high_vel.png shows the issue again.
Minimal model and/or code that explain my question
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions