BowlerKernel
Public Member Functions | Private Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic Class Reference
Inheritance diagram for com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic:
Collaboration graph
[legend]

Public Member Functions

 GcodePrismatic (LinkConfiguration conf, GcodeDevice device, String linkAxis)
 
void cacheTargetValueDevice ()
 
void flushDevice (double time)
 
void flushAllDevice (double time)
 
double getCurrentPosition ()
 
String getAxis ()
 
void setAxis (String axis)
 
double getValue ()
 
void setValue (double value)
 

Private Member Functions

void loadCurrent ()
 

Private Attributes

GcodeDevice device
 
String axis = ""
 
double value =0
 

Additional Inherited Members

Detailed Description

Definition at line 6 of file GcodePrismatic.java.

Constructor & Destructor Documentation

◆ GcodePrismatic()

com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.GcodePrismatic ( LinkConfiguration  conf,
GcodeDevice  device,
String  linkAxis 
)

Member Function Documentation

◆ cacheTargetValueDevice()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.cacheTargetValueDevice ( )

This method is called in order to take the target value and pass it to the implementation's target value This method should not alter the position of the implementations link If the implementation target does not handle chached values, this should be chached in code.

Reimplemented from com.neuronrobotics.sdk.addons.kinematics.AbstractLink.

Definition at line 19 of file GcodePrismatic.java.

◆ flushAllDevice()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.flushAllDevice ( double  time)

This method will force one link to update its position in the given time (seconds) This will also flush the host controller.

Parameters
time(seconds) for the position update to take

Reimplemented from com.neuronrobotics.sdk.addons.kinematics.AbstractLink.

Definition at line 39 of file GcodePrismatic.java.

References com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.device, and com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodeDevice.flush().

Here is the call graph for this function:

◆ flushDevice()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.flushDevice ( double  time)

◆ getAxis()

String com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.getAxis ( )

◆ getCurrentPosition()

double com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.getCurrentPosition ( )

This method should return the current position of the link This method is expected to perform a communication with the device .

Returns
the current position of the link

Reimplemented from com.neuronrobotics.sdk.addons.kinematics.AbstractLink.

Definition at line 44 of file GcodePrismatic.java.

References com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.getValue().

Here is the call graph for this function:

◆ getValue()

double com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.getValue ( )

◆ loadCurrent()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.loadCurrent ( )
private

◆ setAxis()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.setAxis ( String  axis)

◆ setValue()

void com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.setValue ( double  value)

Set a value of the current position

Parameters
valueof the current psition

Implements com.neuronrobotics.sdk.addons.kinematics.gcodebridge.IGCodeChannel.

Definition at line 61 of file GcodePrismatic.java.

References com.neuronrobotics.sdk.addons.kinematics.AbstractLink.fireLinkListener(), and com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.value.

Here is the call graph for this function:

Member Data Documentation

◆ axis

String com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.axis = ""
private

◆ device

GcodeDevice com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.device
private

◆ value

double com.neuronrobotics.sdk.addons.kinematics.gcodebridge.GcodePrismatic.value =0
private

The documentation for this class was generated from the following file: