0
$\begingroup$

Instantaneous rate of change of displacement is given by,

v(t) = (s(t + dt) - s(t))/dt, where dt tends to 0

while average rate of change of displacement is given by,

v(t) = (s(t[n]) - s(t[n-1]))/(t[n] - t[n-1])

The first one gives the slope or derivative of a displacement function at a particular instant of time and thus varies with time. I was wondering how is it going to help me calculate the velocity of my robot's end effector, which is the foot of the leg of the robot(bipedal). If i make a reading of the position of the robot every 1ms to keep the approximation as accurate as possible, my instantaneous velocity would be zero wouldn't it? Since my robot wouldn't have moved anywhere in 1ms time. Agreed, 't' would increment as t+dt, dt == 0.001s. Then v(t) would be v(0.001) = s(0.002) - s(0.001) which is zero, because there is no displacement in that small time frame, right? Am I doing something wrong here? Or on the other hand, do I just use average rate of change? I have this question, since, if there is a manipulator, in my case the foot of my robot, and it's trajectory is given by a 3x3 homogenous matrix,

[{c(t),-s(t), 0},
 {s(t), c(t), 0},
 {  0,    0,  1}], where c,s are cos(theta) and sin(theta)respectively,

if on paper, this is differentiated, this would give me a spatial/body velocity matrix as

[{0, -d(theta)/dt, 0},
 {d(theta)/dt,  0, 0},
 {    0,        0, 0}]

So how do I compute this differentiation in code. I just need something of the sort of a pseudocode.

$\endgroup$

1 Answer 1

2
$\begingroup$

You are confusing continuous time concepts and discrete time concepts. The instantaneous velocity is a continuous time concept and doesn't directly apply to systems where time is measured discretely, e.g. every 1 ms. If you have a system where dt is very small, what you call average velocity is an approximation of the instantaneous velocity. To my knowledge, for real systems there is no practical way to directly measure instantaneous velocity so this approximation is the best we can do.

So the example you give of measuring displacement every 1ms is really a discrete time example. Also, your intuition is off: if you have non-zero velocity then no matter how small dt is (except dt=0) there will be a change in real position. Depending on how good your measurement system is, though, you may not be able to measure that change.

$\endgroup$
1
  • $\begingroup$ Spot on answer, +1. $\endgroup$
    – marcv81
    Commented Oct 17, 2014 at 12:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.