![]() |
RobWorkProject
20.10.1-
|
#include <FanucVirtual.hpp>
Inherits Fanuc.
Public Member Functions | |
FanucVirtual (rw::models::SerialDevice *fanucModel, const rw::kinematics::State &state) | |
Construct device. More... | |
virtual | ~FanucVirtual () |
Destructor. | |
virtual void | setGlobalSpeed (int speed) |
sets the speed in percentage of the maximum speed. More... | |
virtual int | getGlobalSpeed () |
gets the speed in percentage of the maximum speed. More... | |
virtual void | moveFineQ (rw::math::Q const &q) |
sends a move FINE command to the fanuc controller. The FINE command moves to the given Q and stops. More... | |
virtual void | moveCntQ (rw::math::Q const &q) |
sends a move CNT command to the fanuc controller. The CNT command moves toward the given Q and blends toward the next move command if any is given before q is reached. More... | |
virtual bool | isMoveComplete () |
queries if the last move instuction is completed. Notice that the CNT move instruction completes before reaching the goal configuration. More... | |
virtual void | setCntQSpeed (int speed) |
sets the speed of the moveCntQ instruction in percentage of the globalspeed. More... | |
virtual void | setFineQSpeed (int speed) |
sets the speed of the moveFineQ instruction in percentage of the globalspeed. More... | |
virtual void | setCntQAcc (int acc) |
sets the acceleration override of the moveCntQ instruction in percentage of "normal" acceleration were normal is 100%. More... | |
virtual void | setFineQAcc (int acc) |
sets the acceleration override of the moveFineQ instruction in percentage of "normal" acceleration were normal is 100%. More... | |
virtual rw::math::Q | getQ () |
gets the joint configuration of the robot. The configuration is only updated by calls to the update function. More... | |
virtual rw::math::Q | getdQ () |
gets the joint configuration of the robot. The configuration is only updated by calls to the update function. More... | |
virtual void | update () |
updates all internal registers and transmits commands to the robot controller. More... | |
virtual bool | connect () |
connects to the robot controller More... | |
virtual bool | isConnected () |
returns if connected to fanuc controller More... | |
virtual void | disconnect () |
disconnects from the robot controller More... | |
virtual void | callRobotProgram (unsigned int progNr) |
calls a program on the robot controller. More... | |
virtual void | setCallArguments (float arg1, float arg2, float arg3) |
We allow 3 arguments to be setup before calling a robot program. More... | |
virtual bool | isCallFinished () |
checks if a call to a robot program on the controller is finished More... | |
bool | notifyProgram () |
notifies the robot controller by setting the notify register to 1.0 More... | |
bool | isCallWaiting () |
checks if the robot controller is waiting for a notify. More... | |
float | getLastError () |
check last occored error More... | |
![]() | |
virtual | ~Fanuc () |
destruct object | |
virtual void | resetError ()=0 |
resets the error status | |
FanucVirtual | ( | rw::models::SerialDevice * | fanucModel, |
const rw::kinematics::State & | state | ||
) |
Construct device.
fanucModel | [in] the Device to work on |
state | [in] state of device |
|
virtual |
calls a program on the robot controller.
Implements Fanuc.
|
virtual |
connects to the robot controller
Implements Fanuc.
|
virtual |
disconnects from the robot controller
Implements Fanuc.
|
virtual |
gets the joint configuration of the robot. The configuration is only updated by calls to the update function.
Implements Fanuc.
|
virtual |
gets the speed in percentage of the maximum speed.
The speed is always in the interval [0;100]
Implements Fanuc.
|
virtual |
|
virtual |
gets the joint configuration of the robot. The configuration is only updated by calls to the update function.
Implements Fanuc.
|
virtual |
checks if a call to a robot program on the controller is finished
Implements Fanuc.
|
inlinevirtual |
checks if the robot controller is waiting for a notify.
Implements Fanuc.
|
virtual |
returns if connected to fanuc controller
Implements Fanuc.
|
virtual |
queries if the last move instuction is completed. Notice that the CNT move instruction completes before reaching the goal configuration.
Implements Fanuc.
|
virtual |
sends a move CNT command to the fanuc controller. The CNT command moves toward the given Q and blends toward the next move command if any is given before q is reached.
q | [in] The joint configuration to move to. |
Implements Fanuc.
|
virtual |
sends a move FINE command to the fanuc controller. The FINE command moves to the given Q and stops.
q | [in] The joint configuration to move to. |
Implements Fanuc.
|
inlinevirtual |
notifies the robot controller by setting the notify register to 1.0
Implements Fanuc.
|
virtual |
We allow 3 arguments to be setup before calling a robot program.
arg1 | [in] first argument |
arg2 | [in] second argument |
arg3 | [in] third argument |
Implements Fanuc.
|
virtual |
sets the acceleration override of the moveCntQ instruction in percentage of "normal" acceleration were normal is 100%.
acc | [in] the acceleration overide in percent ]0;500] |
Implements Fanuc.
|
virtual |
sets the speed of the moveCntQ instruction in percentage of the globalspeed.
speed | [in] the speed in percent ]0;100] |
Implements Fanuc.
|
virtual |
sets the acceleration override of the moveFineQ instruction in percentage of "normal" acceleration were normal is 100%.
acc | [in] the acceleration overide in percent ]0;500] |
Implements Fanuc.
|
virtual |
sets the speed of the moveFineQ instruction in percentage of the globalspeed.
speed | [in] the speed in percent ]0;100] |
Implements Fanuc.
|
virtual |
sets the speed in percentage of the maximum speed.
The speed can be set in the interval [0;100]
Implements Fanuc.
|
virtual |
updates all internal registers and transmits commands to the robot controller.
Implements Fanuc.