Effacer les filtres
Effacer les filtres

3d Helix trajectory generation in robotics toolbox

12 vues (au cours des 30 derniers jours)
youssef benmoussa
youssef benmoussa le 23 Avr 2021
I would like to modify the following proram from here to generate a helix trajectory instead of a circular one. Here is the part that should be modified:
t = (0:0.2:10)'; % Time
count = length(t);
center = [0.3 0.1 0];
radius = 0.15;
theta = t*(2*pi/t(end));
points =center + radius*[cos(theta) sin(theta) zeros(size(theta))];
It's supposed to be like that.
I tried substituting zeros(size(theta)) by a vector of the same size using linspace but it still gives me a circle.
Thanks in advance.

Réponse acceptée

Shadaab Siddiqie
Shadaab Siddiqie le 27 Avr 2021
From my understanding you want to create a 3d helix path. Here is the code which might help you.
%Trajectory in x-direction
%Trajectory in y-direction
%Trajectory in z-direction
For more advanced 3d shapes refer 3d-curves.

Plus de réponses (0)


En savoir plus sur Robotics dans Help Center et File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by