Skip to content
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

DOCS-2317: Add motion service code snippets #3970

Conversation

skyleilani
Copy link
Contributor

@skyleilani skyleilani commented May 17, 2024

These code snippets were tested on a machine configured with real hardware Monday, 5/20. The purpose was to validate the functionality of these samples with the motion and SLAM services.

This error was thrown every time we tested the script. This error came up regardless of the method being called or the success of the method.

Screenshot 2024-05-21 at 12 12 29 PM

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label May 17, 2024
Copy link
Contributor

Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!

component function
base IsMoving
board GPIOPinByName
camera Properties
encoder Properties
motor IsMoving
sensor Readings
servo Position
arm EndPosition
audio MediaProperties
gantry Lengths
gripper IsMoving
input_controller Controls
movement_sensor LinearAcceleration
power_sensor Power
pose_tracker Poses
motion GetPose
vision ClassificationsFromCamera

@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 May 17, 2024
@skyleilani skyleilani changed the title DOCS-2228: Add motion service code snippets DOCS-2317: Add motion service code snippets May 22, 2024
@skyleilani skyleilani marked this pull request as ready for review May 22, 2024 13:21
@skyleilani skyleilani requested a review from raybjork May 22, 2024 15:22
Copy link
Member

@raybjork raybjork left a comment

Choose a reason for hiding this comment

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

Looking pretty good!

services/motion/motion.go Outdated Show resolved Hide resolved
services/motion/motion.go Show resolved Hide resolved
services/motion/motion.go Outdated Show resolved Hide resolved
services/motion/motion.go Show resolved Hide resolved
services/motion/motion.go Outdated Show resolved Hide resolved
services/motion/motion.go Outdated Show resolved Hide resolved
@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 May 24, 2024
@skyleilani skyleilani requested a review from raybjork May 29, 2024 14:43
Copy link
Member

@raybjork raybjork left a comment

Choose a reason for hiding this comment

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

Looking good. I would like the last comment I left addressed but I'm going to approve it in advance. Thanks for being thorough with this!

Comment on lines 195 to 205
// geometriesInFrame := []*referenceframe.GeometriesInFrame{}
//
// worldState, _ := referenceframe.NewWorldState(geometriesInFrame, nil)
//
Copy link
Member

Choose a reason for hiding this comment

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

If you aren't making a worldState you can delete these and just pass nil into the Move function. If you want to include a worldstate then you should add geometries to it. I'm not sure if the motivation of these docs is to include a minimal example or an example utilizing all the fields

@skyleilani
Copy link
Contributor Author

Looking good. I would like the last comment I left addressed but I'm going to approve it in advance. Thanks for being thorough with this!

Thanks for all of the help with these! I see your comment and will definitely address it before merging. I appreciate your reviews!

@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 Jun 24, 2024
@skyleilani skyleilani force-pushed the DOCS-2228-Add-motion-service-code-snippets branch from f37c1b9 to e104461 Compare July 3, 2024 16:05
@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 Jul 3, 2024
@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 Jul 3, 2024
@skyleilani skyleilani requested a review from andf-viam July 3, 2024 20:54
@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 Jul 3, 2024
Copy link
Member

@andf-viam andf-viam left a comment

Choose a reason for hiding this comment

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

This LGTM! Thanks much for your thorough eye and careful checking!

@skyleilani skyleilani merged commit 0c24ea7 into viamrobotics:main Jul 3, 2024
19 checks passed
@skyleilani skyleilani deleted the DOCS-2228-Add-motion-service-code-snippets branch July 3, 2024 22:03
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.

5 participants