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

MNT: Added a board representation of the ChArUco board #48

Closed
wants to merge 1 commit into from

Conversation

Rampex1
Copy link
Collaborator

@Rampex1 Rampex1 commented Jun 19, 2024

This is a representation of the current board that we are using for "setting_reference" in board_builder as well as the calibrator.
Marker 0 is at the top left, origin is at the bottom left.
Positive x goes from left to right, positive y goes upwards, positive z goes out of the board.
The coordinate system has been set in such a way that makes the renderer more intuitive (a marker moving left will move left in the renderer).

@Rampex1 Rampex1 self-assigned this Jun 19, 2024
@Rampex1 Rampex1 linked an issue Jun 19, 2024 that may be closed by this pull request
self._board_marker_positions.append([x, y, z])

def get_ids(self):
self._generate_board()
Copy link
Collaborator

Choose a reason for hiding this comment

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

won't this get called every time you try to get ids or positions? Wouldn't it make more sense for this to be called from init?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to elaborate, from what I see in _generate_board(), it looks like the id's and positions will have their elements added each call. So first call they will have size 40 (ok), but then second it will be 80, then third call will be 120, etc...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it does make more sense to put that in init. I will make those changes in my board_builder PR which I will do Monday, so feel free to close this one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Or Tuesday actually

@Rampex1 Rampex1 closed this Jun 25, 2024
@Rampex1 Rampex1 deleted the board_representation branch June 25, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants