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.0Mon, 16 Jul 2018 09:57:44 -0500i am new to ROS. i want to ask how to multiply two transformation matrix in tf ROS?https://answers.ros.org/question/297009/i-am-new-to-ros-i-want-to-ask-how-to-multiply-two-transformation-matrix-in-tf-ros/tf ROS transformation matrix multiplicationWed, 11 Jul 2018 08:33:20 -0500https://answers.ros.org/question/297009/i-am-new-to-ros-i-want-to-ask-how-to-multiply-two-transformation-matrix-in-tf-ros/Answer by PeteBlackerThe3rd for <p>tf ROS transformation matrix multiplication</p>
https://answers.ros.org/question/297009/i-am-new-to-ros-i-want-to-ask-how-to-multiply-two-transformation-matrix-in-tf-ros/?answer=297015#post-id-297015If you're working in C++ the tf::Transform class overloads the * operator to combine transformations. So it is as simple as:
tf::Transform A, B;
tf::Transform C = A * B;
see the reference [here](http://docs.ros.org/jade/api/tf/html/c++/classtf_1_1Transform.html#a1db866af14445ce23cdbf90f6bfa5a14).Wed, 11 Jul 2018 09:23:22 -0500https://answers.ros.org/question/297009/i-am-new-to-ros-i-want-to-ask-how-to-multiply-two-transformation-matrix-in-tf-ros/?answer=297015#post-id-297015Comment by aanish for <p>If you're working in C++ the tf::Transform class overloads the * operator to combine transformations. So it is as simple as:</p>
<pre><code>tf::Transform A, B;
tf::Transform C = A * B;
</code></pre>
<p>see the reference <a href="http://docs.ros.org/jade/api/tf/html/c++/classtf_1_1Transform.html#a1db866af14445ce23cdbf90f6bfa5a14">here</a>.</p>
https://answers.ros.org/question/297009/i-am-new-to-ros-i-want-to-ask-how-to-multiply-two-transformation-matrix-in-tf-ros/?comment=297556#post-id-297556is multiplication same in python.Mon, 16 Jul 2018 09:57:44 -0500https://answers.ros.org/question/297009/i-am-new-to-ros-i-want-to-ask-how-to-multiply-two-transformation-matrix-in-tf-ros/?comment=297556#post-id-297556