{"id":13684,"date":"2026-11-16T17:28:38","date_gmt":"2026-11-16T22:28:38","guid":{"rendered":"https:\/\/blogs.mathworks.com\/student-lounge\/?p=13684"},"modified":"2026-11-16T17:28:38","modified_gmt":"2026-11-16T22:28:38","slug":"building-a-virtual-robot-a-best-robotics-teams-journey-with-simscape","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/student-lounge\/2026\/11\/16\/building-a-virtual-robot-a-best-robotics-teams-journey-with-simscape\/","title":{"rendered":"Building a Virtual Robot: A BEST Robotics Team\u2019s Journey with Simscape"},"content":{"rendered":"<div class=\"rtcContent\">\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><span style=\"font-style: italic;\">Today, we\u2019re talking to Carson Adams from Oak Ridge High School about how his team built a virtual model of their competition robot for the BEST Robotics competition. Over to you, Carson&#8230;<\/span><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Hello! I am Carson Adams from Oak Ridge High School and a member of the Ridge Robotics team. I am here to talk about Cerebra, the latest robot made by Ridge Robotics. Competing in the <a href=\"https:\/\/bestrobotics.org\/\">BEST Robotics Competition<\/a>, Ridge Robotics is a student-led team, based out of Oak Ridge High School with large ties to the Academy for Careers in Engineering and Science both based in Conroe, Texas. Our goal is to develop an inclusive environment where our members not only learn engineering skills but find a place they love. This message is what pulled me into the team.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"imageNode\" style=\"vertical-align: baseline; width: 493px; height: 239px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/26nov16_1.png\" alt=\"\" width=\"493\" height=\"239\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><span style=\"font-style: italic;\">Ridge Robotics Team<\/span><\/div>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">My Story<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">As a Simulink and MATLAB user, I originally started through my sponsor who was interested in the Simulink Design award. With that small push, I jumped into the world of simulation and became very interested. With my almost 10 years of experience in Computer Science, it seemed that Simulink should be easy. However, this \u201ceasy\u201d task ended up taking over 100 hours of hard work to learn the ins and outs of the program and constant iteration. In the end, I may not have been a natural, but I am proud to say that through effort I was able to win the national award last year. Of course, it wasn\u2019t all trial and error, in fact, I had lots of help along the way from other resources and blogs. Some of the blogs I found useful were:<\/div>\n<ul style=\"margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px;\">\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2020\/08\/18\/creating-virtual-robot-environments-in-simscape-part-1\/\"><span style=\"text-decoration: underline;\">Creating Virtual Robot Environments in Simscape: Assembling Robots and Importing from CAD<\/span><\/a> \u2013 Using File blocks<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2020\/08\/31\/creating-virtual-robot-environments-in-simscape-part-2\/\"><span style=\"text-decoration: underline;\">Creating Virtual Robot Environments in Simscape: Adding Physics, Object Interactions, and Autonomy <\/span><\/a>\u2013 To more fully understand collisions<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\">And especially these onramps:<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/matlabacademy.mathworks.com\/details\/matlab-onramp\/gettingstarted\"><span style=\"text-decoration: underline;\">MATLAB<\/span><\/a> \u2013 To learn MATLAB<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/matlabacademy.mathworks.com\/details\/simulink-onramp\/simulink\"><span style=\"text-decoration: underline;\">Simulink<\/span><\/a> \u2013 To learn the basic controls of Simulink<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/matlabacademy.mathworks.com\/details\/simscape-onramp\/simscape\"><span style=\"text-decoration: underline;\">Simscape<\/span><\/a> \u2013 To learn how modelling works<\/li>\n<li style=\"margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap;\"><a href=\"https:\/\/matlabacademy.mathworks.com\/details\/multibody-simulation-onramp\/ormb\"><span style=\"text-decoration: underline;\">Multibody Simulation<\/span><\/a> \u2013 To learn how modelling pieces works<\/li>\n<\/ul>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">The Goal<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">In the BEST Robotics competition, MathWorks sponsors the Simulink Design Award, which encourages teams to use MathWorks products, primarily Simulink, to simulate or program their robots. Teams can demonstrate their use of MathWorks tools through robot programming with libraries and Simulink, or through robot modeling using <a href=\"https:\/\/www.mathworks.com\/products\/simscape.html\">Simscape<\/a> and <a href=\"https:\/\/www.mathworks.com\/products\/simscape-multibody.html\">Simscape Multibody<\/a>. For my submission, I focused on the robot modeling aspect, so this blog will primarily explore the details of that approach.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"imageNode\" style=\"vertical-align: baseline; width: 232px; height: 232px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/26nov16_2.png\" alt=\"\" width=\"232\" height=\"232\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><span style=\"font-style: italic;\">The Claw in Use<\/span><\/div>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">The Approach<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">We started modelling the robot after it was built. By doing so, it is possible to take apart the robot systematically enabling near perfect reconstruction. For this project, I separated the robot into the portions that the robot was built in. For example, the arm system was built in Simscape separate from the wheels. To construct the systems in Simscape, I look at the robot and note how the individual pieces fit together and what pieces move. Additionally, I am very lucky that I have a teammate, Nicolas Oliveira, who creates some excellent CAD. I used his individual CAD files using file blocks to put together the actual pieces of the robot. They were then moved using rigid transforms.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"imageNode\" style=\"vertical-align: baseline; width: 422px; height: 139px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/26nov16_3.png\" alt=\"\" width=\"422\" height=\"139\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><span style=\"font-style: italic;\">Simscape model of the Claw Subsystem<\/span><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"imageNode\" style=\"vertical-align: baseline; width: 450px; height: 141px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/26nov16_4.png\" alt=\"\" width=\"450\" height=\"141\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><span style=\"font-style: italic;\">Simulink model of the Movement Subsystem<\/span><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Often when working with Simscape, I find difficultly with collisions between objects because of the complexity of the objects. For instance, the wheels collide with the ground but the complexity of the wheel file blocks makes the simulation run very slowly. In this case, I perfectly covered the wheels in the basic sphere block which has less computationally intensive collisions. Generally, with collisions it is useful to create shadow objects, called proxies, that serve as a collision boundary or hitbox for the actual object. The simpler, the better.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"imageNode\" style=\"vertical-align: baseline; width: 319px; height: 234px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/26nov16_5.png\" alt=\"\" width=\"319\" height=\"234\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><span style=\"font-style: italic;\">Visual of Wheel Proxies<\/span><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Another tricky part of simulating in Simscape Multibody is when a part needs to rotate around one axis that is not the Z-axis. A revolute joint is a simple joint that allows for rotation around 1 axis only. The catch is that the revolute joint only allows for the Z-axis to be the axis of rotation. Well, if the Z-axis is locked, an equivalent option to changing the axis, is to change where the Z-axis is. The rigid transform block allows hardcoded rotation around the other axis. So, in order to rotate along a particular axis, rotate 90 degrees along the other. After the pivot, apply the inverse rotation of -90 or 270 degrees.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"imageNode\" style=\"vertical-align: baseline; width: 445px; height: 163px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/26nov16_6.png\" alt=\"\" width=\"445\" height=\"163\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><span style=\"font-style: italic;\">Correcting the Pivot Axis<\/span><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"imageNode\" style=\"vertical-align: baseline; width: 399px; height: 270px;\" src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/26nov16_7.png\" alt=\"\" width=\"399\" height=\"270\" \/><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center;\"><span style=\"font-style: italic;\">Visual of Collision Wiring<\/span><\/div>\n<div><\/div>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/4_QTdm2XYd0?si=ANlIpUdDArcVxlQe\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>The model can be found at this link: <a href=\"https:\/\/github.com\/shrk386\/RidgeRoboticsSimulink\/\"><span style=\"text-decoration: underline;\">Model Github Repository<\/span><\/a><\/p>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\">Lessons Learned<\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #212121; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Throughout it all, a few things stuck with me namely the value of hard work and community. Without putting in the effort, it is very hard to gain the skills needed to learn. And without the places to learn, it is hard to get started. With these two values, our team has grown and will continue a tradition of using Simulink.<\/div>\n<\/div>\n<p><script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2026\/11\/robot-1.gif\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div>\n<p>Today, we\u2019re talking to Carson Adams from Oak Ridge High School about how his team built a virtual model of their competition robot for the BEST Robotics competition. Over to you,&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2026\/11\/16\/building-a-virtual-robot-a-best-robotics-teams-journey-with-simscape\/\">read more >><\/a><\/p>\n","protected":false},"author":183,"featured_media":13689,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[117],"class_list":["post-13684","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-robotics","tag-simscape"],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/13684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/users\/183"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/comments?post=13684"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/13684\/revisions"}],"predecessor-version":[{"id":13687,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/13684\/revisions\/13687"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media\/13689"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media?parent=13684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/categories?post=13684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/tags?post=13684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}