{"id":223,"date":"2026-08-30T07:14:55","date_gmt":"2026-08-30T05:14:55","guid":{"rendered":"http:\/\/www.babacad.com\/blog\/?p=223"},"modified":"2026-09-12T17:16:44","modified_gmt":"2026-09-12T15:16:44","slug":"babacad-robotics-web-industrial-robot-simulator-v2-2-introduce-a-new-plugin-system","status":"publish","type":"post","link":"https:\/\/www.babacad.com\/blog\/?p=223","title":{"rendered":"BabaCAD Robotics Web industrial robot simulator v2.2 introduce a new plugin system"},"content":{"rendered":"<p><code><br \/>\nasync function userCommand(cmdId)<br \/>\n{<br \/>\n&nbsp;&nbsp;\/\/ show hello msg in console<br \/>\n&nbsp;&nbsp;brwAPI.logMessage('Hello from inside the BabaCAD Robotics plugin!');<\/p>\n<p>&nbsp;&nbsp;\/\/ get robot arm current configuration \/ joint ang. [j0,j1,...,j5]<br \/>\n&nbsp;&nbsp;const q0 = await brwAPI.getCurrentJointAngles();<\/p>\n<p>&nbsp;&nbsp;const dist = 200;<\/p>\n<p>&nbsp;&nbsp;\/\/ get [x,y,z] and normal [nx,ny,nz] of the robot manipulator<br \/>\n&nbsp;&nbsp;var startPos = await brwAPI.getCurrentWorldPosition();<br \/>\n&nbsp;&nbsp;const normal = await brwAPI.getCurrentNormalVector();<\/p>\n<p>&nbsp;&nbsp;var vel = await brwAPI.getSimulationVelocity();<br \/>\n&nbsp;&nbsp;...<br \/>\n}<br \/>\n<\/code><\/p>\n<p><strong>BabaCAD Robotics Web v2.2<\/strong> has been released (08\/29\/2026). Introducing a new plugin system with a set of .js API functions.<br \/>\nUsers now can write custom commands and extend simulator with specific functionalities. There is VS Code extension (search in VS Code marketplace for BabaCAD Robotics extension) which helps user to write plugin code easy, using API methods auto-complete feature. Now, users can also write post processor to send simulation trajectory data (interpolated joint angles array) directly to a real robot arm.<\/p>\n<p><a href=\"https:\/\/www.babacad.com\/robotics\/web\" title=\"online simulator link\">https:\/\/www.babacad.com\/robotics\/web<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.babacad.com\/blog\/wp-content\/uploads\/2026\/08\/babacad-robotics-web.jpg\" alt=\"\" title=\"BabaCAD Robotics Web v2.2 with a new plugin system and API\" width=\"729\" height=\"530\" class=\"alignnone size-full wp-image-224\" srcset=\"https:\/\/www.babacad.com\/blog\/wp-content\/uploads\/2026\/08\/babacad-robotics-web.jpg 729w, https:\/\/www.babacad.com\/blog\/wp-content\/uploads\/2026\/08\/babacad-robotics-web-300x218.jpg 300w, https:\/\/www.babacad.com\/blog\/wp-content\/uploads\/2026\/08\/babacad-robotics-web-412x300.jpg 412w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>async function userCommand(cmdId) { &nbsp;&nbsp;\/\/ show hello msg in console &nbsp;&nbsp;brwAPI.logMessage(&#8216;Hello from inside the BabaCAD Robotics plugin!&#8217;); &nbsp;&nbsp;\/\/ get robot arm current configuration \/ joint ang. [j0,j1,&#8230;,j5] &nbsp;&nbsp;const q0 = await brwAPI.getCurrentJointAngles(); &nbsp;&nbsp;const dist = 200; &nbsp;&nbsp;\/\/ get [x,y,z] and &hellip; <a href=\"https:\/\/www.babacad.com\/blog\/?p=223\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[177,179,175,178,181,180,176,174,173],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-english","tag-automation","tag-collision-detection","tag-industrial-robots","tag-inverse-kinematics","tag-offline-robot-programming","tag-post-processing","tag-robot-simulation","tag-robotic-arm","tag-robotics-2"],"_links":{"self":[{"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=223"}],"version-history":[{"count":14,"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.babacad.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}