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

The msg_type argument in the node.subscribe method is unclear. (Python gz.transport14) #548

Closed
samh133 opened this issue Oct 8, 2024 · 1 comment

Comments

@samh133
Copy link

samh133 commented Oct 8, 2024

I am attempting to use the node.subscribe method to subscribe to a topic. It appears to require three arguments, msg_type, topic and callback. I have not been able to find in what way the msg_type variable should be passed. There does not appear to be any reference to msg_type in the documentation https://gazebosim.org/api/transport/14/messages.html.
What values of msg_type can be passed?

image
image
image

@azeey
Copy link
Contributor

azeey commented Nov 5, 2024

The msg_type is the class that is generated from the gz-msgs proto. I believe it's covered in the python tutorial https://gazebosim.org/api/transport/14/python.html

@azeey azeey closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants