Skip to content

Conversation

Adimote
Copy link
Member

@Adimote Adimote commented Mar 1, 2018

Add page on orientations and a table of images on what each rotation looks like.


## Orientation Coordinates

Orientation represents the rotation of a marker around the x, y, and z axes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why X, Y, Z are capitalised and x,y,z are not?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, good catch

@Adimote
Copy link
Member Author

Adimote commented Mar 1, 2018

@trickeydan I've made additions since you reviewed (my fault), is there any chance you can take another look?

counter-clockwise about the Cartesian y axis.
- `rot_z_radians` / `rot_z_degrees` - the angle of rotation in radians/degrees
counter-clockwise about the Cartesian z axis. (tip: the z axis typically faces the camera, and thus will seem like a clockwise rotation)
counter-clockwise about the Cartesian z axis. (tip: the z axis typically
Copy link
Contributor

Choose a reason for hiding this comment

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

Using the term typically suggests that there is a case where the z axis may not face the camera?
Is it worth mentioning this in the docs?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in c04d06d

- `pixel_centre` - returns the location in pixels of the centre of the marker in the captured image.
- `cartesian` - returns details of the position of the marker in the [Cartesian](coordinates/#cartesian-coordinates) coordinate system.
- `spherical` - returns details of the position of the marker in a [spherical](coordinates/#spherical-coordinates) coordinate system.
- `orientation` - returns the rotation of the marker around its centre. See [Orientation](coordinates/#orientation) for its coordinate system.
Copy link
Member

Choose a reason for hiding this comment

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

I don't really like the additional sentence just to link, could we word orientation into the initial one. Perhaps:

returns the [Orientation] of the marker around its centre.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in 5566007

rotations represent.
| | |
|:-:|:-:|
| <img src="/img/api/coordinate-orientations/m45x0y0z.png?width=200px" style="margin:0"/> `rot_x_degrees = 45` | <img src="/img/api/coordinate-orientations/m-45x0y0z.png?width=200px" style="margin:0"/> `rot_x_degrees = -45` |
Copy link
Member

Choose a reason for hiding this comment

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

Why are we using image tags here rather than the markdown format? I can't see that forcing the margin to 0 is really required 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.

the default margin makes them very spaced out

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, you're right, that's really annoying. I'll try and fix it with CSS some time!


![A diagram showing the coordinate spaces](/img/api/coordinate-spaces.svg)

## Orientation Coordinates
Copy link
Member

Choose a reason for hiding this comment

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

Orientation isnt a coordinate system. I think this section warrants its own page


The following table visually explains what positive and negative
rotations represent.
| | |
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, fixed in eb0f59e

@PeterJCLaw
Copy link
Contributor

Note: I'm holding off reviewing this until sourcebots/sb-vision#34 and sourcebots/robot-api#83 are resolved.

@trickeydan trickeydan added the Frozen Won't fix this issue label Jul 30, 2018
@RealOrangeOne RealOrangeOne mentioned this pull request Jul 19, 2023
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frozen Won't fix this issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants