Skip to content

Commit 5920c8f

Browse files
committed
Improve MoveIt Servo tutorial with keyboard teleop instructions.
1 parent 426af1e commit 5920c8f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

doc/realtime_servo/realtime_servo_tutorial.rst

+33
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,39 @@ The ``moveit_servo/config`` folder contains two examples of converting `SpaceNav
120120

121121
``spacenav_cpp.launch`` launches a C++ node that does the same thing but with less latency. We do not plan to accept C++ pull requests for more controller types because there is a lot of overhead involved in supporting them.
122122

123+
Configuring Keyboard as a Control Device
124+
------------------------------------------------------
125+
Assuming you are in ``~/ws_moveit`` folder already, ``cd`` to ``src/universal_robot`` and checkout the latest ``noetic-devel`` branch with ``git checkout noetic-devel``. After this, you should have a ``ur5_moveit_tutorials`` package under ``universal_robot`` folder. Finally:
126+
127+
Install any new dependencies that may be missing: ::
128+
129+
rosdep install -y --from-paths . --ignore-src --rosdistro $ROS_DISTRO
130+
131+
Re-build and re-source the workspace. ::
132+
133+
cd ~/ws_moveit/
134+
135+
catkin build
136+
137+
source devel/setup.bash
138+
139+
In Terminal-1, run ::
140+
141+
roslaunch ur5_moveit_tutorials ur5_moveit_servo_w_traj_controller.launch
142+
143+
In Terminal-2, run ::
144+
145+
rosrun ur5_moveit_tutorials keyboard_teleop.py
146+
147+
See the following video for an example usage:
148+
149+
.. raw:: html
150+
151+
<div style="position: relative; padding-bottom: 5%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
152+
<iframe width="560" height="315" src="https://www.youtube.com/embed/BOcKcjQli3o?si=w0dULrQFJ6G7sIJ9" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
153+
</div>
154+
155+
123156

124157
Integration Testing
125158
-------------------

0 commit comments

Comments
 (0)