Skip to content

RSDK-11061 move GetPose from the Motion service API to robot API #713

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

raybjork
Copy link
Member

@raybjork raybjork commented Jun 23, 2025

This PR moves the GetPose method from the Motion service to the Robot itself.

@github-actions github-actions bot added the safe to test committer is a member of this org label Jun 23, 2025
@raybjork raybjork marked this pull request as draft June 23, 2025 23:26
@raybjork raybjork requested a review from cheukt June 25, 2025 17:09
@raybjork raybjork marked this pull request as ready for review June 25, 2025 17:09
@raybjork raybjork changed the title add GetPose to robot API RSDK-11061 move GetPose from the Motion service API to robot API Jun 25, 2025
message GetPoseRequest {
string name = 1;
// the component whose pose is being requested
common.v1.ResourceName component_name = 2;
Copy link
Member

Choose a reason for hiding this comment

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

if we want to avoid a breaking change later, maybe just make this a string?

Copy link
Member

@cheukt cheukt Jun 25, 2025

Choose a reason for hiding this comment

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

though making it a string could be risky if we don't end up doing the other project

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm good with either. I'll leave this up to you to decide, since you have the best understanding of whats going on

Copy link
Member

Choose a reason for hiding this comment

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

I think it'll be better as a string - we can use a helper to only check the ShortNames() on a robot, and if there was a collision the framesystem wouldn't build properly anyway

@@ -425,3 +435,22 @@ message GetVersionResponse {

string api_version = 3;
}

message GetPoseRequest {
string name = 1;
Copy link
Member

Choose a reason for hiding this comment

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

name should be unneeded here

Copy link
Member Author

Choose a reason for hiding this comment

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

Do I understand correctly this isn't needed because this isn't on a resource anymore? If so, nice catch I missed this

Copy link
Member

Choose a reason for hiding this comment

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

yep

@raybjork raybjork requested a review from cheukt June 25, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test committer is a member of this org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants