Skip to content

Commit 854cfb7

Browse files
committed
Revert headless_mode=false
1 parent ebaa2e3 commit 854cfb7

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

doc/architecture/instruction_executor.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@ to point motions easily accessible. Currently, it supports the following instruc
1616
* Execute OptimoveL point to point motions (For PolyScope 5.21 / PolyScope 10.8 and later)
1717
* Execute sequences consisting of the motion primitives above
1818

19+
Joint and Cartesian targets
20+
---------------------------
21+
22+
Every motion function comes in two flavours:
23+
24+
* A "native" overload whose parameter is the target type that matches the underlying URScript
25+
command (``vector6d_t`` for ``moveJ`` / ``optimoveJ``, ``urcl::Pose`` for ``moveL``, ``moveP``,
26+
``moveC`` and ``optimoveL``). Braced-initializer-list calls such as
27+
``moveJ({ q1, q2, q3, q4, q5, q6 })`` bind to this overload and keep the behaviour from older
28+
releases.
29+
* A ``urcl::MotionTarget`` overload that accepts either a ``urcl::Q`` (joint configuration) or a
30+
``urcl::Pose`` (Cartesian pose). This lets the same function perform a motion whose target type
31+
does not match the URScript command's natural argument, e.g. ``moveJ(urcl::Pose{...})`` to reach
32+
a Cartesian target with a joint-interpolated motion, or ``moveL(urcl::Q{...})`` to perform a
33+
linear tool-space motion towards the pose implied by a joint configuration.
34+
1935
The Instruction Executor uses the :ref:`trajectory_point_interface` and the
2036
:ref:`reverse_interface`
2137
for sending motion instructions to the robot. Hence, it requires a :ref:`ur_driver` object.

examples/instruction_executor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int main(int argc, char* argv[])
5858
robot_ip = std::string(argv[1]);
5959
}
6060

61-
bool headless_mode = false;
61+
bool headless_mode = true;
6262
g_my_robot = std::make_unique<urcl::ExampleRobotWrapper>(robot_ip, OUTPUT_RECIPE, INPUT_RECIPE, headless_mode,
6363
"external_control.urp");
6464
if (!g_my_robot->getUrDriver()->checkCalibration(CALIBRATION_CHECKSUM))

0 commit comments

Comments
 (0)