{"id":2805,"date":"2021-06-17T15:20:49","date_gmt":"2021-06-17T06:20:49","guid":{"rendered":"https:\/\/www.kdel.org\/wp\/?p=2805"},"modified":"2021-06-17T15:29:57","modified_gmt":"2021-06-17T06:29:57","slug":"robotino%e3%81%a7ros%ef%bc%88%e3%81%9d%e3%81%ae2%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.kdel.org\/wp\/?p=2805","title":{"rendered":"Robotino\u3067ROS\uff08\u305d\u306e2\uff09"},"content":{"rendered":"<p><a href=\"https:\/\/www.kdel.org\/wp\/?p=2402\">Robotino\u3067ROS<\/a>\u306e\u7d9a\u304d\u3067\u3059\uff0e<\/p>\n<p>Robotino \u306eodometry\u3092(x, y, z)\u3067\u516c\u958b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\uff0cz\u306fz\u8ef8\u3092\u8868\u3059\uff08\u3064\u307e\u308a\uff0c\u9ad8\u3055\uff09\u305f\u3081\uff0c\u56de\u8ee2\u89d2\u306e\u3068\u3053\u308d\u3067\u8868\u3059\u65b9\u304c\u9069\u5207\u3067\u3059\uff0e<br \/>\n\u3068\u3059\u308b\u3068\uff0cz\u306f0\u3082\u3057\u304f\u306f\u30ed\u30dc\u30c3\u30c8\u306e\u9ad8\u3055\u3068\u3057\uff0c\u5411\u304d\u306fquaternion \u3067\u6271\u3063\u305f\u65b9\u304c\u826f\u3044\u30cf\u30ba\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n    # pose.position = point\r\n    # set Pose\r\n    pose.position.x = float(udp.view3Recv&#x5B;2]) \/ 10\r\n    pose.position.y = float(udp.view3Recv&#x5B;3]) \/ 10\r\n    pose.position.z = 0\r\n    # set quaternion\r\n    theta = math.radians(float(udp.view3Recv&#x5B;4]) \/ 10)\r\n    pose.orientation.x = math.cos(theta \/ 2.0)\r\n    pose.orientation.y = math.sin(theta \/ 2.0)\r\n    pose.orientation.z = math.sin(theta \/ 2.0)\r\n    pose.orientation.w = 0\r\n<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\uff0e<br \/>\nimport math\u3082\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u304b\u306a\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Robotino\u3067ROS\u306e\u7d9a\u304d\u3067\u3059\uff0e Robotino \u306eodometry\u3092(x &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.kdel.org\/wp\/?p=2805\"> <span class=\"screen-reader-text\">Robotino\u3067ROS\uff08\u305d\u306e2\uff09<\/span> \u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[3,2,9,24,17],"tags":[],"class_list":["post-2805","post","type-post","status-publish","format-standard","hentry","category-logistics-league","category-robocup","category-robotino-3","category-robotino-4","category-robview3"],"_links":{"self":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2805"}],"version-history":[{"count":5,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2805\/revisions"}],"predecessor-version":[{"id":2810,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2805\/revisions\/2810"}],"wp:attachment":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}