-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
431 changed files
with
9,517 additions
and
5,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ MRPT | |
tutorials | ||
applications | ||
examples | ||
python_examples | ||
wrappers | ||
supported-sensors | ||
unit_testing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. _pyexample_global_localization: | ||
|
||
==================================================== | ||
Python example: global_localization.py | ||
==================================================== | ||
|
||
This example runs a MonteCarlo global localization | ||
algorithm for a robot from a dataset in .rawlog format. | ||
The adaptive particle filter algorithm has two implementations, | ||
for 2D and 3D poses, or SE(2) or SE(3), respectively. | ||
|
||
.. raw:: html | ||
|
||
<iframe width="560" height="315" src="https://www.youtube.com/embed/ZfVUydQIM5E" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen> | ||
</iframe> | ||
|
||
|
||
.. literalinclude:: ../../python-examples/global_localization.py | ||
:language: python | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. _pyexample_hwdriver_tao_imu_usb: | ||
|
||
==================================================== | ||
Python example: hwdriver-tao-imu-usb.py | ||
==================================================== | ||
|
||
This example shows how to read a Taobotics USB IMU | ||
with the pymrpt hwdrivers module. | ||
|
||
.. raw:: html | ||
|
||
<iframe width="560" height="315" src="https://www.youtube.com/embed/qaaP9BmZYmo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen> | ||
</iframe> | ||
|
||
|
||
.. literalinclude:: ../../python-examples/hwdriver-tao-imu-usb.py | ||
:language: python | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _pyexample_lines-3d-geometry-example: | ||
|
||
==================================================== | ||
Python example: lines-3d-geometry-example.py | ||
==================================================== | ||
|
||
This example illustrates some geometry functions: | ||
|
||
.. literalinclude:: ../../python-examples/lines-3d-geometry-example.py | ||
:language: python | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. _pyexample_rbpf_slam: | ||
|
||
==================================================== | ||
Python example: rbpf_slam.py | ||
==================================================== | ||
|
||
This example shows how to build a metric map using | ||
the RBPF-SLAM algorithm: | ||
|
||
.. raw:: html | ||
|
||
<iframe width="560" height="315" src="https://www.youtube.com/embed/XiKTWNOQlcU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen> | ||
</iframe> | ||
|
||
|
||
.. literalinclude:: ../../python-examples/rbpf_slam.py | ||
:language: python | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _pyexample_se2-poses-example: | ||
|
||
==================================================== | ||
Python example: se2-poses-example.py | ||
==================================================== | ||
|
||
Example usage of SE(2) poses, for transformations | ||
in the plane (x,y,phi): | ||
|
||
.. literalinclude:: ../../python-examples/se2-poses-example.py | ||
:language: python | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _pyexample_se3-poses-example: | ||
|
||
==================================================== | ||
Python example: se3-poses-example.py | ||
==================================================== | ||
|
||
Example usage of SE(3) poses, for transformations | ||
in the space (x,y,z,yaw,pitch,roll): | ||
|
||
.. literalinclude:: ../../python-examples/se3-poses-example.py | ||
:language: python | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. _python_examples: | ||
|
||
================= | ||
Python examples | ||
================= | ||
|
||
The source code for all these Python examples can be found | ||
under `MRPT/python-examples <https://github.com/MRPT/mrpt/tree/develop/python-examples>`_. | ||
|
||
C++ examples are `here <examples.html>`_. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
pymrpt_example_global_localization.rst | ||
pymrpt_example_hwdriver_tao_imu_usb.rst | ||
pymrpt_example_lines-3d-geometry-example.rst | ||
pymrpt_example_rbpf_slam.rst | ||
pymrpt_example_se2-poses-example.rst | ||
pymrpt_example_se3-poses-example.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
|
||
#include <cmath> | ||
#include <cstddef> | ||
#include <cstdint> | ||
#include <string> | ||
#include <vector> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.