Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":3675,"date":"2024-04-01T10:18:31","date_gmt":"2024-04-01T01:18:31","guid":{"rendered":"https:\/\/craft-gogo.com\/?p=3675"},"modified":"2024-04-01T12:47:44","modified_gmt":"2024-04-01T03:47:44","slug":"arduino_eigen","status":"publish","type":"post","link":"https:\/\/craft-gogo.com\/arduino_eigen\/","title":{"rendered":"Arduino\u3067\u884c\u5217\u8a08\u7b97\uff01ArduinoEigen\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"\n

Python\u3067\u306f\u7c21\u5358\u306b\u884c\u5217\u8a08\u7b97\u304c\u51fa\u6765\u308b\u306e\u306b\u3001Arduino\u3067\u306f\u884c\u5217\u8a08\u7b97\u3092\u3055\u305b\u308b\u306e\u306b\u4e00\u82e6\u52b4\u3002\u305d\u3093\u306a\u3068\u304d\u306fArduinoEigen\u30e9\u30a4\u30d6\u30e9\u30ea<\/span><\/strong>\u306e\u4f7f\u7528\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u4eca\u56de\u306f\u3001ArduinoEigen\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

ArduinoEigen\u3068\u306f<\/h2>\n\n\n\n

C++\u306b\u306f\u884c\u5217\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea\u300cEigen\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306eEigen\u3092Arduino\u3067\u76f4\u63a5\u6271\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u306e\u304c\u300cArduinoEigen<\/a>\u300d\u3067\u3059\u3002ArduinoEigen\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001Arduino\u3067\u3082\u884c\u5217\u304c\u7c21\u5358\u306b\u8a08\u7b97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

ArduinoEigen\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n\n\n\n

ArduinoEigen\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u3068\u3063\u3066\u3082\u7c21\u5358\u3067\u3059\u3002\u3053\u3053\u3067\u306fArduino IDE\u3068PlatformIO\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

Arduino IDE\u74b0\u5883<\/h3>\n\n\n\n

\u30b9\u30b1\u30c3\u30c1 > \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9 > \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7ba1\u7406 \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Eigen\u3092\u691c\u7d22\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30dc\u30bf\u30f3\u3092\u62bc\u305b\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

PlatformIO\u74b0\u5883<\/h3>\n\n\n\n

\u672c\u30d6\u30ed\u30b0\u3067\u306f\u3001Arduino\u958b\u767a\u74b0\u5883\u306fPlatformIO\u3092\u304a\u85a6\u3081\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n

\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\u95a2\u9023\u8a18\u4e8b<\/span>\n\t\t\t\t\t
\"\"<\/figure><\/div>\t\t\t\t\t
\n\t\t\t\t\t\t\u3010M5Stack\u3011PlatformIO\u4e57\u63db\u3048\u3066\u30d3\u30eb\u30c9\u901f\u5ea6\u5411\u4e0a\uff01 | CRAFT GoGo<\/a>\n\t\t\t\t\t\t\u524d\u3005\u304b\u3089\u6b32\u3057\u304b\u3063\u305fM5Stack\u3092\u9042\u306b\u8cb7\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff5e\u3002 \u3055\u3063\u305d\u304fArduino IDE\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u3001\u30d3\u30eb\u30c9\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u9045\u3044\u30fb\u30fb\u30fb\u3002Hello World\u3092\u8868\u793a\u3055\u305b\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u8fbc\u3080…<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n

PlatformIO\u74b0\u5883\u3067\u306eArduinoEigen\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u306d\u3002<\/p>\n\n\n\n

Libraries\u304b\u3089\u300cEigen\u300d\u3068\u691c\u7d22\u3059\u308b\u3068\u300cArduinoEigen\u300d\u304c\u30d2\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Add to Project\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3001Project\u3092\u9078\u629e\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\"\"<\/figure>\n\n\n\n

ArduinoEigen\u3092\u4f7f\u3063\u305f\u884c\u5217\u8a08\u7b97\u65b9\u6cd5<\/h2>\n\n\n\n

ArduinoEigen\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u8a73\u7d30\u306a\u4f7f\u3044\u65b9\u3092\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u516c\u5f0f\u30db\u30fc\u30e0\u30da\u30fc\u30b8<\/a>\u3092\u898b\u3066\u4e0b\u3055\u3044\u306d\u3002<\/p>\n\n\n\n

\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/h3>\n\n\n\n

\u307e\u305a\u306f\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002ArduinoEigen.h<\/span><\/strong>\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

#include <ArduinoEigen.h><\/code><\/pre><\/div>\n\n\n\n

\u5909\u6570\u306e\u5ba3\u8a00<\/h3>\n\n\n\n

\u5909\u6570\u3092\u5ba3\u8a00\u3059\u308b\u306b\u306f\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

using Eigen::MatrixXd;\nMatrixXd m(2, 2);<\/code><\/pre><\/div>\n\n\n\n

MatrixXd m(2, 2)\u306f\u30012\u00d72\u306edouble\u578b\u3067\u5909\u6570m\u3092\u5ba3\u8a00\u3057\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u6b63\u65b9\u884c\u5217\u3067\u6b21\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

using Eigen::Matrix2d;\nMatrix2d m;<\/code><\/pre><\/div>\n\n\n\n

\u5909\u6570\u306e\u578b\u3092double\u3067\u306f\u306a\u304ffloat\u3001int\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u6700\u5f8c\u306e\u6587\u5b57\u3092\u300cd\u300d\u304b\u3089\u300cf\u300d\u3001\u300ci\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

MatrixXd \/\/ double\u578b\nMatrixXf \/\/ float\u578b\nMatrixXi \/\/ int\u578b<\/code><\/pre><\/div>\n\n\n\n

\u521d\u671f\u5024\u306e\u4ee3\u5165<\/h3>\n\n\n\n

\u521d\u671f\u5024\u3092\u4ee3\u5165\u3059\u308b\u306b\u306f\u30012\u00d72\u884c\u5217\u306e\u5834\u5408\u3092\u4f8b\u306b\u3059\u308b\u30681\u884c1\u5217\u76ee\u30011\u884c2\u5217\u76ee\u30012\u884c1\u5217\u76ee\u30012\u884c2\u5217\u76ee\u306e\u9806\u306b\u300c,\u300d\u533a\u5207\u308a\u3067\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

m << 1, 2, \n           3, 4;<\/code><\/pre><\/div>\n\n\n\n

\u52a0\u7b97<\/h3>\n\n\n\n

\u52a0\u7b97\u306f\u300c+\u300d\u6f14\u7b97\u5b50\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

m = m1 + m2;<\/code><\/pre><\/div>\n\n\n\n

\u6e1b\u7b97<\/h3>\n\n\n\n

\u6e1b\u7b97\u306f\u300c-\u300d\u6f14\u7b97\u5b50\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

m = m1 - m2;<\/code><\/pre><\/div>\n\n\n\n

\u4e57\u7b97<\/h3>\n\n\n\n

\u4e57\u7b97\u306f\u300c*\u300d\u6f14\u7b97\u5b50\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

m = m1 * m2;<\/code><\/pre><\/div>\n\n\n\n

\u8ee2\u7f6e\u884c\u5217<\/h3>\n\n\n\n

\u8ee2\u7f6e\u884c\u5217\u306finverse()\u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

n = m.inverse();<\/code><\/pre><\/div>\n\n\n\n

\u307e\u3068\u3081<\/h2>\n\n\n\n

Arduino\u3067\u884c\u5217\u3092\u6271\u3046\u305f\u3081\u306eArduinoEigen\u30e9\u30a4\u30d6\u30e9\u30ea<\/span><\/strong>\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306e\u89e3\u8aac\u306f\u884c\u5217\u8a08\u7b97\u306e\u3054\u304f\u4e00\u90e8\u3067\u3059\u3002\u305d\u306e\u4ed6\u884c\u5217\u8a08\u7b97\u306e\u4f7f\u3044\u65b9\u306f\u516c\u5f0f\u30db\u30fc\u30e0\u30da\u30fc\u30b8<\/a>\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n

\u6700\u5f8c\u307e\u3067\u304a\u8aad\u307f\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\t\t

\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\"\"\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\tESP32\uff06Arduino \u96fb\u5b50\u5de5\u4f5c \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580 [ \u85e4\u672c\u58f1 ]\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t\t\t
\u697d\u5929\u30d6\u30c3\u30af\u30b9<\/div>\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\u00a53,278\t\t\t\t\t\t\uff082024\/12\/17 17:17\u6642\u70b9 | \u697d\u5929\u5e02\u5834\u8abf\u3079\uff09<\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tAmazon\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\u697d\u5929\u5e02\u5834\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\"\"\n\t\t\t\t\t\u30dd\u30c1\u30c3\u30d7<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\n\n\n\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u4eba\u6c17\u30aa\u30f3\u30e9\u30a4\u30f3\u30b3\u30fc\u30b9\"<\/a>\n","protected":false},"excerpt":{"rendered":"

Python\u3067\u306f\u7c21\u5358\u306b\u884c\u5217\u8a08\u7b97\u304c\u51fa\u6765\u308b\u306e\u306b\u3001Arduino\u3067\u306f\u884c\u5217\u8a08\u7b97\u3092\u3055\u305b\u308b\u306e\u306b\u4e00\u82e6\u52b4\u3002\u305d\u3093\u306a\u3068\u304d\u306fArduinoEigen\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u7528\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u4eca\u56de\u306f\u3001ArduinoEigen\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u89e3 […]<\/p>\n","protected":false},"author":1,"featured_media":254,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/3675"}],"collection":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/comments?post=3675"}],"version-history":[{"count":14,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/3675\/revisions"}],"predecessor-version":[{"id":3702,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/3675\/revisions\/3702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media\/254"}],"wp:attachment":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media?parent=3675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/categories?post=3675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/tags?post=3675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}