Class Motion.MotionConfiguration.Builder

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

public static final class Motion.MotionConfiguration.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motion.MotionConfiguration,Motion.MotionConfiguration.Builder> implements Motion.MotionConfigurationOrBuilder
Protobuf type viam.service.motion.v1.MotionConfiguration
  • Method Details

    • getObstacleDetectorsList

      public List<Motion.ObstacleDetector> getObstacleDetectorsList()
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
      Specified by:
      getObstacleDetectorsList in interface Motion.MotionConfigurationOrBuilder
    • getObstacleDetectorsCount

      public int getObstacleDetectorsCount()
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
      Specified by:
      getObstacleDetectorsCount in interface Motion.MotionConfigurationOrBuilder
    • getObstacleDetectors

      public Motion.ObstacleDetector getObstacleDetectors(int index)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
      Specified by:
      getObstacleDetectors in interface Motion.MotionConfigurationOrBuilder
    • setObstacleDetectors

      public Motion.MotionConfiguration.Builder setObstacleDetectors(int index, Motion.ObstacleDetector value)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • setObstacleDetectors

      public Motion.MotionConfiguration.Builder setObstacleDetectors(int index, Motion.ObstacleDetector.Builder builderForValue)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • addObstacleDetectors

      public Motion.MotionConfiguration.Builder addObstacleDetectors(Motion.ObstacleDetector value)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • addObstacleDetectors

      public Motion.MotionConfiguration.Builder addObstacleDetectors(int index, Motion.ObstacleDetector value)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • addObstacleDetectors

      public Motion.MotionConfiguration.Builder addObstacleDetectors(Motion.ObstacleDetector.Builder builderForValue)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • addObstacleDetectors

      public Motion.MotionConfiguration.Builder addObstacleDetectors(int index, Motion.ObstacleDetector.Builder builderForValue)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • addAllObstacleDetectors

      public Motion.MotionConfiguration.Builder addAllObstacleDetectors(Iterable<? extends Motion.ObstacleDetector> values)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • clearObstacleDetectors

      public Motion.MotionConfiguration.Builder clearObstacleDetectors()
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • removeObstacleDetectors

      public Motion.MotionConfiguration.Builder removeObstacleDetectors(int index)
       The ObstacleDetectors that will be used for transient obstacle avoidance
       
      repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
    • hasPositionPollingFrequencyHz

      public boolean hasPositionPollingFrequencyHz()
       Sets the frequency to poll for the position of the robot
       
      optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"];
      Specified by:
      hasPositionPollingFrequencyHz in interface Motion.MotionConfigurationOrBuilder
      Returns:
      Whether the positionPollingFrequencyHz field is set.
    • getPositionPollingFrequencyHz

      public double getPositionPollingFrequencyHz()
       Sets the frequency to poll for the position of the robot
       
      optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"];
      Specified by:
      getPositionPollingFrequencyHz in interface Motion.MotionConfigurationOrBuilder
      Returns:
      The positionPollingFrequencyHz.
    • setPositionPollingFrequencyHz

      public Motion.MotionConfiguration.Builder setPositionPollingFrequencyHz(double value)
       Sets the frequency to poll for the position of the robot
       
      optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"];
      Parameters:
      value - The positionPollingFrequencyHz to set.
      Returns:
      This builder for chaining.
    • clearPositionPollingFrequencyHz

      public Motion.MotionConfiguration.Builder clearPositionPollingFrequencyHz()
       Sets the frequency to poll for the position of the robot
       
      optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"];
      Returns:
      This builder for chaining.
    • hasObstaclePollingFrequencyHz

      public boolean hasObstaclePollingFrequencyHz()
       Sets the frequency to poll the vision service(s) for new obstacles
       
      optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"];
      Specified by:
      hasObstaclePollingFrequencyHz in interface Motion.MotionConfigurationOrBuilder
      Returns:
      Whether the obstaclePollingFrequencyHz field is set.
    • getObstaclePollingFrequencyHz

      public double getObstaclePollingFrequencyHz()
       Sets the frequency to poll the vision service(s) for new obstacles
       
      optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"];
      Specified by:
      getObstaclePollingFrequencyHz in interface Motion.MotionConfigurationOrBuilder
      Returns:
      The obstaclePollingFrequencyHz.
    • setObstaclePollingFrequencyHz

      public Motion.MotionConfiguration.Builder setObstaclePollingFrequencyHz(double value)
       Sets the frequency to poll the vision service(s) for new obstacles
       
      optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"];
      Parameters:
      value - The obstaclePollingFrequencyHz to set.
      Returns:
      This builder for chaining.
    • clearObstaclePollingFrequencyHz

      public Motion.MotionConfiguration.Builder clearObstaclePollingFrequencyHz()
       Sets the frequency to poll the vision service(s) for new obstacles
       
      optional double obstacle_polling_frequency_hz = 3 [json_name = "obstaclePollingFrequencyHz"];
      Returns:
      This builder for chaining.
    • hasPlanDeviationM

      public boolean hasPlanDeviationM()
       Sets the distance in meters that a robot is allowed to deviate from the motion plan
       
      optional double plan_deviation_m = 4 [json_name = "planDeviationM"];
      Specified by:
      hasPlanDeviationM in interface Motion.MotionConfigurationOrBuilder
      Returns:
      Whether the planDeviationM field is set.
    • getPlanDeviationM

      public double getPlanDeviationM()
       Sets the distance in meters that a robot is allowed to deviate from the motion plan
       
      optional double plan_deviation_m = 4 [json_name = "planDeviationM"];
      Specified by:
      getPlanDeviationM in interface Motion.MotionConfigurationOrBuilder
      Returns:
      The planDeviationM.
    • setPlanDeviationM

      public Motion.MotionConfiguration.Builder setPlanDeviationM(double value)
       Sets the distance in meters that a robot is allowed to deviate from the motion plan
       
      optional double plan_deviation_m = 4 [json_name = "planDeviationM"];
      Parameters:
      value - The planDeviationM to set.
      Returns:
      This builder for chaining.
    • clearPlanDeviationM

      public Motion.MotionConfiguration.Builder clearPlanDeviationM()
       Sets the distance in meters that a robot is allowed to deviate from the motion plan
       
      optional double plan_deviation_m = 4 [json_name = "planDeviationM"];
      Returns:
      This builder for chaining.
    • hasLinearMPerSec

      public boolean hasLinearMPerSec()
       Optional linear velocity to target when moving
       
      optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"];
      Specified by:
      hasLinearMPerSec in interface Motion.MotionConfigurationOrBuilder
      Returns:
      Whether the linearMPerSec field is set.
    • getLinearMPerSec

      public double getLinearMPerSec()
       Optional linear velocity to target when moving
       
      optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"];
      Specified by:
      getLinearMPerSec in interface Motion.MotionConfigurationOrBuilder
      Returns:
      The linearMPerSec.
    • setLinearMPerSec

      public Motion.MotionConfiguration.Builder setLinearMPerSec(double value)
       Optional linear velocity to target when moving
       
      optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"];
      Parameters:
      value - The linearMPerSec to set.
      Returns:
      This builder for chaining.
    • clearLinearMPerSec

      public Motion.MotionConfiguration.Builder clearLinearMPerSec()
       Optional linear velocity to target when moving
       
      optional double linear_m_per_sec = 5 [json_name = "linearMPerSec"];
      Returns:
      This builder for chaining.
    • hasAngularDegsPerSec

      public boolean hasAngularDegsPerSec()
       Optional angular velocity to target when turning
       
      optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"];
      Specified by:
      hasAngularDegsPerSec in interface Motion.MotionConfigurationOrBuilder
      Returns:
      Whether the angularDegsPerSec field is set.
    • getAngularDegsPerSec

      public double getAngularDegsPerSec()
       Optional angular velocity to target when turning
       
      optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"];
      Specified by:
      getAngularDegsPerSec in interface Motion.MotionConfigurationOrBuilder
      Returns:
      The angularDegsPerSec.
    • setAngularDegsPerSec

      public Motion.MotionConfiguration.Builder setAngularDegsPerSec(double value)
       Optional angular velocity to target when turning
       
      optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"];
      Parameters:
      value - The angularDegsPerSec to set.
      Returns:
      This builder for chaining.
    • clearAngularDegsPerSec

      public Motion.MotionConfiguration.Builder clearAngularDegsPerSec()
       Optional angular velocity to target when turning
       
      optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"];
      Returns:
      This builder for chaining.