Calculate Pitch, Roll, Yaw (with python tensorflow)
Dear All,
I'm working with Gazebo through python in a virtual environment for simulating modular robots, and I'm having trouble to calculate the Euler angles (Pitch, Roll, Yaw) of the robots' parts using tensorflow. I provide tensorflow an orientation matrix witch I fetch from Gazebo, following examples I've seen around, however, the method Im trying to call is non existent. Obs: I did indstall tensorflow and tf in the virtual environment.
import tensorflow
explicit_quat = [orientation.x, orientation.y, orientation.z, orientation.w]
euler = tensorflow.transformations.euler_from_quaternion(explicit_quat)
The ERROR: 'module' object has no attribute 'transformations'
I also tried it with the tf module, but I get the same.
Can you please help me?
Thank you!
You need to be more specific. Temsorflow is a completely different project from Gazebo. How do you use it in Gazebo? Do you have some virtual environment? From where do you get this `orientation` object?