Class Common.Transform.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Common.Transform,Common.Transform.Builder>
com.viam.common.v1.Common.Transform.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Common.TransformOrBuilder, Cloneable
Enclosing class:
Common.Transform

public static final class Common.Transform.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Common.Transform,Common.Transform.Builder> implements Common.TransformOrBuilder
 Transform contains a pose and two reference frames. The first reference frame is the starting reference frame, and the second reference
 frame is the observer reference frame. The second reference frame has a pose which represents the pose of an object in the first
 reference frame as observed within the second reference frame.
 
Protobuf type viam.common.v1.Transform
  • Method Details

    • getReferenceFrame

      public String getReferenceFrame()
       the name of a given reference frame
       
      string reference_frame = 1 [json_name = "referenceFrame"];
      Specified by:
      getReferenceFrame in interface Common.TransformOrBuilder
      Returns:
      The referenceFrame.
    • getReferenceFrameBytes

      public com.google.protobuf.ByteString getReferenceFrameBytes()
       the name of a given reference frame
       
      string reference_frame = 1 [json_name = "referenceFrame"];
      Specified by:
      getReferenceFrameBytes in interface Common.TransformOrBuilder
      Returns:
      The bytes for referenceFrame.
    • setReferenceFrame

      public Common.Transform.Builder setReferenceFrame(String value)
       the name of a given reference frame
       
      string reference_frame = 1 [json_name = "referenceFrame"];
      Parameters:
      value - The referenceFrame to set.
      Returns:
      This builder for chaining.
    • clearReferenceFrame

      public Common.Transform.Builder clearReferenceFrame()
       the name of a given reference frame
       
      string reference_frame = 1 [json_name = "referenceFrame"];
      Returns:
      This builder for chaining.
    • setReferenceFrameBytes

      public Common.Transform.Builder setReferenceFrameBytes(com.google.protobuf.ByteString value)
       the name of a given reference frame
       
      string reference_frame = 1 [json_name = "referenceFrame"];
      Parameters:
      value - The bytes for referenceFrame to set.
      Returns:
      This builder for chaining.
    • hasPoseInObserverFrame

      public boolean hasPoseInObserverFrame()
       the pose of the above reference frame with respect to a different observer reference frame
       
      .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"];
      Specified by:
      hasPoseInObserverFrame in interface Common.TransformOrBuilder
      Returns:
      Whether the poseInObserverFrame field is set.
    • getPoseInObserverFrame

      public Common.PoseInFrame getPoseInObserverFrame()
       the pose of the above reference frame with respect to a different observer reference frame
       
      .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"];
      Specified by:
      getPoseInObserverFrame in interface Common.TransformOrBuilder
      Returns:
      The poseInObserverFrame.
    • setPoseInObserverFrame

      public Common.Transform.Builder setPoseInObserverFrame(Common.PoseInFrame value)
       the pose of the above reference frame with respect to a different observer reference frame
       
      .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"];
    • setPoseInObserverFrame

      public Common.Transform.Builder setPoseInObserverFrame(Common.PoseInFrame.Builder builderForValue)
       the pose of the above reference frame with respect to a different observer reference frame
       
      .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"];
    • mergePoseInObserverFrame

      public Common.Transform.Builder mergePoseInObserverFrame(Common.PoseInFrame value)
       the pose of the above reference frame with respect to a different observer reference frame
       
      .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"];
    • clearPoseInObserverFrame

      public Common.Transform.Builder clearPoseInObserverFrame()
       the pose of the above reference frame with respect to a different observer reference frame
       
      .viam.common.v1.PoseInFrame pose_in_observer_frame = 2 [json_name = "poseInObserverFrame"];
    • hasPhysicalObject

      public boolean hasPhysicalObject()
      optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"];
      Specified by:
      hasPhysicalObject in interface Common.TransformOrBuilder
      Returns:
      Whether the physicalObject field is set.
    • getPhysicalObject

      public Common.Geometry getPhysicalObject()
      optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"];
      Specified by:
      getPhysicalObject in interface Common.TransformOrBuilder
      Returns:
      The physicalObject.
    • setPhysicalObject

      public Common.Transform.Builder setPhysicalObject(Common.Geometry value)
      optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"];
    • setPhysicalObject

      public Common.Transform.Builder setPhysicalObject(Common.Geometry.Builder builderForValue)
      optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"];
    • mergePhysicalObject

      public Common.Transform.Builder mergePhysicalObject(Common.Geometry value)
      optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"];
    • clearPhysicalObject

      public Common.Transform.Builder clearPhysicalObject()
      optional .viam.common.v1.Geometry physical_object = 3 [json_name = "physicalObject"];