I have gone over the example "wiringinputsandoutputswithTableReporter.m" and tried to implement the TableReporter but with coordinates instead of outputs.
Code: Select all
%creating reporter
reporter = TableReporter();
reporter.setName('reporter');
reporter.set_report_time_interval(0.1);
%coordinates of interest
roll1 = model.getCoordinateSet().get('roll1');
pitch1 = model.getCoordinateSet().get('pitch1');
yaw1 = model.getCoordinateSet().get('yaw1');
roll2 = model.getCoordinateSet().get('roll2');
pitch2 = model.getCoordinateSet().get('pitch2');
yaw2 = model.getCoordinateSet().get('yaw2');
%Report the disred RPY coordinates
reporter.addToReport(roll1, 'roll1')
reporter.addToReport(roll2, 'roll2')
reporter.addToReport(pitch1, 'pitch1')
reporter.addToReport(pitch2, 'pitch2')
reporter.addToReport(yaw1, 'yaw1')
reporter.addToReport(yaw2, 'yaw2')
Can I get some help with this?