@@ -39,23 +39,23 @@ The robot initialization is handed off to the ``ExampleRobotWrapper`` class:
3939
4040.. literalinclude :: ../../examples/external_fts_through_rtde.cpp
4141 :language: c++
42- :caption: external_fts_through_rtde/freedrive_example .cpp
42+ :caption: external_fts_through_rtde/external_fts_through_rtde .cpp
4343 :linenos:
4444 :lineno-match:
4545 :start-at: g_my_robot = std::make_unique
4646 :end-before: // Enable using the force-torque
4747
4848In order to use the RTDE input for the FTS, we have to enable it first by calling the
4949``ft_rtde_input_enable `` function. This is done by sending a script to the robot through the
50- ``sendScript () `` method of the ``UrDriver `` class.
50+ ``ftRtdeInputEnable () `` method of the ``UrDriver `` class.
5151
5252.. literalinclude :: ../../examples/external_fts_through_rtde.cpp
5353 :language: c++
54- :caption: external_fts_through_rtde/freedrive_example .cpp
54+ :caption: external_fts_through_rtde/external_fts_through_rtde .cpp
5555 :linenos:
5656 :lineno-match:
5757 :start-at: // Enable using the force-torque
58- :end-at: g_my_robot->getPrimaryClient ()->sendScript("ft_rtde_input_enable(True)" );
58+ :end-at: g_my_robot->getUrDriver ()->ftRtdeInputEnable(true );
5959
6060RTDE communication is moved to a separate thread in order to use the main thread for handling
6161keyboard input commands.
@@ -69,7 +69,7 @@ and Linux (and other unix-like systems), therefore the code is split using prepr
6969
7070.. literalinclude :: ../../examples/external_fts_through_rtde.cpp
7171 :language: c++
72- :caption: external_fts_through_rtde/freedrive_example .cpp
72+ :caption: external_fts_through_rtde/external_fts_through_rtde .cpp
7373 :linenos:
7474 :lineno-match:
7575 :start-at: // Platform-specific implementation of getChar()
@@ -82,15 +82,15 @@ The result from the tui function is synchonized to the RTDE communication thread
8282
8383.. literalinclude :: ../../examples/external_fts_through_rtde.cpp
8484 :language: c++
85- :caption: external_fts_through_rtde/freedrive_example .cpp
85+ :caption: external_fts_through_rtde/external_fts_through_rtde .cpp
8686 :linenos:
8787 :lineno-match:
8888 :start-at: std::scoped_lock<std::mutex> lock(g_FT_VEC_MUTEX);
8989 :end-at: g_FT_VEC = local_ft_vec;
9090
9191.. literalinclude :: ../../examples/external_fts_through_rtde.cpp
9292 :language: c++
93- :caption: external_fts_through_rtde/freedrive_example .cpp
93+ :caption: external_fts_through_rtde/external_fts_through_rtde .cpp
9494 :linenos:
9595 :lineno-match:
9696 :start-at: if (g_FT_VEC_MUTEX.try_lock())
0 commit comments