How to plot point which moves in space
Ältere Kommentare anzeigen
Good morning , I need to plot the trajectory of a point. The only infos about the point i know, is the set of three coordinates that the point occupies in 4 different instants (defined t1 , t2 , t3, t4) . Suppose that I am in possession of three vectors of coordinates: X=[x1,x2,x3,x4]; Y=[y1,y2,y3,y4]; Z=[z1,z2,z3,z4]; Knowing that xi, yi , zi are the coordinates of the point at time (ti), i would like to plot a point (and its path) that moves with a speed set by me (or at least slowly enough to allow me to see the trajectory ) , from the first through fourth set of coordinates (passing both for second and third set obviously). I would like to draw, in practice , the broken line described by the point that moves between the four sets of coordinates .
Hoping to have been clear enough i thank anyone who can give me some tips.
Akzeptierte Antwort
Weitere Antworten (1)
Badr Nasr
am 3 Feb. 2017
0 Stimmen
hello dears plz hepe how can i Compute the joint space trajectory q1(t); q2(t) for the work space tra- jectory that describes a circle x(t) = x0 -r cos(pi*t=10); y(t) = y0 +r sin(pi*t=10); t is [0,20] for x0 = 60, y0 = 100, r = 40 using the inverse kinematics method ikine of the SerialLink object. First generate the corresponding homogeneous transfor- mations that correspond to the end effector trajectory with transl. Compute the inverse kinematics for these transformations with ikine, you need to specify the arguments poses, initial joint configuration q1(0) = 0.55; q2(0) = 2.0 and the mask [1 1 0 0 0 0] to restrict inverse kinematics to the x and y components as the arm only has two degrees of freedom. A zero entry in the mask ignores the corresponding workspace dimension, in our case z-translation and rotations along x; y; z-axes.
and Generate a fgure with three subplots End effector trajectory x; y as a function of the time vector t Joint trajectory q1; q2 as a function of the time vector t End effector path x; y plotting x versus y.
Kategorien
Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!