summaryrefslogtreecommitdiff
path: root/tests/trajectory-planner/circular-arcs/octave/plot_movement.m
blob: 435f5d2ccee8156130f7cff48deeda6a4228f9a6 (plain)
1
2
3
4
5
6
7
8
9
10
#! /usr/bin/octave --persist
load movement.log
%Assume 1kHz
t=movement(:,1);
dt=diff(movement(:,1));
v_nominal=movement(:,3);
dx = [0;movement(2:end,2)./dt];
dv = [0;diff(dx)./dt];
da = [0;diff(dv)./dt];
plot(t,dv)