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

conversion between velocities #10

Open
arifle opened this issue Apr 8, 2019 · 1 comment
Open

conversion between velocities #10

arifle opened this issue Apr 8, 2019 · 1 comment

Comments

@arifle
Copy link

arifle commented Apr 8, 2019

Hello Gui,
I need your help to know something about kinematics.
Suppose that the cmd_vel gives only a linear and an angular velocity of the robot, e.g. v and omega.
How can I convert them into the form of (vx, vy, vz)?
I also found that, in some tutorials, the distance between robot center and each wheel is simply replaced by 1 but not the real distance value. What does this mean?
Thanks.

@GuiRitter
Copy link
Owner

Hi there.

  1. By (vx, vy, vz) you mean the velocity in each wheel or the velocity in 3D?
    1. If it's the former, I have the equations in the project's first page.
    2. If it's the latter, I can't give you an answer right away, as my knowledge in kinematics is rusty. There's a chance that trigonometry might be enough to do the trick. You build a right triangle where the hypotenuse is the linear velocity v and it's angle to one of the catheti is omega. Then you just need sine and cosine to find each catheti. One will be vx and the other vy. vz will be zero, as this robot only moves in the plane.
      1. It may be that vy is the one that is zero. It even may be that vx is the one that is zero. There's no rule. You have to choose which means what and stick with it.
  2. About the distance between center and wheel being 1, I know nothing. But maybe you can scale your robot in order to make that distance 1 so the equations can be used, if only temporarily.

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

2 participants