get_control_mode

This is a function for checking the current control space.

Definition
DRFLEx.h within class CDRFLEx, public section (line 699)

CONTROL_MODE get_control_mode() { return _get_control_mode(_rbtCtrl); };

Parameter
None

Return

Value

Description

CONTROL_MODE

Refer to the Definition of Enumeration Type

Example

CONTROL_MODE mode = drfl.get_control_mode();
cout << mode << endl;

This example obtains the robot’s current control mode and prints whether it is operating in joint or task space to the console.