ROS Answers: Open Source Q&A Forum - RSS feedhttps://answers.ros.org/questions/Open source question and answer forum written in Python and DjangoenROS Answers is licensed under Creative Commons Attribution 3.0Wed, 13 Jul 2011 20:25:46 -0500is tf.transformations.quaternion_from_euler equal with tf::createQuaternionMsgFromYaw in functional?https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/is tf.transformations.quaternion_from_euler equal with tf::createQuaternionMsgFromYaw in functional?Tue, 12 Jul 2011 18:43:22 -0500https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/Answer by dornhege for <p>is tf.transformations.quaternion_from_euler equal with tf::createQuaternionMsgFromYaw in functional?</p>
https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?answer=15599#post-id-15599It's not the same. The first expects three Euler angles and will produces an arbitrary rotation in space and results in a quaternion. The second only needs one angle and will produce a rotation around the z-Axis and return a quaternion message.Tue, 12 Jul 2011 22:27:46 -0500https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?answer=15599#post-id-15599Comment by dornhege for <p>It's not the same. The first expects three Euler angles and will produces an arbitrary rotation in space and results in a quaternion. The second only needs one angle and will produce a rotation around the z-Axis and return a quaternion message.</p>
https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?comment=24385#post-id-24385If you pass 0 for roll and pitch the results should be equivalent, although different data types.Wed, 13 Jul 2011 05:25:30 -0500https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?comment=24385#post-id-24385Comment by gong for <p>It's not the same. The first expects three Euler angles and will produces an arbitrary rotation in space and results in a quaternion. The second only needs one angle and will produce a rotation around the z-Axis and return a quaternion message.</p>
https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?comment=24398#post-id-24398so, if I just provide yaw the two methods would be the same?Wed, 13 Jul 2011 01:33:39 -0500https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?comment=24398#post-id-24398Comment by gong for <p>It's not the same. The first expects three Euler angles and will produces an arbitrary rotation in space and results in a quaternion. The second only needs one angle and will produce a rotation around the z-Axis and return a quaternion message.</p>
https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?comment=24364#post-id-24364Thanks, I‘m just to verify it.Wed, 13 Jul 2011 20:25:46 -0500https://answers.ros.org/question/10582/is-tftransformationsquaternion_from_euler-equal-with-tfcreatequaternionmsgfromyaw-in-functional/?comment=24364#post-id-24364