Skip to content

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

Merged
merged 10 commits into from
Apr 25, 2025

Conversation

raybjork
Copy link
Member

@raybjork raybjork commented Apr 24, 2025

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 the Geometries endpoint in the frame of the gripper

Screenshot 2025-04-24 at 6 55 33 PM

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Apr 24, 2025
@raybjork raybjork changed the title implement modelFrame for gripper client implement ModelFrame for gripper client Apr 24, 2025
@raybjork raybjork requested review from randhid and biotinker April 24, 2025 19:38
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 24, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 24, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 24, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 25, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 25, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 25, 2025
return nil, fmt.Errorf("cannot create link config for Frame with %d DoF", len(frame.DoF()))
}

pose, err := frame.Transform([]Input{})
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

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)

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 25, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 25, 2025
Copy link
Member

@biotinker biotinker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 25, 2025
@raybjork raybjork merged commit 30775e1 into viamrobotics:main Apr 25, 2025
18 checks passed
@raybjork raybjork deleted the gripper-client-work branch April 25, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants