{"id":1026,"date":"2018-04-11T14:46:36","date_gmt":"2018-04-11T05:46:36","guid":{"rendered":"https:\/\/www.kdel.org\/wp\/?p=1026"},"modified":"2023-10-02T13:32:02","modified_gmt":"2023-10-02T04:32:02","slug":"myfunctionblock-%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88ubuntu-16-04-on-robotino-3%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.kdel.org\/wp\/?p=1026","title":{"rendered":"MyFunctionBlock \u306e\u4f5c\u6210\uff08ubuntu 16.04 on robotino 3\uff09"},"content":{"rendered":"<p><mark><a href=\"http:\/\/doc.openrobotino.org\/download\/RobotinoView\/en\/index.html?programming_myfunctionblocks_preparation.htm\">Programming => My function blocks => Preparing the build environment<\/a><\/mark>\u306b\u5f93\u3063\u3066\uff0cMyFunctionBlock \u306e\u4f5c\u6210\u306b\u6311\u6226\u3057\u307e\u3059\uff0e<br \/>\n<del datetime=\"2018-04-13T08:13:47+00:00\">\u5fc5\u8981\u30c4\u30fc\u30eb\u3068\u3057\u3066\uff0c<mark><a href=\"https:\/\/cmake.org\/download\/\">cmake<\/a><\/mark>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\uff0e<br \/>\n<mark><a href=\"http:\/\/doc.openrobotino.org\/download\/RobotinoAPI2\/\">RobotinoApi2<\/a><\/mark>\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff0e<br \/>\n\u305f\u3060\u3057\uff0c\u95a2\u4fc2\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306fRobotino View2 \u306e\u30d5\u30a9\u30eb\u30c0\u3068\u306a\u308a\u307e\u3059\uff0e<\/del><br \/>\n<mark><a href=\"http:\/\/doc.openrobotino.org\/download\/RobotinoView\/robview3_api_current.php\">robView3-api<\/a><\/mark>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff0e<br \/>\n2018\u5e744\u670813\u65e5\u73fe\u5728\u3067\u306f\uff0cView\u306f3.2.0\u304c\uff0capi\u306f3.1.2\u304c\u6700\u65b0\u7248\u3068\u3057\u3066\u5b58\u5728\u3057\u307e\u3059\u304c\uff0cRobotinoView_api-3.1.1.exe \u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5bfe\u8c61\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e<br \/>\n\u305d\u306e\u5834\u5408\u306f\uff0cRobotinoView-3.1.1.exe \u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\uff0e<br \/>\n\u305b\u3063\u304b\u304f\u3067\u3059\u306e\u3067\uff0c3.1.2 \u3092\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e<br \/>\nRobotinoView_api \u3092\u5165\u308c\u308b\u3068\uff0ccmake 3.0.2\u3068Function Block manager \u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\uff0e<br \/>\n\u305f\u3060\u3057\uff0ccmake 3.0.2\u3067\u306f\uff0cVisual Studio 12 (2013)\u307e\u3067\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\uff0c\u305d\u308c\u4ee5\u964d\u306eVisutal Studio \u3092\u4f7f\u3046\u306e\u3067\u3042\u308c\u3070\uff0c<mark><a href=\"https:\/\/cmake.org\/download\/\">cmake \u306e\u6700\u65b0\u7248<\/a><\/mark>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff0e<\/p>\n<p>robView3-api \u306b\u6dfb\u4ed8\u306eFunction Block manager\u3067\uff0c\u65b0\u3057\u3044\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u30d6\u30ed\u30c3\u30af\u3092\u751f\u6210\u3057\u307e\u3059\uff0e<br \/>\nFunction block designer \u3067\u5fc5\u8981\u9805\u76ee\u3092\u5165\u529b\u3057\uff0cGenerate\u3092\u5b9f\u884c\u3057\u305f\u3089\uff0c<br \/>\nC:\/Users\/<\u30e6\u30fc\u30b6\u30fc\u540d>\/Festo\/RobotinoView3\/units\/MyFunctionBlocks\/<\u30d6\u30ed\u30c3\u30af\u540d>.unit<br \/>\n\u304c\u751f\u6210\u3055\u308c\u307e\u3059\uff0e<br \/>\n\u6b21\u306b\uff0cDevice manager \u306b\uff0c\u4eca\u4f5c\u3063\u305f\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff0e<br \/>\nMyFunctionBlocks\u306e\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u300cAdd function block\u300d\u3092\u9078\u3073\u307e\u3059\uff0e<br \/>\n\u305d\u3057\u3066\uff0c\u4f5c\u6210\u3057\u305f\u30d6\u30ed\u30c3\u30af\u540d\u3092\u9078\u3073\uff0c\u8ffd\u52a0\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u300csave\u300d\u3092\u62bc\u3057\u307e\u3059\uff0e<\/p>\n<p>\u305d\u3057\u3066\uff0c<mark><a href=\"http:\/\/doc.openrobotino.org\/download\/RobotinoView\/en\/index.html?programming_myfunctionblocks_preparation.htm\">Preparing the build environment<\/a><\/mark>\u306b\u5f93\u3063\u3066\uff0cCMake(cmake-gui) \u3092\u5b9f\u884c\u3057\u307e\u3059\uff0e<\/p>\n<p>Where is the source code: \u306f\uff0c&#8221;C:\/Users\/<\u30e6\u30fc\u30b6\u30fc\u540d>\/Festo\/RobotinoView3\/units\/MyFunctionBlocks\/<\u30d6\u30ed\u30c3\u30af\u540d>.unit\/plugin\/&#8221;\u3092\uff0c<br \/>\nWhere to build the binaries: \u306f\uff0c&#8221;C:\\tmp\\<\u30d6\u30ed\u30c3\u30af\u540d>&#8220;\u3068\u3057\u307e\u3057\u305f\uff0e<br \/>\nconfigure\u3092\u62bc\u3057\uff0cVisual Studio\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u3073\uff0cUse default native compilers \u3092\u9078\u629e\u3057\u307e\u3059\uff0e<br \/>\nc:\/tmp\/<\u30d6\u30ed\u30c3\u30af\u540d>\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\uff0e<br \/>\n\u305d\u306e\u5f8c\uff0cGererate \u3092\u62bc\u3057\u307e\u3059\uff0e<br \/>\nVisual Studio \u7528\u306e\u30d5\u30a1\u30a4\u30eb\uff08\u62e1\u5f35\u5b50.sln\uff09\u304c\u751f\u6210\u3055\u308c\u308b\u306f\u305a\u3067\u3059\uff0e<\/p>\n<p>Windows \u306b<mark><a href=\"https:\/\/www.visualstudio.com\/ja\/vs\/support\/selecting-workloads-visual-studio-2017\/\">visutal studio<\/a><\/mark> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff0e<br \/>\n\u3068\u308a\u3042\u3048\u305a\u958b\u767a\u74b0\u5883\u3068\u3057\u3066\uff0cLinux development with C++ \u3092\u9078\u629e\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<p>\u5148\u307b\u3069\u751f\u6210\u3057\u305f.sln \u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\uff0cvisual studio \u3092\u8d77\u52d5\u3057\u307e\u3059\uff0e<br \/>\n\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u306e\u300cunit_robview_myfunctionblocks_<\u30d6\u30ed\u30c3\u30af\u540d>\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3092\u9078\u3073\uff0c\u4ee5\u4e0b\u306e\u9805\u76ee\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff0e<br \/>\n\u300c\u69cb\u6210\u30d7\u30ed\u30d1\u30c6\u30a3\uff08Konfigurationseigenschaften\uff09\u300d\u306e\u300c\u30c7\u30d0\u30c3\u30b0\uff08Debugging\uff09\u300d\u306e\u300c\u30b3\u30de\u30f3\u30c9\uff08Befehl\uff09\u300d\u306b\uff0c<br \/>\n\u300cC:\\Program Files %28&#215;86%29\\Didactic\\RobotinoView3\\bin\\robview3.exe\u300d\u3092\u5165\u529b\uff08\u300c\u53c2\u7167\u300d\u3067\u9078\u629e\uff09\u3057\u307e\u3059\uff0e<br \/>\n\uff08\u5b9f\u969b\u306f\uff0c\u201c(x86)\u201d\u306e\u90e8\u5206\u304c\u201c%28&#215;86%29\u201d\u3068\u306a\u308a\u307e\u3059\uff09<\/p>\n<p>\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u306b\u95a2\u9023\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u89a7\u304c\u8868\u308c\u307e\u3059\u304c\uff0c\u305d\u306e\u4e2d\u306e<br \/>\n\u300cunit_robview_myfunctionblocks_<\u30d6\u30ed\u30c3\u30af\u540d>\u300d\u306e\u4e2d\u306e\u300cSource Files\u300d\u306e\u4e2d\u306b\uff0c<br \/>\nmain.cpp \u3068<\u30d6\u30ed\u30c3\u30af\u540d>.cpp \u304c\u3042\u308a\u307e\u3059\u306e\u3067\uff0c\u305d\u306e<\u30d6\u30ed\u30c3\u30af\u540d>.cpp\u3092\u958b\u304d\uff0c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u307e\u3059\uff0e<\/p>\n<p>\u203b\u30c7\u30d0\u30c3\u30b0\u3067\u30ea\u30d3\u30eb\u30c9\u3059\u308b\u3068\uff0c\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u2026\uff0e\u5bfe\u51e6\u6cd5\u691c\u8a0e\u4e2d\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Programming => My function blocks => Pre &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.kdel.org\/wp\/?p=1026\"> <span class=\"screen-reader-text\">MyFunctionBlock \u306e\u4f5c\u6210\uff08ubuntu 16.04 on robotino 3\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":[10,3,2,9],"tags":[],"class_list":["post-1026","post","type-post","status-publish","format-standard","hentry","category-fawkes","category-logistics-league","category-robocup","category-robotino-3"],"_links":{"self":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1026","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=1026"}],"version-history":[{"count":21,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1026\/revisions"}],"predecessor-version":[{"id":3269,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1026\/revisions\/3269"}],"wp:attachment":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}