Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 522 Bytes

pymrpt_example_ros-poses-convert.rst

File metadata and controls

18 lines (12 loc) · 522 Bytes

Python example: ros-poses-convert.py

This example shows how to convert back and forth between MRPT poses and ROS 1 or ROS 2 (both are compatible with this same code) Pose and PoseWithCovariance.

.. literalinclude:: ../../python-examples/ros-poses-convert.py
   :language: python
   :linenos:


Output:

.. literalinclude:: ../../python-examples/ros-poses-convert.out
   :linenos: