Quadrotor
=========

.. image:: ../../../media/robots/quadrotor.png
  :align: center
  :width: 600


Definition of a generic **quadrotor** without ``Rigid Body`` physics.
It is expected to be used with actuators such as:
 - :doc:`../actuators/stabilized_quadrotor`

.. note::

    The rotation of the rotors is fixed and only for show. Its speed
    can be adjusted in the Logic panel in Blender (shown with
    :kbd:`F4`) when the **cube** object are selected.


.. cssclass:: properties morse-section

Configuration parameters for quadrotor
--------------------------------------


You can :

- set the mass of the robot using the builder method :py:meth:`morse.builder.morsebuilder.Robot.set_mass()`
- set the friction coefficient of the robot using the builder method :py:meth:`morse.builder.morsebuilder.Robot.set_friction()`

*No configurable parameter.*

.. cssclass:: services morse-section

Services for Quadrotor
----------------------

*This component does not expose any service.*

.. cssclass:: examples morse-section

Examples
--------


The following example shows how to use this component in a *Builder* script:

.. code-block:: python


    from morse.builder import *
    
    # creates a new instance of the robot
    quadrotor = Quadrotor()

    # place your component at the correct location
    quadrotor.translate(<x>, <y>, <z>)
    quadrotor.rotate(<rx>, <ry>, <rz>)
    
    # define one or several communication interface, like 'socket'
    quadrotor.add_interface(<interface>)

    env = Environment('empty')
    

.. cssclass:: files morse-section

Other sources of examples
+++++++++++++++++++++++++

- `Source code <../../_modules/morse/robots/quadrotor.html>`_
- `Unit-test <../../_modules/base/quadrotor_testing.html>`_




*(This page has been auto-generated from MORSE module morse.robots.quadrotor.)*
