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

get the name of the rigid bodies and markers #43

Open
nag92 opened this issue Jul 24, 2024 · 1 comment
Open

get the name of the rigid bodies and markers #43

nag92 opened this issue Jul 24, 2024 · 1 comment

Comments

@nag92
Copy link

nag92 commented Jul 24, 2024

is it possible to get the name of the markers and rigid bodies using the SDK?

@OliverGlandberger
Copy link
Contributor

OliverGlandberger commented Nov 13, 2024

TL;DR - Yes.

It is possible to get both the name of Rigid Bodies as well as the name of labeled trajectories using the RT Protocol (see QTM RT protocol). Although the syntax of course differs depending on which SDK you're using.

I took a quick look at THIS example code in the Python SDK, and found the following:
# Get 6dof settings from qtm
xml_string = await connection.get_parameters(parameters=["6d"])
body_index = create_body_index(xml_string)

It's in create_body_index that the XML data retrieved from the RT Protocol is parsed. In this particular example, you might change "6d" --> "3d" in order to obtain the marker data you're seeking.

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

No branches or pull requests

2 participants