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

support: specify OPW joint offsets in degrees. #293

Conversation

gavanderhoorn
Copy link
Member

@gavanderhoorn gavanderhoorn commented Aug 13, 2020

As per subject.

rosparam supports a deg(..) conversion function which converts its argument to radians, even in .yaml files.

We can use this to spec OPW's joint offsets in degrees instead of radians.

For context, see JeroenDM/moveit_opw_kinematics_plugin#67.

rosparam documentation: wiki/rosparam: YAML Format.

Use rosparam's support for special 'deg(..)' convenience function (which converts it to radians for us) instead of limited precision manually converted values in radians.

See http://wiki.ros.org/rosparam#YAML_Format and JeroenDM/moveit_opw_kinematics_plugin#67.
@gavanderhoorn
Copy link
Member Author

An additional advantage of using this function is we now always use the same number of significant digits when specifying the offsets.

With manual conversion, the precision would depend on the nr of digits copy-pasted by the author of the .yaml.

@gavanderhoorn gavanderhoorn merged commit f44b238 into ros-industrial:indigo-devel Aug 14, 2020
@gavanderhoorn gavanderhoorn deleted the opw_offsets_in_degrees branch August 14, 2020 10:50
@gavanderhoorn
Copy link
Member Author

Thank @Levi-Armstrong 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants