Gazebo: Q&A Forum - RSS feedhttp://answers.gazebosim.org/questions/Open source question and answer forum for GazeboenCopyright Askbot, 2010-2011.Thu, 03 May 2018 11:32:51 -0500Calculate Pitch, Roll, Yaw (with python tensorflow)http://answers.gazebosim.org/question/19214/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!Karine MirasThu, 03 May 2018 11:32:51 -0500http://answers.gazebosim.org/question/19214/