Skip to content

Commit

Permalink
Add plotting and images to README and documentation (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Feb 29, 2020
1 parent 25a4cac commit fc1700d
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@ SE(3) Dataset
>>> g = load_g2o_se3("parking-garage.g2o")
>>> g.plot(vertex_markersize=1)
>>> g.calc_chi2()
16720.020602489112
>>> g.optimize()
>>> g.plot(vertex_markersize=1)
**Output:**

Expand All @@ -63,6 +67,13 @@ SE(3) Dataset
5 1.2395 -0.000091


+--------------------------------------+------------------------------------------------+
| **Original** | **Optimized** |
+--------------------------------------+------------------------------------------------+
| .. image:: images/parking-garage.png | .. image:: images/parking-garage-optimized.png |
+--------------------------------------+------------------------------------------------+


SE(2) Dataset
^^^^^^^^^^^^^

Expand All @@ -72,12 +83,16 @@ SE(2) Dataset
>>> g = load_g2o_se2("input_INTEL.g2o") # https://lucacarlone.mit.edu/datasets/
>>> g.plot()
>>> g.calc_chi2()
7191686.382493544
>>> g.optimize()
>>> g.plot()
**Output:**

Expand All @@ -94,6 +109,12 @@ SE(2) Dataset
6 215.8405 -0.000000


+-----------------------------------+---------------------------------------------+
| **Original** | **Optimized** |
+-----------------------------------+---------------------------------------------+
| .. image:: images/input_INTEL.png | .. image:: images/input_INTEL-optimized.png |
+-----------------------------------+---------------------------------------------+

References and Links
--------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ['images']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down
Binary file added docs/source/images/input_INTEL-optimized.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/input_INTEL.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/parking-garage-optimized.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/parking-garage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/input_INTEL-optimized.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/input_INTEL.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/parking-garage-optimized.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/parking-garage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fc1700d

Please sign in to comment.