Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Calculate Pitch, Roll, Yaw (with python tensorflow)

$
0
0
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!

Viewing all articles
Browse latest Browse all 7017

Trending Articles