Skip to content

Commit

Permalink
docs: Clarify that the motion functions use script functions for exec…
Browse files Browse the repository at this point in the history
…ution (#255)

Make it explicit that there is no magic going on here, but the motion
functions simply forward information to respective URScript functions
using the same parametrization and implications as the script functions.

---------

Co-authored-by: Rune Søe-Knudsen <[email protected]>
  • Loading branch information
urfeex and urrsk authored Jan 30, 2025
1 parent 3cbe112 commit 25d81bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/architecture/instruction_executor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ The Instruction Executor uses the :ref:`trajectory_point_interface` and the
:ref:`reverse_interface`
for sending motion instructions to the robot. Hence, it requires a :ref:`ur_driver` object.

.. note::
The ``InstructionExecutor`` simply forwards the trajectory points to the robot. Execution
is done using respective URScript functions such as `movej
<https://www.universal-robots.com/manuals/EN/HTML/SW5_20/Content/prod-scriptmanual/G5/movej_qa14v105t0r.htm>`_
or `movel
<https://www.universal-robots.com/manuals/EN/HTML/SW5_20/Content/prod-scriptmanual/G5/movel_posea12v025t.htm>`_.
Therefore, all parameters and restrictions of these functions apply. For example, velocity and
acceleration parameters will be ignored if there is a time > 0 given.

As a minimal working example, please see ``examples/instruction_executor.cpp`` example:

.. literalinclude:: ../../examples/instruction_executor.cpp
Expand Down
9 changes: 9 additions & 0 deletions doc/architecture/trajectory_point_interface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ control PC to the robot for execution. Execution isn't started, before a start c
the ``ReverseInterface``. Once trajectory execution is done (either successful, failed or canceled
externally), the robot will send a response back to the control PC via the trajectory socket.

.. note::
The ``TrajectoryPointInterface`` simply forwards the trajectory points to the robot. Execution
is done using respective URScript functions such as `movej
<https://www.universal-robots.com/manuals/EN/HTML/SW5_20/Content/prod-scriptmanual/G5/movej_qa14v105t0r.htm>`_
or `movel
<https://www.universal-robots.com/manuals/EN/HTML/SW5_20/Content/prod-scriptmanual/G5/movel_posea12v025t.htm>`_.
Therefore, all parameters and restrictions of these functions apply. For example, velocity and
acceleration parameters will be ignored if there is a time > 0 given.


Communication protocol
----------------------
Expand Down

0 comments on commit 25d81bf

Please sign in to comment.