
% filepath =
    '/home/joe/workspace/data/20160527/LowLevel/20160527T181316-kitt_01-0c4afcbc-0000.bag' %
    data1 3 % filepath =
        '/home/joe/workspace/data/20160527/LowLevel/20160527T181506-kitt_01-fe3baccc-0000.bag' %
    data2 5 filepath =
            '/home/joe/workspace/data/20160527/LowLevel/20160527T181558-kitt_01-d75abde6-0000.bag' %
    data3 10 m / s

    % bag = rosbag(filepath) % b1 =
                select(bag, 'Topic', '/autobox/llc_latctrldbg') % m1 =
                    readMessages(b1) % ts = timeseries(b1, 'LLC_latCtrlStw_ref')

                                                addpath /
        home / joe / workspace / ACADOtoolkit / examples / my_examples / data /
        matlab_rosbag -
    0.3 - linux64

              bag = ros.Bag(filepath);
bag.info()[ msgs, meta ] = bag.readAll('/autobox/llc_latctrldbg');

n = size(msgs, 2) cmd = zeros(n, 1);
actual = zeros(n, 1);
torque = zeros(n, 1);
for
  i = 1 : size(msgs, 2) cmd(i) = msgs{i}.LLC_latCtrlStw_ref;
actual(i) = msgs{i}.LLC_latCtrlStw;
torque(i) = msgs{i}.LLC_latCtrlTorque;
end

figure();
hold on plot(cmd) plot(actual)

        figure() plot(torque)

    % %

    filepath =
    '/home/joe/workspace/data/20160617/20160617T155241-kitt_01-472a593c-0000.bag' %
    lead / lag filepath =
        '/home/joe/workspace/data/20160617/20160617T152916-kitt_01-f1758b02-0000.bag' %
    random steps filepath =
            '/home/joe/workspace/data/20160616/20160616T231510-kitt_01-0301d308-0000.bag' %
    lead wc = 4 filepath =
                '/home/joe/workspace/data/20160616/20160616T231220-kitt_01-84624419-0000.bag' %
    lead wc = 3 filepath =
                    '/home/joe/workspace/data/20160616/20160616T222935-kitt_01-a799dbe9-0000.bag' %
        PID

        addpath /
        home / joe / workspace / ACADOtoolkit / examples / my_examples / data
        / matlab_rosbag -
    0.3 - linux64

    bag = ros.Bag(filepath);
bag.info()[ msgs, meta ] = bag.readAll('/autobox/llc_latctrldbg');

n = size(msgs, 2) cmd = zeros(n, 1);
actual = zeros(n, 1);
torque = zeros(n, 1);
for
  i = 1 : size(msgs, 2) cmd(i) = msgs{i}.LLC_latCtrlStw_ref;
actual(i) = msgs{i}.LLC_latCtrlStw;
torque(i) = msgs{i}.LLC_latCtrlTorque;
end
