Calculate position of the centre of a rigid bar

  • Thread starter Jyan
  • Start date
  • Tags
    Position
In summary, the robot has two motorized wheels and rotary encoders. The encoders allow the robot to estimate the velocity of the wheels. The robot follows a path based on the equation dθ/dt = (v1 - v2)/2L.
  • #1
Jyan
36
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:

[itex]\dot{θ}[/itex] = (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
  • #2
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:
  • #3
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.
 
  • #4
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 1 person
  • #5
Well done :)
 

What is the purpose of calculating the position of the centre of a rigid bar?

The position of the centre of a rigid bar is an important measurement in mechanics and physics. It can help determine the stability, balance, and movement of a rigid bar and its attached objects.

What information do I need to calculate the position of the centre of a rigid bar?

To calculate the position of the centre of a rigid bar, you will need the length and weight of the bar, as well as the positions and weights of any objects attached to the bar.

How do I calculate the position of the centre of a rigid bar?

The position of the centre of a rigid bar can be calculated using the principle of moments. This involves multiplying the weight of each object by its distance from a chosen point on the bar and then summing these moments. The centre of the bar is located at the point where the total moment is equal to zero.

What are some real-world applications of calculating the position of the centre of a rigid bar?

Calculating the position of the centre of a rigid bar is useful in designing structures such as bridges or cranes, as it ensures that the weight is evenly distributed and the structure is stable. It is also important in sports such as gymnastics and diving, where the position of the athlete's centre of mass affects their performance.

Can the position of the centre of a rigid bar change?

The position of the centre of a rigid bar can change if the weight distribution on the bar changes or if the bar itself is bent or deformed. However, if the weight and structure of the bar remain constant, the position of the centre of the bar will also remain constant.

Similar threads

Replies
4
Views
2K
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
10
Views
2K
Replies
11
Views
982
Replies
2
Views
12K
  • Introductory Physics Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
7
Views
964
Replies
6
Views
5K
Back
Top