-
Notifications
You must be signed in to change notification settings - Fork 40
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
Allow use of radians or degrees for angle units in poses #300
Comments
Hello @sea-bass , I looked into this issue and worked on a solution. I haven’t fully tested it yet but will make sure to do so before submitting a PR. My Idea: I added a new class argument Tested: I tested this, with spawning Here’s a snippet of the default constructor and demo:
Let me know your thoughts on this approach. If there’s anything I missed (any pitfall) or could improve, please let me know. |
That looks in line with what I was thinking! Just know that there a bunch of static methods in the Pose class that also need to be given this angle unit. The As before, the true test is whether putting the angle units in the world YAML file works, and the world can then be reset from the GUI. |
I noted your points. When you mentioned static methods, did you mean For testing, do we need to create new tests for this change, or are there already existing tests that I can run to check if anything breaks with the new functionality? |
Probably yes, there should be some good tests already for the And once we have this in place, I think it makes sense to update all the example worlds to use degrees. As the original issue noted, the main use case was it's awkward to express multiples of |
Okay, understood. I think I have enough inputs to start working on this issue. If I need to discuss anything while working on it, I’ll reach out. |
Suggested by a user: "Another annoyance is the use of radians for pose angles. Degrees would be much
more user friendly for text formats."
This would involve making some slight changes to the Pose constructor and/or static methods to specify the units.
I would maintain that radians should be the default, though.
The text was updated successfully, but these errors were encountered: