Package com.viam.service.navigation.v1
Class Navigation.Status.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Navigation.Status,Navigation.Status.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Navigation.Status,Navigation.Status.Builder>
com.viam.service.navigation.v1.Navigation.Status.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Navigation.StatusOrBuilder,Cloneable
- Enclosing class:
Navigation.Status
public static final class Navigation.Status.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Navigation.Status,Navigation.Status.Builder>
implements Navigation.StatusOrBuilder
Status is the robot navigation state returned by GetNavigationStatus and by methods that start, suspend, or resume motion. The robot is idle when goal is unset or goal.state is terminal. It is moving when goal.state == GOAL_STATE_ACTIVE. Methods that start motion fail while localized is false.Protobuf type
viam.service.navigation.v1.Status-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionBackend-specific diagnosticsLatest goal; unset until the first onePose is trusted; false blocks new goalsSame as GetPosition.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];Current body-frame velocity; zero when stoppedcom.google.protobuf.StructgetExtra()Backend-specific diagnosticsgetGoal()Latest goal; unset until the first onebooleanPose is trusted; false blocks new goalsSame as GetPositioncom.google.protobuf.Timestamp.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];Current body-frame velocity; zero when stoppedbooleanhasExtra()Backend-specific diagnosticsbooleanhasGoal()Latest goal; unset until the first onebooleanSame as GetPositionboolean.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];booleanCurrent body-frame velocity; zero when stoppedmergeExtra(com.google.protobuf.Struct value) Backend-specific diagnosticsmergeGoal(Navigation.GoalStatus value) Latest goal; unset until the first onemergePosition(Navigation.Position value) Same as GetPositionmergeUpdatedAt(com.google.protobuf.Timestamp value) .google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];mergeVelocity(Navigation.Velocity value) Current body-frame velocity; zero when stoppedsetExtra(com.google.protobuf.Struct value) Backend-specific diagnosticssetExtra(com.google.protobuf.Struct.Builder builderForValue) Backend-specific diagnosticssetGoal(Navigation.GoalStatus value) Latest goal; unset until the first onesetGoal(Navigation.GoalStatus.Builder builderForValue) Latest goal; unset until the first onesetLocalized(boolean value) Pose is trusted; false blocks new goalssetPosition(Navigation.Position value) Same as GetPositionsetPosition(Navigation.Position.Builder builderForValue) Same as GetPositionsetUpdatedAt(com.google.protobuf.Timestamp value) .google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];setUpdatedAt(com.google.protobuf.Timestamp.Builder builderForValue) .google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];setVelocity(Navigation.Velocity value) Current body-frame velocity; zero when stoppedsetVelocity(Navigation.Velocity.Builder builderForValue) Current body-frame velocity; zero when stoppedMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasPosition
public boolean hasPosition()Same as GetPosition
.viam.service.navigation.v1.Position position = 1 [json_name = "position"];- Specified by:
hasPositionin interfaceNavigation.StatusOrBuilder- Returns:
- Whether the position field is set.
-
getPosition
Same as GetPosition
.viam.service.navigation.v1.Position position = 1 [json_name = "position"];- Specified by:
getPositionin interfaceNavigation.StatusOrBuilder- Returns:
- The position.
-
clearPosition
Same as GetPosition
.viam.service.navigation.v1.Position position = 1 [json_name = "position"]; -
getLocalized
public boolean getLocalized()Pose is trusted; false blocks new goals
bool localized = 2 [json_name = "localized"];- Specified by:
getLocalizedin interfaceNavigation.StatusOrBuilder- Returns:
- The localized.
-
setLocalized
Pose is trusted; false blocks new goals
bool localized = 2 [json_name = "localized"];- Parameters:
value- The localized to set.- Returns:
- This builder for chaining.
-
clearLocalized
Pose is trusted; false blocks new goals
bool localized = 2 [json_name = "localized"];- Returns:
- This builder for chaining.
-
hasVelocity
public boolean hasVelocity()Current body-frame velocity; zero when stopped
.viam.service.navigation.v1.Velocity velocity = 3 [json_name = "velocity"];- Specified by:
hasVelocityin interfaceNavigation.StatusOrBuilder- Returns:
- Whether the velocity field is set.
-
getVelocity
Current body-frame velocity; zero when stopped
.viam.service.navigation.v1.Velocity velocity = 3 [json_name = "velocity"];- Specified by:
getVelocityin interfaceNavigation.StatusOrBuilder- Returns:
- The velocity.
-
clearVelocity
Current body-frame velocity; zero when stopped
.viam.service.navigation.v1.Velocity velocity = 3 [json_name = "velocity"]; -
hasGoal
public boolean hasGoal()Latest goal; unset until the first one
optional .viam.service.navigation.v1.GoalStatus goal = 4 [json_name = "goal"];- Specified by:
hasGoalin interfaceNavigation.StatusOrBuilder- Returns:
- Whether the goal field is set.
-
getGoal
Latest goal; unset until the first one
optional .viam.service.navigation.v1.GoalStatus goal = 4 [json_name = "goal"];- Specified by:
getGoalin interfaceNavigation.StatusOrBuilder- Returns:
- The goal.
-
clearGoal
Latest goal; unset until the first one
optional .viam.service.navigation.v1.GoalStatus goal = 4 [json_name = "goal"]; -
hasUpdatedAt
public boolean hasUpdatedAt().google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];- Specified by:
hasUpdatedAtin interfaceNavigation.StatusOrBuilder- Returns:
- Whether the updatedAt field is set.
-
getUpdatedAt
public com.google.protobuf.Timestamp getUpdatedAt().google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"];- Specified by:
getUpdatedAtin interfaceNavigation.StatusOrBuilder- Returns:
- The updatedAt.
-
setUpdatedAt
.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"]; -
setUpdatedAt
public Navigation.Status.Builder setUpdatedAt(com.google.protobuf.Timestamp.Builder builderForValue) .google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"]; -
mergeUpdatedAt
.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"]; -
clearUpdatedAt
.google.protobuf.Timestamp updated_at = 5 [json_name = "updatedAt"]; -
hasExtra
public boolean hasExtra()Backend-specific diagnostics
.google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
hasExtrain interfaceNavigation.StatusOrBuilder- Returns:
- Whether the extra field is set.
-
getExtra
public com.google.protobuf.Struct getExtra()Backend-specific diagnostics
.google.protobuf.Struct extra = 99 [json_name = "extra"];- Specified by:
getExtrain interfaceNavigation.StatusOrBuilder- Returns:
- The extra.
-
setExtra
Backend-specific diagnostics
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
setExtra
Backend-specific diagnostics
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
mergeExtra
Backend-specific diagnostics
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
clearExtra
Backend-specific diagnostics
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-