Skip to content

Conversation

@pavi-rajes
Copy link
Collaborator

This branch is work in progress. I added a centerout.py file in postproc to include functions related to getting the mapping used and perform coordinate transformations.
Need to write test cases for all functions in centerout.py. I have included test cases for coordinate transformation functions. those two can be merged.

@pavi-rajes pavi-rajes linked an issue Jun 18, 2024 that may be closed by this pull request
@pavi-rajes pavi-rajes requested a review from leoscholl June 18, 2024 21:26
Comment on lines +201 to +211
# Transformation matrix
T = np.array([
[0, 0, 1],
[0, 1, 0],
[1, 0, 0]
])

# Perform the matrix multiplication
h_coords = o_coords.dot(T)

return h_coords
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't this also include the offset and scale portion of the full _transform_coords()?

Copy link
Collaborator

@leoscholl leoscholl left a comment

Choose a reason for hiding this comment

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

get_mapping and transform_coords are implemented in #594

  • it would be great to make a new PR with the images you made describing the various coordinate systems. we defined "raw" coordinate system to mean the coordinate system used by inputs like optitrack, the "bmi3d" coordinate system with y/z flipped, the "screen" coordinate system that is xyz=right/up/into the screen, and the "world" coordinate system xyz=right/up/forwards for the user.
  • it would also be great to add get_taskspace_and_nullspace and decompose_hand_movements to aopy

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.

hand and cursor kinematics in different coordinate systems

4 participants