-
Notifications
You must be signed in to change notification settings - Fork 43
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
DOCS-2110: Update frame system screenshots for R2D2 editor #3597
Conversation
sguequierre
commented
Oct 18, 2024
•
edited
Loading
edited
- edits frame system service and reference frame docs
- replaces screenshots
- cleans up service page a bit
|
||
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. |
There was a problem hiding this comment.
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. | |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 | | |||
| ----- | ----------- | |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this 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
Co-authored-by: Naomi Pentrel <[email protected]>
You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/3597 |