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-2110: Update frame system screenshots for R2D2 editor #3597

Merged

Conversation

sguequierre
Copy link
Collaborator

@sguequierre sguequierre commented Oct 18, 2024

  • edits frame system service and reference frame docs
  • replaces screenshots
  • cleans up service page a bit

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Oct 18, 2024

3. To adjust the frame from its default configuration, change the parameters as needed for your machine before saving.
Select a **Parent** frame and fill in the coordinates for **Translation** (_mm_) and **Orientation** (_deg_, _rad_, or _q_), according to the position and orientation of your component in relation to the **Parent** frame.
Select a **Parent** frame and fill in the coordinates for **Translation** (m) and **Orientation** (deg, rad, or q), according to the position and orientation of your component in relation to the **Parent** frame.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unitalicized units bc i looked it up and apparently you're not supposed to do that

@@ -151,9 +153,9 @@ Configure the reference frame as follows:
| Parameter | Required? | Required |
| --------- | ----------- | ----- |
| `parent` | **Required** | Default: `world`. The name of the reference frame you want to act as the parent of this frame. |
| `translation` | **Required** | Default: `(0, 0, 0)`. The coordinates that the origin of this component's reference frame has within its parent reference frame. <br> Units: _mm_. |
| `translation` | **Required** | Default: `(0, 0, 0)`. The coordinates that the origin of this component's reference frame has within its parent reference frame. <br> Units: m in Frame Editor, mm in JSON. |
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is indeed the case that the units are different in the editor-- confirmed with michael parks. a bit odd but he said he would make a ticket to mark units on the editor so at least that will be more clear

Copy link
Collaborator

Choose a reason for hiding this comment

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

good catch

@@ -288,127 +265,13 @@ The resulting tree of reference frames looks like:

## Access the frame system

The [Robot API](https://github.com/viamrobotics/api/blob/main/proto/viam/robot/v1/robot.proto) supplies the following method to interact with the frame system:
The [Machine Management API](/appendix/apis/robot/) supplies the following methods to interact with the frame system:

<!-- prettier-ignore -->
| Method Name | Description |
| ----- | ----------- |
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed this in favor of linking to the methods (which we now have both documented) bc I think that makes more sense/leaves us not having to duplicate, lmk and I can put them back

Copy link
Collaborator

Choose a reason for hiding this comment

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

nice


Now that the frame system is accurately configured with the machine's spatial orientation, [motion service](/services/motion/) methods that take in reference frame information can be used.

### Display options
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed this part bc it should be self explanatory in the app

Copy link
Collaborator

@npentrel npentrel left a comment

Choose a reason for hiding this comment

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

Great - thank you! Two nits, otherwise good to merge

docs/services/frame-system/_index.md Outdated Show resolved Hide resolved
docs/services/frame-system/_index.md Outdated Show resolved Hide resolved
@viambot
Copy link
Member

viambot commented Oct 18, 2024

You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/3597

@sguequierre sguequierre merged commit 72664bd into viamrobotics:main Oct 18, 2024
9 checks passed
@sguequierre sguequierre deleted the DOCS-2110/frame-system-screenshots branch October 18, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to build This pull request is marked safe to build from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants