Package com.viam.service.motion.v1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllObstacleDetectors
(Iterable<? extends Motion.ObstacleDetector> values) The ObstacleDetectors that will be used for transient obstacle avoidanceaddObstacleDetectors
(int index, Motion.ObstacleDetector value) The ObstacleDetectors that will be used for transient obstacle avoidanceaddObstacleDetectors
(int index, Motion.ObstacleDetector.Builder builderForValue) The ObstacleDetectors that will be used for transient obstacle avoidanceThe ObstacleDetectors that will be used for transient obstacle avoidanceaddObstacleDetectors
(Motion.ObstacleDetector.Builder builderForValue) The ObstacleDetectors that will be used for transient obstacle avoidanceOptional angular velocity to target when turningOptional linear velocity to target when movingThe ObstacleDetectors that will be used for transient obstacle avoidanceSets the frequency to poll the vision service(s) for new obstaclesSets the distance in meters that a robot is allowed to deviate from the motion planSets the frequency to poll for the position of the robotdouble
Optional angular velocity to target when turningdouble
Optional linear velocity to target when movinggetObstacleDetectors
(int index) The ObstacleDetectors that will be used for transient obstacle avoidanceint
The ObstacleDetectors that will be used for transient obstacle avoidanceThe ObstacleDetectors that will be used for transient obstacle avoidancedouble
Sets the frequency to poll the vision service(s) for new obstaclesdouble
Sets the distance in meters that a robot is allowed to deviate from the motion plandouble
Sets the frequency to poll for the position of the robotboolean
Optional angular velocity to target when turningboolean
Optional linear velocity to target when movingboolean
Sets the frequency to poll the vision service(s) for new obstaclesboolean
Sets the distance in meters that a robot is allowed to deviate from the motion planboolean
Sets the frequency to poll for the position of the robotremoveObstacleDetectors
(int index) The ObstacleDetectors that will be used for transient obstacle avoidancesetAngularDegsPerSec
(double value) Optional angular velocity to target when turningsetLinearMPerSec
(double value) Optional linear velocity to target when movingsetObstacleDetectors
(int index, Motion.ObstacleDetector value) The ObstacleDetectors that will be used for transient obstacle avoidancesetObstacleDetectors
(int index, Motion.ObstacleDetector.Builder builderForValue) The ObstacleDetectors that will be used for transient obstacle avoidancesetObstaclePollingFrequencyHz
(double value) Sets the frequency to poll the vision service(s) for new obstaclessetPlanDeviationM
(double value) Sets the distance in meters that a robot is allowed to deviate from the motion plansetPositionPollingFrequencyHz
(double value) Sets the frequency to poll for the position of the robotMethods 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
-
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 interfaceMotion.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 interfaceMotion.MotionConfigurationOrBuilder
-
getObstacleDetectors
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 interfaceMotion.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
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
The ObstacleDetectors that will be used for transient obstacle avoidance
repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"];
-
removeObstacleDetectors
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 interfaceMotion.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 interfaceMotion.MotionConfigurationOrBuilder
- Returns:
- The positionPollingFrequencyHz.
-
setPositionPollingFrequencyHz
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
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 interfaceMotion.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 interfaceMotion.MotionConfigurationOrBuilder
- Returns:
- The obstaclePollingFrequencyHz.
-
setObstaclePollingFrequencyHz
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
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 interfaceMotion.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 interfaceMotion.MotionConfigurationOrBuilder
- Returns:
- The planDeviationM.
-
setPlanDeviationM
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
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 interfaceMotion.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 interfaceMotion.MotionConfigurationOrBuilder
- Returns:
- The linearMPerSec.
-
setLinearMPerSec
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
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 interfaceMotion.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 interfaceMotion.MotionConfigurationOrBuilder
- Returns:
- The angularDegsPerSec.
-
setAngularDegsPerSec
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
Optional angular velocity to target when turning
optional double angular_degs_per_sec = 6 [json_name = "angularDegsPerSec"];
- Returns:
- This builder for chaining.
-