-
Notifications
You must be signed in to change notification settings - Fork 117
implement ModelFrame
for gripper client
#4936
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
Conversation
ModelFrame
for gripper client
return nil, fmt.Errorf("cannot create link config for Frame with %d DoF", len(frame.DoF())) | ||
} | ||
|
||
pose, err := frame.Transform([]Input{}) |
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.
Is there no way to get the pose of a frame directly? Why the empty input transform?
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.
A frame doesn't "have" a pose, a frame is a function that knows how to turn a set of floats (inputs) into a pose.
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.
We could cast it to a (*staticFrame) and then access the variables directly. But this is slightly more general since there could be other types of frames of zero DoF. Idk I could go either way on it. It isn't performance critical so I think this is fine
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.
Personally I prefer the current implementation over a cast to a (*staticFrame)
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
We're currently blocked from adding grippers into the frame system using the intended flow. This PR implements
ModelFrame
so that the client returns all the geometries returned from theGeometries
endpoint in the frame of the gripper