SetRealTimeMonitoring#
TCP port 10001 (i.e., the monitoring port) transmits the robot’s joint set and TRF pose,
as well as some other data (see Section 2.2.3), at the rate
specified by the SetMonitoringInterval command. The
SetRealTimeMonitoring command enables the transmission of various additional
real-time data over the monitoring port. Each set of data is preceded by a monotonic
timestamp in microseconds, with respect to an internal clock. Essentially, you get the
same responses as with the GetRt* and GetRtTarget* commands, but
on the monitoring port, instead of on the control port, and at every monitoring
interval, rather than only when requested.
You can send the SetRealTimeMonitoring command even if the robot is not
activated.
Syntax#
SetRealTimeMonitoring(n1,n2,...)
Arguments#
n1,n2: a list of number codes or names, as follows
2200 or TargetJointPos, for the response of the
GetRtTargetJointPoscommand;2201 or TargetCartPos, for the response of the
GetRtTargetCartPoscommand;2202 or TargetJointVel, for the response of the
GetRtTargetJointVelcommand;2203 or TargetJointTorq, for the response of the
GetRtTargetJointTorqcommand;2204 or TargetCartVel, for the response of the
GetRtTargetCartVelcommand;2210 or JointPos, for the response of the
GetRtJointPoscommand;2211 or CartPos, for the response of the
GetRtCartPoscommand;2212 or JointVel, for the response of the
GetRtJointVelcommand;2213 or JointTorq, for the response of the
GetRtJointTorqcommand;2214 or CartVel, for the response of the
GetRtCartVelcommand;2218 or Conf, for the response of the
GetRtConfcommand (sent only when changed);2219 or ConfTurn, for the response of the
GetRtConfTurncommand (sent only when changed);2220 or Accel, for the response of the
GetRtAccelerometercommand;2321 or GripperForce, for the response of the
GetRtGripperForcecommand;2322 or GripperPos, for the response of the
GetRtGripperPoscommand;2343 or VacuumPressure, for the response of the
GetRtVacuumPressurecommand;All, to enable all of the above responses.
Default values#
After a power up, none of the above messages are enabled.
Responses#
[2117][n1, n2 …]
n1, n2 …: a list of response codes.
Additional details#
The SetRealTimeMonitoring command does not have a cumulative effect; if you
execute the command SetRealTimeMonitoring(All) and then the command
SetRealTimeMonitoring(TargetCartPos) or the command
SetRealTimeMonitoring(2201), you will only enable message 2201. Further
details about the monitoring port are presented in Section 2.2.3.
Usage restrictions#
This command can be executed in any robot state.
Cyclic protocols#
This command is not available in cyclic protocols.