Path: news.mathworks.com!not-for-mail
From: "smar " <smar234@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to synchronize two 3D Trajectories
Date: Sun, 14 Dec 2008 15:01:42 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <gi374m$6nq$1@fred.mathworks.com>
References: <ghpsti$a7v$1@fred.mathworks.com> <f5c1c2de-768d-4421-9852-958a18629c14@40g2000prx.googlegroups.com> <dadc756c-a1b4-4b3a-b875-10cb817c8b04@b41g2000pra.googlegroups.com>
Reply-To: "smar " <smar234@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229266902 6906 172.30.248.38 (14 Dec 2008 15:01:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 14 Dec 2008 15:01:42 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1634472
Xref: news.mathworks.com comp.soft-sys.matlab:506877



Thank again for an usful reply, 

I think if I do like this

devx=3Dxai-xbi;
devy=3Dyai-ybi;
devz=3Dzai-zbi;

It is possible that xai-xbi aare  not the right corresponding points. 

To explain more, Trajectory A is a reference trajectory which is fed to controller and Trajectory B is real trajectory which is measured through sensors. 

Trajectory A -------fed to controller ------- Trajectory B (measured)

Controller produced uneven and variable delays over the whole processing. 
Finally is may happen that: 
Trajectory A &#8230;&#8230; completion time is 20 seconds
Trajectory B &#8230;&#8230; completion time is 20.05 seconds

Now time 0.05 second is time shift which is accumulated sum of many variable delays through out the trajectory. 

I appreciate for any further assistance to my problem. 
Best wishes
smar