Robot operation
An API set related to robot operation.
// Retrieves the API instance.
IRCXRobotManagerAPI api = Main.GetAPI<IRCXRobotManagerAPI>()!;
// Retrieves the current robot number.
var currentRobotNumber = api.CurrentRobotNumber;
// Sets the current robot.
var ret = await api.SetCurrentRobotAsync(1);
// Retrieves the current joint position of the current robot.
var currentJointPosition = api.JointPosition;
// Monitors changes in the current robot’s joint position and performs processing when it changes.
api.ObserveProperty(x => x.JointPosition).Subscribe(position => {
// Do something
});
// Retrieves the jogger object.
var jogger = await api.CreateJoggerAsync();
// Executes a jog operation.
// When using an actual robot, ensure the emergency stop button can be pressed before executing.
var _ = jogger.StartJointJogAsync(IRCXRobotManagerAPI.RCXJogJointAxis.J1);
← I/O Program execution →