-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSDK-1979 add motion service #55
RSDK-1979 add motion service #55
Conversation
09c6b91
to
438dcaa
Compare
return { | ||
x: proto.getX(), | ||
y: proto.getY(), | ||
z: proto.getZ(), | ||
}; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import pb from '../../gen/service/motion/v1/motion_pb'; | ||
|
||
export type MotionConstraints = pb.Constraints.AsObject; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the code below will go away once we migrate to protobuf-es since that library generate protobuf structures that are essentially plain objects. for now we need to have custom functions to convert from objects -> protos.
I tested these changes against a live arm. Unfortunately we actually use the motionApi yet so we might have to wait for it to be developed more to test that wrapper. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
JIRA: https://viam.atlassian.net/browse/RSDK-1979
AsObject
interface. Sadly these is no built-infromObject
method so we have to write functions for this.