{"id":5994,"date":"2021-08-18T15:58:15","date_gmt":"2021-08-18T06:58:15","guid":{"rendered":"http:\/\/zero.globalzeus.com\/?p=5994"},"modified":"2021-08-25T09:29:34","modified_gmt":"2021-08-25T00:29:34","slug":"zra-ex09_raw_input-py","status":"publish","type":"post","link":"http:\/\/zero.globalzeus.com\/en\/zra-ex09_raw_input-py\/","title":{"rendered":"ZRA &#8211; ex09_raw_input.py"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"5994\" class=\"elementor elementor-5994\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1200a6c elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1200a6c\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[{&quot;jet_parallax_layout_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;},&quot;_id&quot;:&quot;1a4921b&quot;,&quot;jet_parallax_layout_image_tablet&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;},&quot;jet_parallax_layout_image_mobile&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;},&quot;jet_parallax_layout_speed&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:50,&quot;sizes&quot;:[]},&quot;jet_parallax_layout_type&quot;:&quot;scroll&quot;,&quot;jet_parallax_layout_direction&quot;:null,&quot;jet_parallax_layout_fx_direction&quot;:null,&quot;jet_parallax_layout_z_index&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_x&quot;:50,&quot;jet_parallax_layout_bg_x_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_x_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_y&quot;:50,&quot;jet_parallax_layout_bg_y_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_y_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_size&quot;:&quot;auto&quot;,&quot;jet_parallax_layout_bg_size_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_size_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_animation_prop&quot;:&quot;transform&quot;,&quot;jet_parallax_layout_on&quot;:[&quot;desktop&quot;,&quot;tablet&quot;]}],&quot;background_background&quot;:&quot;classic&quot;,&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-4d6f5e4\" data-id=\"4d6f5e4\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"jupiter-tooltip-widget elementor-element elementor-element-953aaf9 elementor-aspect-ratio-11 elementor-widget elementor-widget-video\" data-jupiter-tooltip-settings=\"{&quot;tooltip&quot;:&quot;false&quot;,&quot;tooltipDescription&quot;:&quot;This is Tooltip!&quot;,&quot;tooltipPlacement&quot;:&quot;top&quot;,&quot;tooltipArrow&quot;:true,&quot;xOffset&quot;:0,&quot;yOffset&quot;:0,&quot;tooltipAnimation&quot;:&quot;fade&quot;,&quot;tooltipTrigger&quot;:&quot;mouseenter&quot;,&quot;zIndex&quot;:999,&quot;customSelector&quot;:&quot;&quot;,&quot;delay&quot;:0}\" data-id=\"953aaf9\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/MYVDb-R4HhA&quot;,&quot;aspect_ratio&quot;:&quot;11&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-wrapper elementor-fit-aspect-ratio elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-58634d0\" data-id=\"58634d0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"jupiter-tooltip-widget elementor-element elementor-element-fd41ce6 elementor-widget elementor-widget-code-highlight\" data-jupiter-tooltip-settings=\"{&quot;tooltip&quot;:&quot;false&quot;,&quot;tooltipDescription&quot;:&quot;This is Tooltip!&quot;,&quot;tooltipPlacement&quot;:&quot;top&quot;,&quot;tooltipArrow&quot;:true,&quot;xOffset&quot;:0,&quot;yOffset&quot;:0,&quot;tooltipAnimation&quot;:&quot;fade&quot;,&quot;tooltipTrigger&quot;:&quot;mouseenter&quot;,&quot;zIndex&quot;:999,&quot;customSelector&quot;:&quot;&quot;,&quot;delay&quot;:0}\" data-id=\"fd41ce6\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-python line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-python\">\n\t\t\t\t\t<xmp>#!\/usr\/bin\/python\r\n# -*- coding: utf-8 -*-\r\n## 1. \ucd08\uae30 \uc124\uc815\u2460 #######################################\r\n# \ub77c\uc774\ube0c\ub7ec\ub9ac \uac00\uc838\uc624\uae30\r\n## 1\uff0e\ucd08\uae30 \uc124\uc815 \u2460\u3000\ubaa8\ub4c8 \uac00\uc838\uc624\uae30 ######################\r\nfrom i611_MCS import *\r\nfrom teachdata import *\r\nfrom i611_extend import *\r\nfrom rbsys import *\r\nfrom i611_common import *\r\nfrom i611_io import *\r\nfrom i611shm import * \r\n\r\ndef main():\r\n    ## 2. \ucd08\uae30 \uc124\uc815\u2461 ####################################\r\n    # ZERO \ub85c\ubd07 \uc0dd\uc131\uc790\r\n    rb = i611Robot()\r\n    # \uc88c\ud45c\uacc4\uc758 \uc815\uc758\r\n    _BASE = Base()\r\n    # \ub85c\ubd07\uacfc \uc5f0\uacb0 \uc2dc\uc791 \ucd08\uae30\ud654\r\n    rb.open()\r\n    # I\/O \uc785\ucd9c\ub825 \uae30\ub2a5\uc758 \ucd08\uae30\ud654 \r\n    IOinit( rb )\r\n    \r\n    ## 1. \uad50\uc2dc \ud3ec\uc778\ud2b8 \uc124\uc815 ######################\r\n    p1 = Position( -476, -236, 334, 90, 0, -180 )\r\n    p2 = Position( -200, -450, 334, 90, 0, -180 )\r\n    \r\n    ## 2. \ub3d9\uc791 \uc870\uac74 \uc124\uc815 ######################## \r\n    m = MotionParam( jnt_speed=20, lin_speed=50, pose_speed=100, overlap = 20 )\r\n    #MotionParam \ud615\uc73c\ub85c \ub3d9\uc791 \uc870\uac74 \uc124\uc815\r\n    rb.motionparam( m )\r\n    \r\n    ## 3. \ub85c\ubd07 \ub3d9\uc791\uc744 \uc815\uc758 ##############################\r\n    # \uc791\uc5c5 \uc2dc\uc791\r\n    rb.home()\r\n    while True:\r\n        # raw input Tera term \uc785\ub825 \r\n        Data = raw_input('TEST')\r\n\r\n        # \uc785\ub825 '1' \ub610\ub294 '2' \ub610\ub294 '3'\uacbd\uc6b0 \uc870\uac74\uc5d0 \ub530\ub780 p1,p2,home \ub3d9\uc791\r\n        if (Data == '1'):\r\n            rb.move(p1)\r\n        elif(Data == '2'):\r\n            rb.move(p2)\r\n        elif(Data == '3'):\r\n            rb.home()\r\n\r\n    ## 4. \uc885\ub8cc ######################################\r\n    # \ub85c\ubd07\uacfc\uc758 \uc5f0\uacb0\uc744 \uc885\ub8cc\r\n    rb.close()\r\nif __name__ == '__main__':\r\n    main()<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1210eb9 elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1210eb9\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[{&quot;jet_parallax_layout_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;},&quot;_id&quot;:&quot;1a4921b&quot;,&quot;jet_parallax_layout_image_tablet&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;},&quot;jet_parallax_layout_image_mobile&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;},&quot;jet_parallax_layout_speed&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:50,&quot;sizes&quot;:[]},&quot;jet_parallax_layout_type&quot;:&quot;scroll&quot;,&quot;jet_parallax_layout_direction&quot;:null,&quot;jet_parallax_layout_fx_direction&quot;:null,&quot;jet_parallax_layout_z_index&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_x&quot;:50,&quot;jet_parallax_layout_bg_x_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_x_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_y&quot;:50,&quot;jet_parallax_layout_bg_y_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_y_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_size&quot;:&quot;auto&quot;,&quot;jet_parallax_layout_bg_size_tablet&quot;:&quot;&quot;,&quot;jet_parallax_layout_bg_size_mobile&quot;:&quot;&quot;,&quot;jet_parallax_layout_animation_prop&quot;:&quot;transform&quot;,&quot;jet_parallax_layout_on&quot;:[&quot;desktop&quot;,&quot;tablet&quot;]}],&quot;background_background&quot;:&quot;classic&quot;,&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c3fd39b\" data-id=\"c3fd39b\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>#!\/usr\/bin\/python # -*- coding: utf-8 -*- ## 1. \ucd08\uae30 \uc124\uc815\u2460 ####################################### # \ub77c\uc774\ube0c\ub7ec\ub9ac \uac00\uc838\uc624\uae30 ## 1\uff0e\ucd08\uae30 \uc124\uc815 \u2460\u3000\ubaa8\ub4c8 \uac00\uc838\uc624\uae30 ###################### from i611_MCS import * from teachdata import * from i611_extend import * from rbsys import * from i611_common import * from i611_io import * from i611shm import * def main(): ## 2. \ucd08\uae30 \uc124\uc815\u2461 #################################### [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"full-width.php","format":"standard","meta":[],"categories":[35],"tags":[],"acf":[],"_links":{"self":[{"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/posts\/5994"}],"collection":[{"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/comments?post=5994"}],"version-history":[{"count":7,"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/posts\/5994\/revisions"}],"predecessor-version":[{"id":6057,"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/posts\/5994\/revisions\/6057"}],"wp:attachment":[{"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/media?parent=5994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/categories?post=5994"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zero.globalzeus.com\/en\/wp-json\/wp\/v2\/tags?post=5994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}