Skip to content

Commit

Permalink
add script to generate all plots from paper
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonryan committed May 8, 2019
1 parent 5547451 commit ae1a646
Show file tree
Hide file tree
Showing 9 changed files with 287 additions and 167 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Overview

This repository contains the software release for "Enabling Robust State Estimation through Measurement Error Covariance Adaptation". The objective of the software release is described through the associated abstract.
This repository contains the software release for "Enabling Robust State Estimation through Measurement Error Covariance Adaptation". The objective of the software release is described through the associated abstract.
<br/>
<br/>

Expand All @@ -13,7 +13,7 @@ This repository contains the software release for "Enabling Robust State Estimat
<br/>
<br/>

This software benefits from several open-source software packages.
This software benefits from several open-source software packages.
* [*Georgia Tech Smoothing And Mapping (GTSAM)*](https://bitbucket.org/gtborg/gtsam/src/develop/) -- contains factor graph based state estimation algorithms
* GTSAM was updated for GNSS signal processing within
* [*PPP-BayesTree*](https://github.com/wvu-navLab/PPP-BayesTree) -- contains pseudorange and carrier-phase factors
Expand All @@ -31,7 +31,7 @@ If you utilze this software for an academic purpose, please consider using the f
-->
<!--
```
@article{ watson2019enabling,
@article{ watson2019enabling,
title={Enabling Robust State Estimation through Measurement Error Covariance Adaptation},
author={Watson, Ryan M and Gross, Jason N and Taylor, Clark N and Leishman, Robert C},
journal={arXiv preprint},
Expand Down Expand Up @@ -72,5 +72,16 @@ cd Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptat

### 4) Test
````bash
./examples/build/test_gnss_bce -i /total/path/to/data/gtsam/drive_1_lq.gtsam --robustIter 100 --writeENU --writeECEF --dir test_1
cd examples
chmod +x run_all.sh
./run_all.sh
````

This will write all of the generated results to the *test* directory (*../test*). To duplicate the plots generated within the paper run the following command. (Note: this assumes that you have a matlab alias set. See this [link](https://www.mathworks.com/matlabcentral/answers/98220-how-do-i-create-a-shortcut-or-link-to-matlab) for instructions. ).

````bash
chmod +x plot_all.sh
./plot_all.sh
````

This will write all of the generated figures to the *test/plots* directory.
17 changes: 16 additions & 1 deletion examples/make_plots/make_all_figures.m
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
mkdir('figures');
% folder = pwd;
% list = dir(fullfile(folder, '*.m'));
% nFile = length(list);
% for k = 1:nFile
% file = list(k).name;
% run(fullfile(folder, file));
% end

make_figure_2
make_figure_6
make_figures_7_8
make_figure_9
make_figure_10
make_figure_11

quit;
2 changes: 1 addition & 1 deletion examples/make_plots/make_figure_11.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
figure('Renderer', 'painters', 'Position', [10 10 900 600]);
hold on;

res = load('hq/bce/01/iter_0.residuals');
res = load('../hq/bce/01/iter_0.residuals');


S = scatter(res(1:2:end,1),res(1:2:end,2),30,'MarkerEdgeColor','k',...
Expand Down
Loading

0 comments on commit ae1a646

Please sign in to comment.