Equivalent of checking quaternion is valid in tf2
Is there an equivalent function to assertQuaternionValid()
in tf2? I suppose I could just re-implement the source code for the function using tf2 equivalents? http://docs.ros.org/en/diamondback/ap...
There is a thread that may be interesting to you:
https://github.com/ros/geometry2/pull...
I'm having trouble understanding this idea that a calculation should be refused because the quaternion is slightly un-normalized. It seems reasonable to log a warning if you think that characteristic is important, but by my thinking you should proceed with the calculation anyway.
Re-implementing that source code in python:
Probably converting the quaternion to the transformations.py array representation and doing a dot with itself is better