{"id":3986,"date":"2021-12-15T14:04:21","date_gmt":"2021-12-15T19:04:21","guid":{"rendered":"https:\/\/robodk.com\/blog\/?p=3986"},"modified":"2021-12-15T14:04:27","modified_gmt":"2021-12-15T19:04:27","slug":"how-to-code-a-robot","status":"publish","type":"post","link":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/","title":{"rendered":"How to Code a Robot for Your Next Robotic Project"},"content":{"rendered":"\n<p><strong>You want to code your robot yourself\u2026<\/strong><\/p>\n\n\n\n<p><strong>How do you get started?<\/strong><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>If you are an experienced programmer, you&#8217;re already comfortable with coding. You have likely created programs for other projects and it makes sense to carry your programming skills into the world of robotics.<\/p>\n\n\n\n<p>But, robot coding provides some extra challenges over other coding projects. The interface between software, hardware, and the robot&#8217;s physical environment is vital with robotics.<\/p>\n\n\n\n<p>Plus, there are some common restrictions caused by the way that robots are traditionally programmed, especially industrial robots.<\/p>\n\n\n\n<p>Thankfully, coding a robot can be as easy as any other coding project\u2026 in fact, it can be even easier than most projects!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"you-re-not-stuck-with-just-one-language-\">You&#8217;re Not Stuck With Just One Language!<\/h2>\n\n\n\n<p>A common belief with robotics is that you are restricted in terms of which programming languages that you can use.<\/p>\n\n\n\n<p>This used to be true, but it isn&#8217;t true anymore.<\/p>\n\n\n\n<p>In the recent past, you could only program most robots with the default language provided by the manufacturer. Industrial robots usually mean using a version of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Pascal_(programming_language)\" target=\"_blank\" rel=\"noopener noreferrer\">Pascal<\/a>.<\/p>\n\n\n\n<p>If you&#8217;re not too familiar with the Pascal programming language, this is understandable! <a href=\"https:\/\/www.quora.com\/Is-there-a-value-learning-Pascal-now-Are-there-actually-any-parts-where-Pascal-is-better-than-C-Is-this-language-worth-investing-time-into-What-would-the-added-value-be-if-I-learn-it\" target=\"_blank\" rel=\"noopener noreferrer\">As one commentator put it<\/a> when asked if Pascal is worth learning in the 21st Century: <em>&#8220;No. Pascal is pretty much dead.&#8221;<\/em><\/p>\n\n\n\n<p>But, while Pascal is pretty much dead in most areas of the modern world, this &#8220;ancient&#8221; language still survives as the underlying basis for most industrial robotic programming languages (e.g. KUKA&#8217;s KRL, ABB&#8217;s RAPID, and FANUC&#8217;s Karel).<\/p>\n\n\n\n<p>While I&#8217;m sure you are capable of learning these languages, it can feel like a waste of time to learn a whole new language that has such limited use.<\/p>\n\n\n\n<p>Thankfully, these days you can code a robot program using almost any programming language you like!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Many_Ways-1024x575.jpg\" alt=\"\" class=\"wp-image-4014\" srcset=\"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Many_Ways-1024x575.jpg 1024w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Many_Ways-300x169.jpg 300w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Many_Ways-768x432.jpg 768w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Many_Ways-1536x863.jpg 1536w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Many_Ways.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-your-language-options-for-robot-coding-\">What Are Your Language Options for Robot Coding?<\/h2>\n\n\n\n<p>With <a href=\"https:\/\/robodk.com\/blog\/robot-sdk\/\" target=\"_blank\" rel=\"noopener noreferrer\">the right coding environment<\/a>, you are pretty much able to use any programming language that you are most comfortable with.<\/p>\n\n\n\n<p>Modern programming software, such as RoboDK <a href=\"https:\/\/robodk.com\/blog\/robot-sdk\/\" target=\"_blank\" rel=\"noopener noreferrer\">and its associated SDK<\/a>, allows you to code the robot in your favorite language. <\/p>\n\n\n\n<p>With an easy set of instructions, you can access the most important capabilities of your robots and even use the same code on multiple robot brands with very little modification.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"programming-languages-you-can-use-easily-with-robots\">Programming Languages You Can Easily Use With Robots<\/h3>\n\n\n\n<p>If you are using the RoboDK API, you can use a variety of different programming languages right &#8220;out the box&#8221;.<\/p>\n\n\n\n<p>The core languages supported by RoboDK are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Python<\/li><li>C++<\/li><li>C#<\/li><li>MATLAB<\/li><\/ul>\n\n\n\n<p>These cover the most common programming languages used in the world of robotics. You can also use other languages with little fuss.<\/p>\n\n\n\n<p>You can learn more about these languages in our article <a href=\"https:\/\/robodk.com\/blog\/robot-programming-language\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python vs C++ vs C# vs MATLAB: Which Robot Language is Best?<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-does-robot-programming-software-work-\">How Does Robot Programming Software Work?<\/h3>\n\n\n\n<p>When thinking about robot coding, it&#8217;s helpful to understand how RoboDK converts your code into instructions that the robot controller will understand.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>First, you write your code in your preferred language. These use specific API calls to the RoboDK API, which correspond to the movements of the robot. For example, <em>ROBOT.MoveL(pose)<\/em> would cause the robot to make a linear move from its current position to the target pose.<\/li><li>RoboDK then uses an inverse kinematics solver to convert the desired pose into the joint positions of the robot.<\/li><li>Finally, RoboDK uses a post-processor to convert these into instructions that your specific robot controller will understand. You can read more about post-processors in our article <a href=\"https:\/\/robodk.com\/blog\/robot-post-processors\/\" target=\"_blank\" rel=\"noopener noreferrer\">Robot Post-Processors: Everything You Need to Know<\/a>.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"the-extra-coding-skills-you-need-for-robotics\">The Extra Coding Skills You Need for Robotics<\/h2>\n\n\n\n<p>Compared to other coding projects, there are a couple of extra skills that you will need to develop to become a proficient robot programmer. These are taught as core topics in robotics degree courses.<\/p>\n\n\n\n<p>Both of these skills require a good grasp of geometry.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Geometry-1024x575.jpg\" alt=\"\" class=\"wp-image-4013\" srcset=\"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Geometry-1024x575.jpg 1024w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Geometry-300x169.jpg 300w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Geometry-768x431.jpg 768w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Geometry.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-euler-angle-geometry\">1. Euler Angle Geometry<\/h3>\n\n\n\n<p>One of the most important topics to get your head around is Euler Angles. These are a mathematical way of representing the position and orientation of the robot in physical space.<\/p>\n\n\n\n<p>You will need Euler Angles to program any desired robot pose and any robot movement. So, it&#8217;s worth spending a bit of time learning about them if you have never used them before.<\/p>\n\n\n\n<p>We have an introductory article about Euler Angles called <a href=\"https:\/\/robodk.com\/blog\/robot-euler-angles\/\" target=\"_blank\" rel=\"noopener noreferrer\">Robot Euler Angles: The Essential Primer<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-kinematic-theory\">2. Kinematic Theory<\/h3>\n\n\n\n<p>Geometrically, robot arms are made of a series of linkages, called a &#8220;kinematic chain.&#8221; It helps to be familiar with kinematic theory so you can fully understand how to get the robot to move in space in the way that you want it to move.<\/p>\n\n\n\n<p>There are various resources online that teach kinematic theory for robotics. <a href=\"https:\/\/robotacademy.net.au\/masterclass\/inverse-kinematics-and-robot-motion\/\" target=\"_blank\" rel=\"noopener noreferrer\">Some are easier to understand than others<\/a>. However, you don&#8217;t need to become an expert in robot kinematics to code a robot. It just helps to have a grasp of the basics.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-get-started-coding-your-robot\">How to Get Started Coding Your Robot<\/h2>\n\n\n\n<p>What&#8217;s the easiest way to start coding your robot with your favorite programming language?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Get_Started-1024x575.jpg\" alt=\"\" class=\"wp-image-4012\" srcset=\"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Get_Started-1024x575.jpg 1024w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Get_Started-300x169.jpg 300w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Get_Started-768x432.jpg 768w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Get_Started-1536x863.jpg 1536w, https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Code_a_Robot_Get_Started.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>RoboDK provides an intuitive programming environment that is suitable both for beginners and experts.<\/p>\n\n\n\n<p>You can download a free trial copy of RoboDK <a href=\"https:\/\/robodk.com\/download\" target=\"_blank\" rel=\"noopener noreferrer\">on our download page<\/a> and started coding your robot in a matter of minutes.<\/p>\n\n\n\n<p><em>Questions? <strong>Tell us in the comments below or join the discussion on <a href=\"https:\/\/www.linkedin.com\/company\/robodk\/\" target=\"_blank\" rel=\"noopener noreferrer\">LinkedIn<\/a>, <a href=\"https:\/\/twitter.com\/robodkinc\" target=\"_blank\" rel=\"noopener noreferrer\">Twitter<\/a>, <a href=\"https:\/\/www.facebook.com\/robodkinc\" target=\"_blank\" rel=\"noopener noreferrer\">Facebook<\/a>, <a href=\"https:\/\/www.instagram.com\/robodk\/\" target=\"_blank\" rel=\"noopener noreferrer\">Instagram<\/a>, or in <a href=\"https:\/\/robodk.com\/forum\/\" target=\"_blank\" rel=\"noopener noreferrer\">the RoboDK Forum.<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You want to code your robot yourself\u2026 How do you get started?<\/p>\n","protected":false},"author":753,"featured_media":4094,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[21,24,1084,44],"tags":[],"class_list":["post-3986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-offline-programming","category-robot-manufacturing","category-robot-simulation","category-robot-software"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Code a Robot for Your Next Robotic Project - RoboDK blog<\/title>\n<meta name=\"description\" content=\"You want to code your robot yourself\u2026 How do you get started? Thankfully, coding a robot can be even easier than most coding projects!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Code a Robot for Your Next Robotic Project - RoboDK blog\" \/>\n<meta property=\"og:description\" content=\"You want to code your robot yourself\u2026 How do you get started? Thankfully, coding a robot can be even easier than most coding projects!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/\" \/>\n<meta property=\"og:site_name\" content=\"RoboDK blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/robodkinc\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-15T19:04:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-15T19:04:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Robot-and-engineer-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alex Owen-Hill\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AlexOwenHill\" \/>\n<meta name=\"twitter:site\" content=\"@robodkinc\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex Owen-Hill\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/\"},\"author\":{\"name\":\"Alex Owen-Hill\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#\\\/schema\\\/person\\\/3ca2d3b921633adceba2740817765638\"},\"headline\":\"How to Code a Robot for Your Next Robotic Project\",\"datePublished\":\"2021-12-15T19:04:21+00:00\",\"dateModified\":\"2021-12-15T19:04:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/\"},\"wordCount\":909,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/robodk.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Robot-and-engineer-scaled.jpg\",\"articleSection\":[\"offline programming\",\"Robot Manufacturing\",\"Robot Simulation\",\"robot software\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/\",\"url\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/\",\"name\":\"How to Code a Robot for Your Next Robotic Project - RoboDK blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/robodk.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Robot-and-engineer-scaled.jpg\",\"datePublished\":\"2021-12-15T19:04:21+00:00\",\"dateModified\":\"2021-12-15T19:04:27+00:00\",\"description\":\"You want to code your robot yourself\u2026 How do you get started? Thankfully, coding a robot can be even easier than most coding projects!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#primaryimage\",\"url\":\"https:\\\/\\\/robodk.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Robot-and-engineer-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/robodk.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Robot-and-engineer-scaled.jpg\",\"width\":2560,\"height\":1440,\"caption\":\"Professional Heavy Industry Robotics Engineer Wearing White Coat Holding Tablet Computer Works in Laboratory. Facility Full of Computers, Various Industrial Design Components and with Robotic Arm\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/how-to-code-a-robot\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/robodk.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Code a Robot for Your Next Robotic Project\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/robodk.com\\\/blog\\\/\",\"name\":\"RoboDK blog\",\"description\":\"News about RoboDK, Industrial Robots, Simulation and Robot Programming\",\"publisher\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/robodk.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#organization\",\"name\":\"RoboDK\",\"url\":\"https:\\\/\\\/robodk.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mlhiwltxy5pk.i.optimole.com\\\/w:1920\\\/h:613\\\/q:mauto\\\/f:best\\\/https:\\\/\\\/robodk.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/RoboDK-PNG.png\",\"contentUrl\":\"https:\\\/\\\/mlhiwltxy5pk.i.optimole.com\\\/w:1920\\\/h:613\\\/q:mauto\\\/f:best\\\/https:\\\/\\\/robodk.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/RoboDK-PNG.png\",\"width\":2128,\"height\":680,\"caption\":\"RoboDK\"},\"image\":{\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/robodkinc\",\"https:\\\/\\\/x.com\\\/robodkinc\",\"https:\\\/\\\/www.instagram.com\\\/robodk\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/robodk\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/RoboDK3D\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/robodk.com\\\/blog\\\/#\\\/schema\\\/person\\\/3ca2d3b921633adceba2740817765638\",\"name\":\"Alex Owen-Hill\",\"description\":\"Alex Owen-Hill is a freelance writer and public speaker who blogs about a large range of topics, including science, presentation skills at CreateClarifyArticulate.com, storytelling and (of course) robotics. He completed a PhD in Telerobotics from Universidad Politecnica de Madrid as part of the PURESAFE project, in collaboration with CERN. As a recovering academic, he maintains a firm foot in the robotics world by blogging about industrial robotics.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/AlexOwenHill\"],\"url\":\"https:\\\/\\\/robodk.com\\\/blog\\\/author\\\/alex-owen-hill\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Code a Robot for Your Next Robotic Project - RoboDK blog","description":"You want to code your robot yourself\u2026 How do you get started? Thankfully, coding a robot can be even easier than most coding projects!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/","og_locale":"en_US","og_type":"article","og_title":"How to Code a Robot for Your Next Robotic Project - RoboDK blog","og_description":"You want to code your robot yourself\u2026 How do you get started? Thankfully, coding a robot can be even easier than most coding projects!","og_url":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/","og_site_name":"RoboDK blog","article_publisher":"https:\/\/www.facebook.com\/robodkinc","article_published_time":"2021-12-15T19:04:21+00:00","article_modified_time":"2021-12-15T19:04:27+00:00","og_image":[{"width":2560,"height":1440,"url":"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Robot-and-engineer-scaled.jpg","type":"image\/jpeg"}],"author":"Alex Owen-Hill","twitter_card":"summary_large_image","twitter_creator":"@AlexOwenHill","twitter_site":"@robodkinc","twitter_misc":{"Written by":"Alex Owen-Hill","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#article","isPartOf":{"@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/"},"author":{"name":"Alex Owen-Hill","@id":"https:\/\/robodk.com\/blog\/#\/schema\/person\/3ca2d3b921633adceba2740817765638"},"headline":"How to Code a Robot for Your Next Robotic Project","datePublished":"2021-12-15T19:04:21+00:00","dateModified":"2021-12-15T19:04:27+00:00","mainEntityOfPage":{"@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/"},"wordCount":909,"commentCount":0,"publisher":{"@id":"https:\/\/robodk.com\/blog\/#organization"},"image":{"@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#primaryimage"},"thumbnailUrl":"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Robot-and-engineer-scaled.jpg","articleSection":["offline programming","Robot Manufacturing","Robot Simulation","robot software"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/","url":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/","name":"How to Code a Robot for Your Next Robotic Project - RoboDK blog","isPartOf":{"@id":"https:\/\/robodk.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#primaryimage"},"image":{"@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#primaryimage"},"thumbnailUrl":"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Robot-and-engineer-scaled.jpg","datePublished":"2021-12-15T19:04:21+00:00","dateModified":"2021-12-15T19:04:27+00:00","description":"You want to code your robot yourself\u2026 How do you get started? Thankfully, coding a robot can be even easier than most coding projects!","breadcrumb":{"@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/robodk.com\/blog\/how-to-code-a-robot\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#primaryimage","url":"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Robot-and-engineer-scaled.jpg","contentUrl":"https:\/\/robodk.com\/blog\/wp-content\/uploads\/2021\/04\/Robot-and-engineer-scaled.jpg","width":2560,"height":1440,"caption":"Professional Heavy Industry Robotics Engineer Wearing White Coat Holding Tablet Computer Works in Laboratory. Facility Full of Computers, Various Industrial Design Components and with Robotic Arm"},{"@type":"BreadcrumbList","@id":"https:\/\/robodk.com\/blog\/how-to-code-a-robot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/robodk.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Code a Robot for Your Next Robotic Project"}]},{"@type":"WebSite","@id":"https:\/\/robodk.com\/blog\/#website","url":"https:\/\/robodk.com\/blog\/","name":"RoboDK blog","description":"News about RoboDK, Industrial Robots, Simulation and Robot Programming","publisher":{"@id":"https:\/\/robodk.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/robodk.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/robodk.com\/blog\/#organization","name":"RoboDK","url":"https:\/\/robodk.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/robodk.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mlhiwltxy5pk.i.optimole.com\/w:1920\/h:613\/q:mauto\/f:best\/https:\/\/robodk.com\/blog\/wp-content\/uploads\/2017\/12\/RoboDK-PNG.png","contentUrl":"https:\/\/mlhiwltxy5pk.i.optimole.com\/w:1920\/h:613\/q:mauto\/f:best\/https:\/\/robodk.com\/blog\/wp-content\/uploads\/2017\/12\/RoboDK-PNG.png","width":2128,"height":680,"caption":"RoboDK"},"image":{"@id":"https:\/\/robodk.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/robodkinc","https:\/\/x.com\/robodkinc","https:\/\/www.instagram.com\/robodk\/","https:\/\/www.linkedin.com\/company\/robodk","https:\/\/www.youtube.com\/c\/RoboDK3D"]},{"@type":"Person","@id":"https:\/\/robodk.com\/blog\/#\/schema\/person\/3ca2d3b921633adceba2740817765638","name":"Alex Owen-Hill","description":"Alex Owen-Hill is a freelance writer and public speaker who blogs about a large range of topics, including science, presentation skills at CreateClarifyArticulate.com, storytelling and (of course) robotics. He completed a PhD in Telerobotics from Universidad Politecnica de Madrid as part of the PURESAFE project, in collaboration with CERN. As a recovering academic, he maintains a firm foot in the robotics world by blogging about industrial robotics.","sameAs":["https:\/\/x.com\/AlexOwenHill"],"url":"https:\/\/robodk.com\/blog\/author\/alex-owen-hill\/"}]}},"_links":{"self":[{"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/posts\/3986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/users\/753"}],"replies":[{"embeddable":true,"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/comments?post=3986"}],"version-history":[{"count":6,"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/posts\/3986\/revisions"}],"predecessor-version":[{"id":4841,"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/posts\/3986\/revisions\/4841"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/media\/4094"}],"wp:attachment":[{"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/media?parent=3986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/categories?post=3986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robodk.com\/blog\/wp-json\/wp\/v2\/tags?post=3986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}