Skip to content

Commit

Permalink
name updateKinematicHelper to parseKinematicsResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
nfranczak committed Oct 21, 2024
1 parent f300670 commit 35d6883
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/arm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,5 @@ func (c *client) updateKinematics(ctx context.Context, extra map[string]interfac
return nil, err
}

return updateKinematicHelper(c.name, resp)
return parseKinematicsResponse(c.name, resp)
}
2 changes: 1 addition & 1 deletion components/arm/pb_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"go.viam.com/rdk/referenceframe/urdf"
)

func updateKinematicHelper(name string, resp *commonpb.GetKinematicsResponse) (referenceframe.Model, error) {
func parseKinematicsResponse(name string, resp *commonpb.GetKinematicsResponse) (referenceframe.Model, error) {
format := resp.GetFormat()
data := resp.GetKinematicsData()

Expand Down
2 changes: 1 addition & 1 deletion components/arm/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (s *serviceServer) GetGeometries(ctx context.Context, req *commonpb.GetGeom
if err != nil {
return nil, err
}
model, err := updateKinematicHelper(req.GetName(), kinematicsPbResp)
model, err := parseKinematicsResponse(req.GetName(), kinematicsPbResp)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 35d6883

Please sign in to comment.