-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move UrDriver component description to own file
- Loading branch information
Showing
2 changed files
with
51 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. _ur_driver: | ||
|
||
UrDriver | ||
======== | ||
|
||
The ``UrDriver`` class is the core of this library. It creates an interface to the robot containing | ||
all components from this library. | ||
|
||
When creating an instance of the ``UrDriver`` class, the created object will contain | ||
|
||
- a :ref:`DashboardClient <dashboard_client>` | ||
- a :ref:`ReverseInterface <reverse_interface>` | ||
- an :ref:`RTDEClient <rtde_client>` | ||
- a :ref:`ScriptCommandInterface <script_command_interface>` | ||
- a :ref:`ScriptSender <script_sender>` | ||
- a :ref:`TrajectoryPointInterface <trajectory_point_interface>`. | ||
- a rudimentary client to the robot's secondary interface | ||
- a couple of helper functions | ||
|
||
As this page is not meant to be a full-blown API documentation, not every public method will be | ||
explained here. For a full list of public methods, please inspect class definition in the | ||
`ur_client_library/ur/ur_driver.h | ||
<https://github.com/UniversalRobots/Universal_Robots_Client_Library/blob/master/include/ur_client_library/ur/ur_driver.h>`_ | ||
header file. | ||
|
||
Many functions from the individual components are directly wrapped in the ``UrDriver`` class, for | ||
example there is ``UrDriver::startForceMode(...)`` which is a wrapper around the | ||
``ScriptCommandInterface::startForceMode(...)`` function. | ||
|
||
As an example on how to use this class, please see the `full_driver.cpp <https://github.com/UniversalRobots/Universal_Robots_Client_Library/blob/master/examples/full_driver.cpp>`_ example. | ||
|
||
Public helper functions | ||
----------------------- | ||
|
||
``checkCalibration(const std::string checksum)`` | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
This function opens a connection to the primary interface where it will receive a calibration | ||
information as the first message. The checksum from this calibration info is compared to the one | ||
given to this function. Connection to the primary interface is dropped afterwards. | ||
|
||
``sendScript(const std::string& program)`` | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
This function sends given URScript code directly to the secondary interface. The | ||
``sendRobotProgram()`` function is a special case that will send the script code given in the | ||
``RTDEClient`` constructor. | ||
|
||
|
||
|