Class Common.WorldState.Builder

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

public static final class Common.WorldState.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Common.WorldState,Common.WorldState.Builder> implements Common.WorldStateOrBuilder
 WorldState contains information about the physical environment around a given robot. All of the fields within this message are optional,
 they can include information about the physical dimensions of an obstacle, the freespace of a robot, and any desired transforms between a
 given reference frame and a new target reference frame.
 
Protobuf type viam.common.v1.WorldState
  • Method Details

    • getObstaclesList

      public List<Common.GeometriesInFrame> getObstaclesList()
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
      Specified by:
      getObstaclesList in interface Common.WorldStateOrBuilder
    • getObstaclesCount

      public int getObstaclesCount()
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
      Specified by:
      getObstaclesCount in interface Common.WorldStateOrBuilder
    • getObstacles

      public Common.GeometriesInFrame getObstacles(int index)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
      Specified by:
      getObstacles in interface Common.WorldStateOrBuilder
    • setObstacles

      public Common.WorldState.Builder setObstacles(int index, Common.GeometriesInFrame value)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • setObstacles

      public Common.WorldState.Builder setObstacles(int index, Common.GeometriesInFrame.Builder builderForValue)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • addObstacles

       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • addObstacles

      public Common.WorldState.Builder addObstacles(int index, Common.GeometriesInFrame value)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • addObstacles

      public Common.WorldState.Builder addObstacles(Common.GeometriesInFrame.Builder builderForValue)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • addObstacles

      public Common.WorldState.Builder addObstacles(int index, Common.GeometriesInFrame.Builder builderForValue)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • addAllObstacles

      public Common.WorldState.Builder addAllObstacles(Iterable<? extends Common.GeometriesInFrame> values)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • clearObstacles

      public Common.WorldState.Builder clearObstacles()
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • removeObstacles

      public Common.WorldState.Builder removeObstacles(int index)
       a list of obstacles expressed as a geometry and the reference frame in which it was observed; this field is optional
       
      repeated .viam.common.v1.GeometriesInFrame obstacles = 1 [json_name = "obstacles"];
    • getTransformsList

      public List<Common.Transform> getTransformsList()
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
      Specified by:
      getTransformsList in interface Common.WorldStateOrBuilder
    • getTransformsCount

      public int getTransformsCount()
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
      Specified by:
      getTransformsCount in interface Common.WorldStateOrBuilder
    • getTransforms

      public Common.Transform getTransforms(int index)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
      Specified by:
      getTransforms in interface Common.WorldStateOrBuilder
    • setTransforms

      public Common.WorldState.Builder setTransforms(int index, Common.Transform value)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • setTransforms

      public Common.WorldState.Builder setTransforms(int index, Common.Transform.Builder builderForValue)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • addTransforms

      public Common.WorldState.Builder addTransforms(Common.Transform value)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • addTransforms

      public Common.WorldState.Builder addTransforms(int index, Common.Transform value)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • addTransforms

      public Common.WorldState.Builder addTransforms(Common.Transform.Builder builderForValue)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • addTransforms

      public Common.WorldState.Builder addTransforms(int index, Common.Transform.Builder builderForValue)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • addAllTransforms

      public Common.WorldState.Builder addAllTransforms(Iterable<? extends Common.Transform> values)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • clearTransforms

      public Common.WorldState.Builder clearTransforms()
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];
    • removeTransforms

      public Common.WorldState.Builder removeTransforms(int index)
       a list of Transforms, optionally with geometries. Used as supplemental transforms to transform a pose from one reference frame to
       another, or to attach moving geometries to the frame system. This field is optional
       
      repeated .viam.common.v1.Transform transforms = 3 [json_name = "transforms"];