You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>In the top directory of this repository execute <code>pip install .</code></p>
103
104
105
+
<h2id="usage">Usage</h2>
106
+
107
+
<p>The library provides the <code>CRIController</code> class which is the main interface to controll the iRC. It handles the network connection and starts background threads for keep alive messages and processing of received messages. Movement functions directly return even though the move might not be finisched. If you want to wait for the move to finish, set the <code>wait_move_finished</code> parameter to <code>True</code>.
108
+
Most function return a bool to check whether the execution was successful.</p>
109
+
110
+
<h3id="typical-procedure">Typical procedure</h3>
111
+
112
+
<ol>
113
+
<li>Connect to iRC: <code>CRIController.connect(...)</code> Default IP is <code>192.168.3.11</code> with port <code>3921</code>. For using the simulation in the iRC desktop software, connect to <code>127.0.0.1</code>, most of the time the port in the simulation is <code>3921</code>, but can be different. Have a look at the log if you are unable to connect. Check whether connection was successfull via the returned bool.</li>
114
+
<li>If you want to control the robot, acquire active control via <code>CRIController.set_active_control(True)</code>.</li>
115
+
<li>Enable drives with <code>CRIController.enable()</code></li>
116
+
<li>Wait unitl axes are ready <code>CRIcontroller.wait_for_kinematics_ready()</code></li>
117
+
<li>Do some work with your robot, see API documentation for all functionality.</li>
118
+
<li>Diable drives with <code>CRIController.disable()</code></li>
119
+
<li>Close connection with <code>CRIController.close()</code></li>
0 commit comments