Class Motion.LinearConstraint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Motion.LinearConstraint,Motion.LinearConstraint.Builder>
com.viam.service.motion.v1.Motion.LinearConstraint.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Motion.LinearConstraintOrBuilder, Cloneable
Enclosing class:
Motion.LinearConstraint

public static final class Motion.LinearConstraint.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motion.LinearConstraint,Motion.LinearConstraint.Builder> implements Motion.LinearConstraintOrBuilder
 LinearConstraint specifies that the component being moved should move linearly relative to its goal.
 It does not constrain the motion of components other than the `component_name` specified in motion.Move
 
Protobuf type viam.service.motion.v1.LinearConstraint
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    Max linear deviation from straight-line between start and goal, in mm.
    Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states
    float
    Max linear deviation from straight-line between start and goal, in mm.
    float
    Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states
    boolean
    Max linear deviation from straight-line between start and goal, in mm.
    boolean
    Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states
    setLineToleranceMm(float value)
    Max linear deviation from straight-line between start and goal, in mm.
    Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasLineToleranceMm

      public boolean hasLineToleranceMm()
       Max linear deviation from straight-line between start and goal, in mm.
       
      optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"];
      Specified by:
      hasLineToleranceMm in interface Motion.LinearConstraintOrBuilder
      Returns:
      Whether the lineToleranceMm field is set.
    • getLineToleranceMm

      public float getLineToleranceMm()
       Max linear deviation from straight-line between start and goal, in mm.
       
      optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"];
      Specified by:
      getLineToleranceMm in interface Motion.LinearConstraintOrBuilder
      Returns:
      The lineToleranceMm.
    • setLineToleranceMm

      public Motion.LinearConstraint.Builder setLineToleranceMm(float value)
       Max linear deviation from straight-line between start and goal, in mm.
       
      optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"];
      Parameters:
      value - The lineToleranceMm to set.
      Returns:
      This builder for chaining.
    • clearLineToleranceMm

      public Motion.LinearConstraint.Builder clearLineToleranceMm()
       Max linear deviation from straight-line between start and goal, in mm.
       
      optional float line_tolerance_mm = 1 [json_name = "lineToleranceMm"];
      Returns:
      This builder for chaining.
    • hasOrientationToleranceDegs

      public boolean hasOrientationToleranceDegs()
       Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states
       
      optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"];
      Specified by:
      hasOrientationToleranceDegs in interface Motion.LinearConstraintOrBuilder
      Returns:
      Whether the orientationToleranceDegs field is set.
    • getOrientationToleranceDegs

      public float getOrientationToleranceDegs()
       Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states
       
      optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"];
      Specified by:
      getOrientationToleranceDegs in interface Motion.LinearConstraintOrBuilder
      Returns:
      The orientationToleranceDegs.
    • setOrientationToleranceDegs

      public Motion.LinearConstraint.Builder setOrientationToleranceDegs(float value)
       Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states
       
      optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"];
      Parameters:
      value - The orientationToleranceDegs to set.
      Returns:
      This builder for chaining.
    • clearOrientationToleranceDegs

      public Motion.LinearConstraint.Builder clearOrientationToleranceDegs()
       Max allowable orientation deviation, in degrees, while on the shortest path between start / goal states
       
      optional float orientation_tolerance_degs = 2 [json_name = "orientationToleranceDegs"];
      Returns:
      This builder for chaining.