{"id":12091,"date":"2021-09-03T11:31:50","date_gmt":"2021-09-03T03:31:50","guid":{"rendered":"https:\/\/www.circuspi.com\/?p=12091"},"modified":"2022-09-14T10:33:59","modified_gmt":"2022-09-14T02:33:59","slug":"jetbot-ai-unit3","status":"publish","type":"post","link":"https:\/\/www.circuspi.com\/index.php\/2021\/09\/03\/jetbot-ai-unit3\/","title":{"rendered":"Jetbot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e09) \u8b93 Jetbot \u52d5\u8d77\u4f86!"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1500\" height=\"791\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2021\/09\/\u5de5\u4f5c\u5340\u57df-1-\u8907\u672c.jpg\" alt=\"\" class=\"wp-image-12343\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"JetBot AI \u9019\u6a23\u73a9 - \u8f15\u9b06\u5165\u9580AI \u81ea\u99d5\u8eca\uff0c\u555f\u52d5\u4f60\u7684JetBot\" width=\"1140\" height=\"641\" src=\"https:\/\/www.youtube.com\/embed\/-6fgVmPwY58?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><style>\n\/* ###\u5be6\u9a57\u4e0b\u4e00\u5217### *\/\n\na:link {color:#0695e4\n;}    \/* \u8a2d\u5b9a\u5c1a\u672a\u9ede\u95b1\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\na:visited {color:#0695e4\n;} \/* \u8a2d\u5b9a\u904e\u53bb\u66fe\u7d93\u95b1\u904e\u7684\u9023\u7d50 *\/\na:hover {color:#0695e4\n;}   \/* \u8a2d\u5b9a\u6ed1\u9f20\u6e38\u6a19\u6307\u5728\u9023\u7d50\u4f4d\u7f6e\u4e0a\u7684\u6a23\u5f0f *\/\na:active {color:#0000BB;}  \/* \u8a2d\u5b9a\u4e0a\u9ede\u64ca\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\n<\/style><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u76f8\u95dc\u9023\u7d50<\/h2>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.circuspi.com\/index.php\/2021\/05\/14\/jetbot-ai-agv-part1\/\" target=\"_blank\"><strong>JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e00) \u7d44\u88dd\u6559\u5b78\u7bc7<\/strong><\/a><\/li><li><strong><a href=\"https:\/\/www.circuspi.com\/index.php\/2021\/06\/30\/jetbot-ai-unit2\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e8c) \u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a\u7bc7 (opens in a new tab)\">JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e8c) \u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a\u7bc7<\/a><\/strong><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u7c21\u4ecb<\/h2>\n\n\n\n<p>\u5728\u300c<a href=\"https:\/\/www.circuspi.com\/index.php\/2021\/06\/30\/jetbot-ai-unit2\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e8c) \u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a\u7bc7 (opens in a new tab)\">JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e8c) \u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a\u7bc7<\/a>\u300d\u6587\u7ae0\u4e2d\uff0c \u6211\u5011\u6210\u529f\u5730\u900f\u904e\u5340\u57df\u7db2\u8def\u8207<a rel=\"noreferrer noopener\" aria-label=\" Jupyter Lab (opens in a new tab)\" href=\"https:\/\/jupyter.org\/\" target=\"_blank\"> Jupyter Lab<\/a>, \u9060\u7aef\u767b\u5165\u5230 <a rel=\"noreferrer noopener\" aria-label=\"Jetbot (opens in a new tab)\" href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\">Jetbot<\/a>\u3002\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u4e00\u8d77\u4f86\u8b93 <a rel=\"noreferrer noopener\" aria-label=\"Jetbot (opens in a new tab)\" href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\">Jetbot<\/a> \u52d5\u8d77\u4f86\u5427\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u786c\u9ad4\u6e96\u5099<\/h2>\n\n\n\n<p>\u9019\u6b21\u7684\u786c\u9ad4\u540c\u6a23\u4f7f\u7528 <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\">JetBot AI\u81ea\u99d5\u8eca\u5957\u4ef6<\/a>(\u4ee5\u4e0b\u7686\u7c21\u7a31 Jetbot) \u4f86\u9032\u884c\u64cd\u4f5c\uff0c\u8acb\u5148\u78ba\u4fdd\u624b\u4e0a\u64c1\u6709\u7684\u786c\u9ad4\u96f6\u7d44\u4ef6\u90fd\u8207\u6211\u5011\u4f7f\u7528\u7684\u76f8\u540c\uff0c\u907f\u514d\u767c\u751f\u7121\u6cd5\u64cd\u4f5c\u7684\u60c5\u5f62\u3002\u82e5\u662f\u6c92\u6709\u76f8\u5c0d\u61c9\u7684\u786c\u9ad4\uff0c\u4e5f\u53ef\u4ee5\u8d95\u5feb\u5165\u624b\uff0c\u4e00\u8d77\u8e0f\u5165\u4eba\u5de5\u667a\u6167\u7684\u4e16\u754c\u5594\uff01<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/aIrGzE8GZBRj80nLMexe6z7CTAS6zqijTCJZ3xkBdNmr_zlT36jyHZdK10HZcnUhBLOakloMB4ZUdZ-6OMUDVY0Gnj6hprvmMhPVbcJqJr3BJVHYyEeev-sGNhpuVrpNMRIqROOJ\" alt=\"\" width=\"481\" height=\"481\"\/><figcaption>Jetbot AI \u81ea\u99d5\u8eca\u5957\u4ef6<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u6e96\u5099\u597d <a rel=\"noreferrer noopener\" aria-label=\"Jetbot (opens in a new tab)\" href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\">Jetbot<\/a> \u4e4b\u5f8c\uff0c\u4fbf\u53ef\u4ee5\u5c07\u96fb\u6e90\u7dda Type-C \u7aef\u653e\u5165 Jetbot \u7684 Type-C \u9023\u63a5\u57e0\uff0c\u4e26\u78ba\u8a8d <a rel=\"noreferrer noopener\" aria-label=\"Jetson Nano Developer kit 2GB (opens in a new tab)\" href=\"https:\/\/www.icshop.com.tw\/product-page.php?28177\" target=\"_blank\">Jetson Nano Developer kit 2GB<\/a> (\u4ee5\u4e0b\u7c21\u7a31 Jetson Nano 2GB) \u8207\u99ac\u9054\u63a7\u5236\u677f\u7684\u96fb\u6e90\u7dda\u7686\u5df2\u653e\u5165\u884c\u52d5\u96fb\u6e90\u7684\u9023\u63a5\u57e0\u4e2d\uff0c\u5373\u53ef\u555f\u52d5 Jetbot \u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u8edf\u9ad4\u6e96\u5099<\/h2>\n\n\n\n<p>\u9019\u908a\u7684\u8edf\u9ad4\u6e96\u5099\uff0c\u6307\u7684\u662f\u5728\u64cd\u4f5c\u4e3b\u6a5f\u4e0a\u7684\u8edf\u9ad4\u3002\u672c\u7bc7\u6587\u7ae0\u4e2d\u6211\u5011\u6240\u4f7f\u7528\u7684\u64cd\u4f5c\u4e3b\u6a5f\u70ba\u7cfb\u7d71 Win 10 \u7684\u7b46\u8a18\u578b\u96fb\u8166\uff0c\u4e26\u53ef\u4f7f\u7528Wi-Fi \u9023\u7dda\u81f3\u7db2\u969b\u7db2\u8def\u8207\u64cd\u4f5c <a href=\"https:\/\/www.google.com\/intl\/zh-TW\/chrome\/?brand=MRUS&amp;gclid=Cj0KCQjw5uWGBhCTARIsAL70sLJrbANSa7j4u-O9IYW8ObFZdahYmW9GxtYxPcayQl5k99niAtpeP4waAnNeEALw_wcB&amp;gclsrc=aw.ds\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Google \u700f\u89bd\u5668 (opens in a new tab)\">Google \u700f\u89bd\u5668<\/a>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u8acb\u5148\u4f9d\u7167\u300c<a aria-label=\"JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e8c) \u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a\u7bc7 (opens in a new tab)\" href=\"https:\/\/www.circuspi.com\/index.php\/2021\/06\/30\/jetbot-ai-unit2\/\" target=\"_blank\" rel=\"noreferrer noopener\">JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e8c) \u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a\u7bc7<\/a>\u300d\u7684\u6b65\u9a5f\uff0c\u8b93\u64cd\u4f5c\u4e3b\u6a5f\u80fd\u5920\u4f7f\u7528\u5340\u57df\u7db2\u8def\u8207<a aria-label=\" Jupyter Lab (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/jupyter.org\/\" target=\"_blank\"> Jupyter Lab<\/a> \uff0c\u9060\u7aef\u767b\u5165\u81f3<a href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\" rel=\"noreferrer noopener\"> Jetbot<\/a>\u3002<\/p>\n\n\n\n<p>\u82e5\u662f\u60f3\u8981\u66f4\u52a0\u7406\u89e3 Jupyter Lab \u7684\u76f8\u95dc\u64cd\u4f5c\uff0c\u53ef\u81f3<a href=\"https:\/\/jupyterlab.readthedocs.io\/en\/latest\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\"> Jupyter Lab \u7684\u6587\u4ef6\u8aaa\u660e<\/a>\u4e2d\u4e86\u89e3\u3002<\/p>\n\n\n\n<p>\u4e5f\u8acb\u78ba\u4fdd Jetbot \u76ee\u524d\u88ab\u653e\u7f6e\u5728\u5e73\u7a69\u7684\u5730\u9762\u4e0a\uff0c\u82e5\u662f\u5c07 Jetbot \u653e\u7f6e\u5728\u8207\u5730\u9762\u6709\u9ad8\u4f4e\u843d\u5dee\u7684\u684c\u5b50\u4e0a\uff0c\u8acb\u52d9\u5fc5\u78ba\u4fdd Jetbot \u79fb\u52d5\u6642\u4e0d\u6703\u6389\u843d\u3002\u82e5\u662f\u53ea\u80fd\u653e\u5728\u684c\u9762\u4e0a\uff0c\u60a8\u53ef\u4ee5\u66ab\u6642\u5c07 Jetbot \u8207\u684c\u5b50\u5448\u73fe\u61f8\u7a7a\u72c0\u614b\uff0c\u907f\u514d Jetbot \u56e0\u70ba\u7a81\u7136\u79fb\u52d5\uff0c\u800c\u6454\u843d\u81f3\u5730\u9762\u9020\u6210\u640d\u58de\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u958b\u59cb\u79fb\u52d5 Jetbot!<\/h2>\n\n\n\n<p>\u4f7f\u7528<a rel=\"noreferrer noopener\" aria-label=\" Jupyter Lab (opens in a new tab)\" href=\"https:\/\/jupyter.org\/\" target=\"_blank\"> Jupyter Lab<\/a> \u9060\u7aef\u767b\u5165\u5230 <a rel=\"noreferrer noopener\" aria-label=\"Jetbot  (opens in a new tab)\" href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\">Jetbot <\/a>\u5f8c\uff0c\u8acb\u5148\u5230\u9801\u9762\u5de6\u908a\u7684\u6b04\u4f4d\u4e2d\uff0c\u9078\u53d6\u64cd\u63a7 Jetbot\u7684\u7a0b\u5f0f\u78bc\uff0c\u6a94\u6848\u8def\u5f91\u662f\u300c<strong>\/jetbot\/notebooks\/basic_motion\/basic_motion.ipynb<\/strong>\u300d\uff0c\u8a73\u7d30\u64cd\u4f5c\u8acb\u53c3\u8003\u4e0b\u5716\u6240\u793a\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/_K8swloOZD90_XAMUHJ0dFG3mq-UexnyyykzdVYkVV4PvzXjE5-zE639Bt8t0m-ku4OcF0Yi0xJU3K9CajKQGcfaFmf2yuP0RK4tXAaw4bjLEqcCBruOMJylL-VOK9WR43EEooDU\" alt=\"\"\/><figcaption> \u5728\u5df2\u767b\u5165 Jetbot \u7684 Jupyter Lab \u4e2d\uff0c\u958b\u555f\u6a94\u6848 basic_motion.ipynb <\/figcaption><\/figure><\/div>\n\n\n\n<p>\u7531\u65bc Jupyter Lab \u7684\u7279\u6027\u662f\u53ef\u4ee5\u5206\u6bb5\u57f7\u884c\u7a0b\u5f0f\u78bc\uff0c\u56e0\u6b64\u6211\u5011\u80fd\u5920\u57f7\u884c\u6bcf\u4e00\u5c0f\u6bb5\u7a0b\u5f0f\u78bc\uff0c\u89c0\u5bdf Jetbot \u7684\u79fb\u52d5\u60c5\u5f62\u3002\u63a5\u4e0b\u4f86\u6211\u5011\u5c07\u5206\u6210\u4e8c\u500b\u90e8\u5206\uff0c\u7a0b\u5f0f\u78bc\u500b\u5225\u8aaa\u660e\u3001\u7a0b\u5f0f\u78bc\u6574\u5408\u61c9\u7528\uff0c\u5e0c\u671b\u9019\u53ef\u4ee5\u5e6b\u52a9\u60a8\u5728\u4e4b\u5f8c\u80fd\u5920\u81ea\u884c\u8a2d\u8a08\u7a0b\u5f0f\u78bc\uff0c\u96a8\u5fc3\u6240\u6b32\u5730\u64cd\u63a7 Jetbot \u7684\u79fb\u52d5\u65b9\u5f0f\u5594\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5-1. \u7a0b\u5f0f\u78bc\u500b\u5225\u8aaa\u660e<\/strong><\/h3>\n\n\n\n<p>\u5728\u9019\u90e8\u5206\u4e2d\uff0c\u6211\u5011\u5c07\u6703\u8a73\u7d30\u5730\u8aaa\u660e\u5728\u7a0b\u5f0f\u78bc\u6574\u5408\u61c9\u7528\u4e2d\u6703\u4f7f\u7528\u5230\u7684\u4e00\u4e9b\u7a0b\u5f0f\u78bc\u3002<\/p>\n\n\n\n<p><strong>1. from jetbot import Robot<br><\/strong>\u9019\u662f\u532f\u5165 <a rel=\"noreferrer noopener\" aria-label=\"NVIDIA (opens in a new tab)\" href=\"https:\/\/www.nvidia.com\/zh-tw\/\" target=\"_blank\">NVIDIA<\/a> \u70ba\u4e86 Jetbot \u8a2d\u8a08\u7684 Python Package\uff0c\u4f7f\u7528\u6a21\u7d44 Robot \u4fbf\u53ef\u4ee5\u5feb\u901f\u5730\u900f\u904e\u7a0b\u5f0f\u78bc Python \uff0c\u8207 Jetbot \u4e0a\u7684\u99ac\u9054\u63a7\u5236\u677f\u9032\u884c\u901a\u8a0a\u3002<\/p>\n\n\n\n<p><strong>2. robot = Robot()<br><\/strong>\u5728 \u300cPython \u4e2d\u7684\u6240\u6709\u4e8b\u7269\u90fd\u662f\u7269\u4ef6 \u300d\u7684\u60c5\u5f62\u4e0b\uff0c\u6211\u5011\u5c07\u6a21\u7d44 Robot\uff0c\u6307\u6d3e\u7d66 robot \u9019\u4e00\u500b\u7269\u4ef6\uff0c\u4ee5\u4fbf\u9032\u884c\u7a0b\u5f0f\u78bc\u7684\u8a2d\u8a08\u8207\u95b1\u8b80\u3002<\/p>\n\n\n\n<p>\u5230\u9019\u908a\u70ba\u6b62\uff0c\u900f\u904e\u9019\u5169\u6bb5\u7a0b\u5f0f\u78bc\uff0c\u6211\u5011\u5c31\u5df2\u7d93\u53ef\u4ee5\u958b\u59cb\u8a2d\u8a08 Jetbot \u7684\u79fb\u52d5\u6a21\u5f0f\u4e86\uff01\u6a21\u7d44 Robot \u7684<a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.youtube.com\/watch?v=zvKadd9Cflc&amp;t=1s\" target=\"_blank\"> \u61c9\u7528\u7a0b\u5f0f\u4ecb\u9762(Application Programming Interface\uff0c\u4ee5\u4e0b\u7c21\u7a31 API)<\/a> \u8acb\u53c3\u8003\u4e0b\u8868\u300c \u6a21\u7d44 Robot \u7684\u6db5\u5f0f\u4f7f\u7528\u65b9\u6cd5 \u300d\u3002<br><\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter is-style-stripes\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u6a21\u7d44 Robot \u4e2d\u7684 \u6db5\u5f0f<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u6db5\u5f0f\u5b9a\u7fa9<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">set_motors(left_speed, right_speed)<\/td><td class=\"has-text-align-center\" data-align=\"center\">\u8a2d\u5b9a\u5de6\u908a\u99ac\u9054\u8f49\u901f\u70ba left_speed\u8a2d\u5b9a\u53f3\u908a\u99ac\u9054\u8f49\u901f\u70ba right_speed<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">forward(speed)<\/td><td class=\"has-text-align-center\" data-align=\"center\">\u8b93 Jetbot \u524d\u9032\uff0c\u901f\u5ea6\u70ba speed<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">backward(speed)<\/td><td class=\"has-text-align-center\" data-align=\"center\">\u8b93 Jetbot \u5f8c\u9000\uff0c\u901f\u5ea6\u70ba speed<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">left(speed)<\/td><td class=\"has-text-align-center\" data-align=\"center\">\u8b93 Jetbot \u5de6\u8f49\uff0c\u901f\u5ea6\u70ba speed<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">right(speed)<\/td><td class=\"has-text-align-center\" data-align=\"center\">\u8b93 Jetbot \u53f3\u8f49\uff0c\u901f\u5ea6\u70ba speed<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">stop()<\/td><td class=\"has-text-align-center\" data-align=\"center\">\u8b93 Jetbot \u505c\u6b62\u79fb\u52d5<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6a21\u7d44 Robot \u5c07 Jetbot \u4ee5\u73fe\u6709\u7684\u96fb\u529b\uff0c\u9032\u884c\u5168\u901f\u79fb\u52d5\u7684\u901f\u5ea6\u8a2d\u5b9a\u70ba 1\uff0c\u9019\u88e1\u6211\u5011\u4ee5\u4e00\u500b\u6578\u5b78\u516c\u5f0f\u8868\u793a: <strong>Speed<sub>max<\/sub>= 1 <\/strong>\u3002<\/p>\n\n\n\n<p>\u800c\u5728\u8868\u683c1\u4e2d\u7684\u6578\u503c speed \uff0c\u5247\u662f\u6307\u5168\u901f\u79fb\u52d5\u7684\u6bd4\u4f8b\u6578\u503c\uff0c\u4f8b\u5982\u82e5\u5c07\u6578\u503c speed \u8a2d\u5b9a\u70ba 0.3\uff0c\u5247\u5be6\u969b\u4e0a Jetbot \u79fb\u52d5\u7684\u901f\u5ea6\u6703\u662f\u5168\u901f\u79fb\u52d5\u7684 30%\u3002<\/p>\n\n\n\n<p>\u70ba\u4e86\u89e3\u91cb\u9019\u4e00\u6bb5\u8a71\uff0c\u6211\u5011\u5c07\u6703\u4ee5\u4e00\u500b\u6578\u5b78\u516c\u5f0f\u8868\u793a\uff0c\u5176\u4e2d\u9700\u8981\u5148\u77e5\u9053\u7684\u662f<\/p>\n\n\n\n<ul><li>speed\uff1a\u4ee3\u8868\u8a2d\u5b9a\u7684\u901f\u5ea6\u503c\u6bd4\u4f8b\u3002<\/li><li>speed<sub>max<\/sub>\uff1a\u4ee3\u8868 Jetbot \u79fb\u52d5\u7684\u6700\u5927\u901f\u5ea6\u3002<\/li><li>speed<sub>actual<\/sub>\uff1a\u4ee3\u8868 Jetbot \u5be6\u969b\u79fb\u52d5\u7684\u6700\u5927\u901f\u5ea6\u3002<\/li><\/ul>\n\n\n\n<p>\u56e0\u6b64\u82e5\u662f\u4ee5\u6578\u5b78\u516c\u5f0f\u8868\u793a\u6a21\u7d44 Robot \u4e2d\u3001\u5404\u9805\u6db5\u5f0f\u5b9a\u7fa9\u7684 speed \u610f\u7fa9\uff0c\u5247\u6703\u662f <strong>speed<sub>actual<\/sub>=speed<sub>max<\/sub> \uff58 speed<\/strong>\u3002<\/p>\n\n\n\n<p>\u900f\u904e\u6578\u5b78\u516c\u5f0f\u7684\u8aaa\u660e\uff0c\u4fbf\u53ef\u4ee5\u767c\u73fe\u6578\u503c speed \u7684\u5927\u5c0f\uff0c\u6703\u5728 0(0%) \u8207 1(100%) \u4e4b\u9593\u3002\u82e5\u662f\u5c07\u6578\u503c speed \u7684\u8a2d\u5b9a\u8d85\u904e 1 \u6642\uff0c\u6a21\u7d44 Robot \u6703\u81ea\u52d5\u5c07\u6578\u503c speed \u8a2d\u5b9a\u70ba 1 \uff0c\u8b93 Jetbot \u53ea\u4ee5\u73fe\u6709\u96fb\u529b\u53ef\u4f7f\u7528\u7684\u901f\u5ea6\u6700\u5927\u503c\u79fb\u52d5\uff0c\u56e0\u6b64\u82e5\u662f\u884c\u52d5\u96fb\u6e90\u5feb\u8981\u6c92\u96fb\u6642\uff0c\u5c31\u7b97\u5c07\u6578\u503c speed \u8a2d\u5b9a\u70ba 1\uff0cJetbot \u4e5f\u53ea\u6703\u50cf\u70cf\u9f9c\u4e00\u6a23\u7de9\u6162\u79fb\u52d5\u3002<\/p>\n\n\n\n<p>\u77e5\u9053\u4e86\u6a21\u7d44 Robot \u4e2d\u5404\u9805\u6db5\u5f0f\u7684 API \u4e4b\u5f8c\uff0c\u6211\u5011\u4fbf\u53ef\u4ee5\u7e7c\u7e8c\u4f7f\u7528\u7a0b\u5f0f\u78bc Python\uff0c\u4f86\u8a2d\u8a08 Jetbot \u7684\u79fb\u52d5\u65b9\u5f0f\u56c9\uff01<\/p>\n\n\n\n<p><strong>3. import time<br><\/strong>\u6a21\u7d44 Robot \u4e2d\uff0c\u53ea\u6709\u5b9a\u7fa9\u95dc\u65bc Jetbot \u5982\u4f55\u4f7f\u7528\u99ac\u9054\u63a7\u5236\u677f\u7684\u6db5\u5f0f\uff0c\u56e0\u6b64\u6211\u5011\u9700\u8981\u6a21\u7d44 time\uff0c\u4f86\u5354\u52a9\u6211\u5011\u9700\u8981\u5c07 Jetbot \u79fb\u52d5\u591a\u4e45\u3002&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5-2. \u7a0b\u5f0f\u78bc\u6574\u5408\u61c9\u7528<\/strong><\/h3>\n\n\n\n<p>\u5728\u7b2c\u4e00\u90e8\u5206\u7a0b\u5f0f\u78bc\u500b\u5225\u8aaa\u660e\u4e2d\uff0c\u6211\u5011\u5df2\u7d93\u8a73\u7d30\u8aaa\u660e\u4e86\u4e09\u500b\u4e3b\u8981\u7684\u7a0b\u5f0f\u78bc\u6bb5\u843d\u3002\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u4f86\u81ea\u5df1\u52d5\u624b\u5617\u8a66\u8a2d\u8a08 Jetbot \u7684\u79fb\u52d5\u65b9\u5f0f\u5427\uff01<\/p>\n\n\n\n<p>\u9996\u5148\u662f\u532f\u5165\u6a21\u7d44 Robot \u8207\u5b9a\u7fa9\u7269\u4ef6 robot\uff0c\u8acb\u9ede\u64ca\u7a0b\u5f0f\u78bc\u6240\u5728\u7684\u5143\u4ef6(cell)\uff0c\u6309\u4e0b\u9375\u76e4\u7684\u3010ctrl\u3011+\u3010enter\u3011\uff0c\u6216\u662f\u6309\u4e0b\u9801\u9762\u4e2d\u7684\u6309\u9375 \u3010play\u3011(\u5982\u4e0b\u5716<strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">\u7d05\u6846<\/span><\/strong>\u8655)\u57f7\u884c\u7a0b\u5f0f\u78bc\u5340\u6bb5\u3002\u9019\u6642\u53ef\u4ee5\u767c\u73fe\uff0c\u57f7\u884c\u6210\u529f\u7684\u5143\u4ef6\u524d\u65b9\uff0c\u6703\u51fa\u73fe\u6578\u5b57(\u5982\u4e0b\u5716\u7684<strong><span style=\"color:#00d084\" class=\"tadv-color\">\u7da0\u6846<\/span><\/strong>\u8655)\uff0c\u9019\u500b\u6578\u5b57\u662f\u8868\u793a\u57f7\u884c\u6210\u529f\u7684\u9806\u5e8f\uff0c\u56e0\u6b64\u82e5\u662f\u5f8c\u7e8c\u7684\u7a0b\u5f0f\u78bc\u57f7\u884c\u6642\u767c\u751f\u554f\u984c\uff0c\u53ef\u8a66\u8457\u5148\u67e5\u770b\u57f7\u884c\u9806\u5e8f\uff0c\u6216\u8a31\u53ef\u4ee5\u89e3\u6c7a\u7121\u6cd5\u57f7\u884c\u7684\u554f\u984c\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/-10Eiz5GDvnR7RYvhK_bNap071acyZeGTLwQoUGRRObBjn7shnmqo-0XRpLuNZv0Fxk0VYeJTsZHok5mw-jcWEUygCAbve_ojxX4GKun3H5vULu6q9mHXoako7dludF7eug6XeNo\" alt=\"\"\/><figcaption> \u5728\u5df2\u767b\u5165 Jetbot \u7684 Jupyter Lab \u4e2d\uff0c\u57f7\u884c\u6a94\u6848 basic_motion.ipynb \u4e2d\u7684\u7a0b\u5f0f\u78bc <\/figcaption><\/figure><\/div>\n\n\n\n<p>\u63a5\u4e0b\u4f86\u6211\u5011\u8df3\u904e\u4e00\u4e9b\u7a0b\u5f0f\u78bc\uff0c\u76f4\u63a5\u57f7\u884c\u7a0b\u5f0f\u78bc <span style=\"background-color:#b9babf\" class=\"tadv-background-color\"><strong>import time<\/strong><\/span> \u5f8c\u9762\u7684\u5340\u6bb5\uff0c\u8acb\u53c3\u8003\u4e0b\u5716\u6240\u793a\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-large\"><p><strong>\u6ce8\u610f<\/strong>\uff1a<strong>\u57f7\u884c\u6210\u529f\u5f8c\uff0c Jetbot \u6703\u76f4\u63a5\u5de6\u8f49 0.5 \u79d2\u9418\uff0c\u8acb\u52d9\u5fc5\u78ba\u8a8d Jetbot \u8655\u5728\u53ef\u4ee5\u5b89\u5168\u79fb\u52d5\u7684\u60c5\u6cc1\u4e0b\uff0c\u518d\u57f7\u884c\u7a0b\u5f0f\u78bc\u3002<\/strong><\/p><\/blockquote>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/XeXkN-pI2sc3yQRVfmzaLBq_1q4LJJot8wcmTg67ucXMTi3xcSB5uNCsr1-5Wp8ube1N7Eud3-JqGZn9N7paHWrI_EAOKMkeD8N5jDTr5x6Hz-XJmWCCXGKREgWFTd5TmQCcqxO4\" alt=\"\" width=\"1037\" height=\"452\"\/><figcaption> \u5728\u5df2\u767b\u5165 Jetbot \u7684 Jupyter Lab \u4e2d\uff0c\u57f7\u884c\u6a94\u6848 basic_motion.ipynb \u4e2d\u7684\u7a0b\u5f0f\u78bc\uff0c<br>\u8b93 Jetbot \u4ee5\u6700\u5927\u901f\u5ea6\u7684 30 %\uff0c\u5f80\u5de6\u79fb\u52d5 0.5\u79d2 <\/figcaption><\/figure><\/div>\n\n\n\n<p>\u6211\u5011\u6210\u529f\u7684\u81ea\u5df1\u4f7f\u7528\u7a0b\u5f0f\u78bc\uff0c\u9060\u7aef\u63a7\u5236 Jetbot \u7684\u79fb\u52d5\u4e86\uff01\u63a5\u4e0b\u4f86\u53ef\u4ee5\u81ea\u5df1\u5617\u8a66\u4f7f\u7528\u6a21\u7d44 Robot \u7684 API\uff0c\u64b0\u5beb\u66f4\u591a\u7684\u7a0b\u5f0f\u78bc\uff0c\u8b93 Jetbot \u7167\u8457\u81ea\u5df1\u7684\u60f3\u6cd5\u79fb\u52d5\u5594\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u7d50\u8ad6<\/h2>\n\n\n\n<p>\u900f\u904e\u4e86\u89e3\u6a21\u7d44 Robot \u7684 API \u4f7f\u7528\u65b9\u6cd5\uff0c\u6211\u5011\u4fbf\u53ef\u4ee5\u81ea\u884c\u8a2d\u8a08<a href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" Jetbot  (opens in a new tab)\"> Jetbot <\/a>\u7684\u79fb\u52d5\u6a21\u5f0f\u3002\u7576\u7136\u5982\u679c\u60f3\u8981\u53ef\u4ee5\u66f4\u52a0\u81ea\u7531\u7684\u9060\u7aef\u9059\u63a7 <a href=\"https:\/\/www.icshop.com.tw\/product-page.php?28398\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Jetbot (opens in a new tab)\">Jetbot<\/a>\uff0c\u900f\u904e\u4e0d\u505c\u66f4\u65b0\u7a0b\u5f0f\u78bc\u7684\u65b9\u5f0f\u5c07\u6703\u662f\u4e00\u4ef6\u76f8\u7576\u9ebb\u7169\u7684\u4e8b\u60c5\uff0c\u56e0\u6b64\u6211\u5011\u53ef\u4ee5\u81ea\u884c\u8a2d\u8a08\u4e00\u500b\u5716\u5f62\u5316\u4f7f\u7528\u8005\u4ecb\u9762(Graphical User Interface)\uff0c\u900f\u904e\u8abf\u6574\u9801\u9762\u4e2d\u7684\u6ed1\u687f\uff0c\u6216\u662f\u6309\u4e0b\u9801\u9762\u4e2d\u6309\u9215\u7684\u65b9\u5f0f\uff0c\u4f86\u9060\u7aef\u9059\u63a7 Jetbot\u3002\u9019\u90e8\u5206\u6211\u5011\u6703\u5728\u4e0b\u4e00\u7bc7\u6587\u7ae0\u8207\u5927\u5bb6\u5206\u4eab\uff0c\u8acb\u5927\u5bb6\u7e7c\u7e8c\u95dc\u6ce8\u6211\u5011\u7684\u6280\u8853\u6587\u7ae0\u5594\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e0a\u4e00\u7bc7\u300c JetBot AI \u9019\u6a23\u73a9-\u55ae\u5143(\u4e8c) \u64cd\u4f5c\u74b0\u5883\u8a2d\u5b9a\u7bc7\u300d\u6587\u7ae0\u4e2d\uff0c \u6211\u5011\u5df2\u7d93\u6210\u529f\u5730\u900f\u904e\u5340\u57df\u7db2\u8def\u8207 Jupyter Lab , \u9060\u7aef\u767b\u5165\u5230\u4e86 Jetbot \u3002\u63a5\u4e0b\u4f86\uff0c\u672c\u7bc7\u6587\u7ae0\u5c07\u6559\u5927\u5bb6\u5982\u4f55\u4f7f\u7528 Jupyter Lab \u9060\u7aef\u767b\u5165\u5230 Jetbot\uff0c\u4ee5\u53ca\u900f\u904e\u7a0b\u5f0f\u8a2d\u5b9a\u4e00\u8d77\u4f86\u8b93 Jetbot \u52d5\u8d77\u4f86\u5427\uff01<\/p>\n","protected":false},"author":1,"featured_media":12343,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[273,238],"tags":[134,42,118,119],"table_tags":[],"_links":{"self":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/12091"}],"collection":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/comments?post=12091"}],"version-history":[{"count":7,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/12091\/revisions"}],"predecessor-version":[{"id":12568,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/12091\/revisions\/12568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media\/12343"}],"wp:attachment":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=12091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=12091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=12091"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/table_tags?post=12091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}