Calculate position of the centre of a rigid bar

  • Context: Graduate 
  • Thread starter Thread starter Jyan
  • Start date Start date
  • Tags Tags
    Position
Click For Summary

Discussion Overview

The discussion revolves around calculating the position and velocity of the center of a rigid bar representing a robot with two motorized wheels. Participants explore the relationship between the velocities of the wheels and the resulting motion of the robot, including the path it follows based on the wheel speeds and orientation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant proposes that the equation for the angular velocity θ should be expressed as \dot{θ} = (v1-v2)/L, where v1 and v2 are the velocities of the left and right wheels, respectively.
  • Another participant suggests that if v2 > v1, the robot turns right, and if v2 = -v1, it rotates on the spot, indicating that the center of the turn is influenced by the direction and magnitude of the wheel speeds.
  • A different participant emphasizes the importance of knowing the distance between the wheel centers to calculate the angular change based on encoder steps.
  • A later reply claims to have resolved the issue by stating that dθ/dt = (v1 - v2)/2L and that the total velocity can be calculated as (1/2)(v1 + v2), with the path determined through integration of the velocity components.

Areas of Agreement / Disagreement

While one participant claims to have solved the problem, there are varying interpretations of how to approach the calculation of the robot's trajectory based on wheel speeds. The discussion includes multiple perspectives on defining the problem and the equations involved, indicating that no consensus has been reached on a single method.

Contextual Notes

Participants express uncertainty about the exact definitions and parameters needed for the calculations, such as the relationship between wheel speeds and the robot's trajectory. The discussion also highlights the dependence on the specific setup of the robot and the encoder measurements.

Jyan
Messages
36
Reaction score
2
Hello Everyone,

I am working on building a simple robot. Basically, I have a small platform with two motorized wheels and rotary encoders on the edges. So, using the rotary encoders I can estimate the velocity of the two wheels. I then need to use this information to calculate the path that the robot follows. I am having difficulty working out the equation to define the robot's total velocity.

I'm basically looking at it as a rigid bar of length 2L, where the velocities of the right and left edges (v1 and v2 respectively) are known. It is also constrained such that v1//v2. And θ is the angle of the bar with the x axis.

I believe the equation for θ should be:

\dot{θ} = (v1-v2)/L

And, that the magnitude of the total velocity should be the minimum of v1 and v2, plus the component of v2 tangent to the rotation.

v = min(v1,v2) + (v1-v2)/2

Then I just calculate the path it takes by integrating.

I'm sorry if my attempted answer isn't very clear, but I think the question should be. Calculate the velocity of the centre point of a rigid bar where the velocities of it's 2 end points are known, and are always parallel.

Any assistance would be much appreciated.
 
Physics news on Phys.org
I see, so if v2>v1 the robot turns right and if v2=-v1 it rotates on the spot?

If v1 and v2 point in opposite directions, then the center of the turn will be between the wheels.
If v1 and v2 point in the same direction, then the center will be on the line between the wheels but off to the slower side. The difference in speeds in each case determines the radius of curvature.

That help?

I think you need to more closely define the problem you are trying to solve - as it stands it is very open: you are trying to work out the position of the robot given information about the wheel speeds over time.

Don't yu just what to be able to control the trajectory of the robot?
 
Last edited:
The immediate vehicle orientation and therefore the present direction of movement will be determined by the difference in the number of encoder steps since the start. The distance between the wheel centres needs to be known in shaft encoder step units so the angular change per step difference can be worked out using the arctangent.
 
I actually solved my issue. dθ/dt = (v1 - v2)/2L, and the magnitude of the velocity (v_T) is just (1/2)(v1+v2). Finding dθ/dt is fairly straight forward, and I determined the total velocity using super position. The path can then be calculated by integration where

v_y = v_T cos θ
v_x = -v_T sin θ

I used python to simulate the path and everything seems to make sense, so I think the issue is solved. Now to learn how to write a path finding algorithm...
 
  • Like
Likes   Reactions: 1 person
Well done :)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
13K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
6
Views
6K