Package com.viam.component.arm.v1
Class Arm.JointPositions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Arm.JointPositions,Arm.JointPositions.Builder>
com.viam.component.arm.v1.Arm.JointPositions.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Arm.JointPositionsOrBuilder
,Cloneable
- Enclosing class:
- Arm.JointPositions
public static final class Arm.JointPositions.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Arm.JointPositions,Arm.JointPositions.Builder>
implements Arm.JointPositionsOrBuilder
Protobuf type
viam.component.arm.v1.JointPositions
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllValues
(Iterable<? extends Double> values) A list of joint positions.addValues
(double value) A list of joint positions.A list of joint positions.double
getValues
(int index) A list of joint positions.int
A list of joint positions.A list of joint positions.setValues
(int index, double value) A list of joint positions.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
-
getValuesList
A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
repeated double values = 1 [json_name = "values"];
- Specified by:
getValuesList
in interfaceArm.JointPositionsOrBuilder
- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
repeated double values = 1 [json_name = "values"];
- Specified by:
getValuesCount
in interfaceArm.JointPositionsOrBuilder
- Returns:
- The count of values.
-
getValues
public double getValues(int index) A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
repeated double values = 1 [json_name = "values"];
- Specified by:
getValues
in interfaceArm.JointPositionsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The values at the given index.
-
setValues
A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
repeated double values = 1 [json_name = "values"];
- Parameters:
value
- The values to set.- Returns:
- This builder for chaining.
-
addValues
A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
repeated double values = 1 [json_name = "values"];
- Parameters:
value
- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
repeated double values = 1 [json_name = "values"];
- Parameters:
values
- The values to add.- Returns:
- This builder for chaining.
-
clearValues
A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
repeated double values = 1 [json_name = "values"];
- Returns:
- This builder for chaining.
-