public interface MovePConfigBuilder
This interface can be used to build a single MoveP configuration that can be applied to a Move node. Each configuration
to be built should ideally use a new MovePConfigBuilder
instance.
For any configuration parameter where a value is not specified (using the corresponding set method), a default value
will be used when the new configuration is built whereas the original value will be used when an existing configuration
was copied using copyFrom(MovePMoveNodeConfig)
.
To build a configuration with non-default values for the TCP selection and tool speed parameter, use the following code snippet:
MovePMoveNodeConfig config = configBuilder.setTCPSelection(tcpSelection)
.setToolSpeed(toolSpeed, ErrorHandler.AUTO_CORRECT)
.build();
To change the value of the blend parameter in the current configuration, use the following code snippet to build
a new updated configuration:
configBuilder.copyFrom(currentConfig);
MovePMoveNodeConfig newConfig = configBuilder.setBlend(blend, ErrorHandler.AUTO_CORRECT)
.build();
Modifier and Type | Method and Description |
---|---|
MovePMoveNodeConfig |
build()
Build the MoveP configuration for the Move node.
|
MovePConfigBuilder |
copyFrom(MovePMoveNodeConfig source)
Copy configuration parameter values from one configuration (source) to another (this) builder
|
MovePConfigBuilder |
setBlend(Blend blend,
ErrorHandler<Blend> blendErrorHandler)
Set the blend parameter for the MoveP configuration.
|
MovePConfigBuilder |
setFeature(Feature feature)
Set feature for the MoveP configuration.
|
MovePConfigBuilder |
setTCPSelection(TCPSelection tcpSelection)
Set the TCP selection for the MoveP configuration.
|
MovePConfigBuilder |
setToolAcceleration(Acceleration toolAcceleration,
ErrorHandler<Acceleration> toolAccelerationErrorHandler)
Set tool acceleration parameter for the MoveP configuration.
|
MovePConfigBuilder |
setToolSpeed(Speed toolSpeed,
ErrorHandler<Speed> toolSpeedErrorHandler)
Set tool speed parameter for the MoveP configuration.
|
MovePConfigBuilder copyFrom(MovePMoveNodeConfig source)
source
- The original configuration to copy parameter values from.MovePConfigBuilder setToolSpeed(Speed toolSpeed, ErrorHandler<Speed> toolSpeedErrorHandler)
Set tool speed parameter for the MoveP configuration.
The parameter applies to the movement of the robot arm, from the previous position through the waypoints under the Move node.toolSpeed
- The shared tool speed to be achieved, not null
.toolSpeedErrorHandler
- Error handler for handling validation. If using ErrorHandler.AUTO_CORRECT
,
this will clamp the value to the nearest valid tool speed value.MovePConfigBuilder setToolAcceleration(Acceleration toolAcceleration, ErrorHandler<Acceleration> toolAccelerationErrorHandler)
Set tool acceleration parameter for the MoveP configuration.
The parameter applies to the movement of the robot arm, from the previous position through the waypoints under the Move node.toolAcceleration
- The shared tool acceleration to be used, not null
.toolAccelerationErrorHandler
- Error handler for handling validation. If using ErrorHandler.AUTO_CORRECT
,
this will clamp the value to the nearest valid tool acceleration value.MovePConfigBuilder setBlend(Blend blend, ErrorHandler<Blend> blendErrorHandler)
Set the blend parameter for the MoveP configuration.
The blend parameter will be used between all waypoints in the movement of the robot arm, from the previous position through the waypoint under the Move node.blend
- The shared blend used in the motion of this Move node, not null
.blendErrorHandler
- Error handler for handling validation. If using ErrorHandler.AUTO_CORRECT
,
this will clamp the value to the nearest valid blend value.MovePConfigBuilder setFeature(Feature feature)
Set feature for the MoveP configuration.
The feature will be used for the movement of the robot arm, from the previous position through the waypoints under the Move node.feature
- The shared feature for this movement, not null
.MovePConfigBuilder setTCPSelection(TCPSelection tcpSelection)
Set the TCP selection for the MoveP configuration.
The TCP will be set as the active TCP before the movement of the robot arm, from the previous position through the waypoints under the Move node, is performed.
SeeTCPSelection
which can be created using the TCPSelectionFactory
interface.tcpSelection
- The TCP setting to be applied.MovePMoveNodeConfig build()
Build the MoveP configuration for the Move node.
A default configuration can be built by calling this method without invoking any of the set methods in this interface.Copyright © 2020. All rights reserved.