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.0Sun, 11 Apr 2021 11:51:51 -0500Calculate speed given linear twist messagehttps://answers.ros.org/question/359103/calculate-speed-given-linear-twist-message/I have a twist message and want to know what the speed of my robot.
Would it just be sqrt(twist.linear.x^2 + twist.linear.y^2)?Mon, 10 Aug 2020 03:20:29 -0500https://answers.ros.org/question/359103/calculate-speed-given-linear-twist-message/Answer by praskot for <p>I have a twist message and want to know what the speed of my robot.</p>
<p>Would it just be sqrt(twist.linear.x^2 + twist.linear.y^2)?</p>
https://answers.ros.org/question/359103/calculate-speed-given-linear-twist-message/?answer=359162#post-id-359162Yes! (for a 2D system). Mon, 10 Aug 2020 16:33:58 -0500https://answers.ros.org/question/359103/calculate-speed-given-linear-twist-message/?answer=359162#post-id-359162Comment by Akr2712 for <p>Yes! (for a 2D system). </p>
https://answers.ros.org/question/359103/calculate-speed-given-linear-twist-message/?comment=375924#post-id-375924Is the equation similar for 3D systems (sqrt(twist.linear.x^2 + twist.linear.y^2+twist.z^2))?Sun, 11 Apr 2021 11:51:51 -0500https://answers.ros.org/question/359103/calculate-speed-given-linear-twist-message/?comment=375924#post-id-375924