VKRC Robot 3D View (OLP)

The VKRC OLP plugin (menu VKRC » Plugins » VKRC OLP) shows the UP / Folge opened in the VKRC viewer in a 3D environment: the robot (CAD model from the CAD repository or a dummy model built from the kinematics of the robot), all motion points of the program as a path, the base frames, the TCP and the linear unit E1.

Window Options Tabs Buttons
Touch up and Add point change the program in the editor (the file is saved as usual) and require the VKRC OLP license. Paths generated off-line are not safe - test an off-line program before running the robot in automatic mode.
Robot mounting: only a robot standing in $WORLD ($ROBROOT = {0,0,0,0,0,0} in $machine.dat) or a robot on the E1 linear unit ($ERSYSROOT = 0) is supported. For another $ROBROOT (ceiling, wall, shifted robot) no Cartesian positions are calculated and the robot is not drawn - the message window shows the $ROBROOT value.

Command API

The pose of the robot is available through plugin_cmd with plugin = "VKRC OLP" (see VeRa / command API), e.g. {"cmd": "plugin_cmd", "plugin": "VKRC OLP", "command": "olp_pose", "z": 1200}. Open the view first with run_plugin "VKRC OLP" while a VKRC program is open in the editor; otherwise the answer is an error. The commands use the same functions as the fields of the panel.
CommandParameterMeaningDefault
olp_status-state of the view: open, program, connected (viewer of the program), robotLoaded, config (configuration file), trafo, mountingSupported / mountingError and the pose of the panel (as olp_pose)-
olp_posex, y, z (mm)TCP in the base B with the tool T of the panel - the same as editing the fields X, Y, Z: inverse kinematics, software limits, mounting checked, the robot is movedthe current field values
a, b, c (degrees)orientation, as the fields A, B, Cthe current field values
s, t (int)configuration Status / Turnthe current fields S / T
olp_axesa1 .. a6 (degrees)axis fields A1 .. A6; the limits of the fields (software limits) are checked - a value outside gives an error and the robot is not moved; the Cartesian pose follows by the forward kinematicsthe current field values
e1 (mm)linear unit E1 (ERSYS); an error when the robot has no E1 (field not active)the current field value
Answer of olp_pose and olp_axes: x .. c, s, t, tool, base, axes [A1 .. A6], e1 (when the robot has E1); olp_pose also singular. Without parameters the current pose is only read. Tool T and base B are the display fields of the panel (taken from the selected point): they are reported, not set. Errors are in the answer: ok = false and error with the reason (no solution, axis limit exceeded, unsupported mounting, robot or kinematics not loaded, a value that is not a number, unknown command); the pose is not changed and the answer has the unchanged values.

See also 3D Modelling for the CAD repository of robot models.