Modeling the Nao Robot in MapleSim
Engineers at Maplesoft used MapleSim to develop a model of Nao, a 58cm tall humanoid robot created by Aldebaran Robotics. The model simulated the movements of the robot, allowing the engineers to simulate its behavior accurately and teach it to do new tricks such as perform Tai Chi, dance, play volleyball, and draw a picture.
Nao is a small humanoid robot created by Aldebaran Robotics. Standing 58 cm tall, Nao is used to teach students around the world programming, and to give engineers and software developers a platform for experimentation and robotic applications. Nao was even adopted recently by a financial institution in Japan to use as bank tellers!
Engineers at Maplesoft decided to see if they could create a model of Nao in MapleSim, the advanced system-level modeling and simulation tool that applies modern techniques to dramatically reduce model development time, provide greater insight into system behavior, and produce fast, high-fidelity simulations.
Building the Model
Nao is a highly complex multibody mechanism with 25 degrees of freedom. Using MapleSim's multibody library, Maplesoft engineers created a model using Denavit-Hartenberg (DH) convention to define the robot's joints coordinate frames. CAD models were then imported to define body mass, rotational inertia and center of mass. Because MapleSim is a physical modeling system, the model diagram corresponds closely to the physical system itself.
Servo motors appear at each joint to drive the movement. Signals from the controller trigger the motor to reposition each joint. In combination, these individual servo motors determine how Nao moves.
The engineers were also able to model the contact between Nao's foot and the floor. This was done by creating custom components in MapleSim, and supplying the mathematical equations that govern friction and normal force. These components were included in the model at each point of contact on the ...
The engineers were also able to model the contact between Nao's foot and the floor. This was done by creating custom components in MapleSim, and supplying the mathematical equations that govern friction and normal force. These components were included in the model at each point of contact on the base of each foot.
The MapleSim model also includes a Li-ion battery pack model from the MapleSim Battery Library that powers the motor, so that the behavior of the battery and its interactions with the rest of the system can be modeled as well.
Sensor readings of each joint were exported from Aldebaran Robotics Choregraphe™ to MapleSim via a time lookup table. These were then used as the command signal for each joint.The model responded in the same way the physical robot did. For instance, the MapleSim model can perform Tai Chi as adeptly as its physical counterpart.
Teaching Nao New Tricks
Now that they had a model that simulates the movements of the Nao robot, the Maplesoft engineers then wanted to see if they could not just simulate its behaviour accurately, but also teach it do to something new.
Using MapleSim's ability to extract and analysis the mathematical equations of motion of a model, as well as its multibody analysis tools, they determined the symbolic solution to the inverse kinematic problem for the motion of the robot's arm. With this solution, they could calculate the joint motions necessary to place the arm in an arbitrary location in space. They used this information to add a new custom component to the model that takes the desired end position and calculates the movements needed to achieve it. Then, they taught the virtual Nao to draw.
They created an application that allows a human to sketch a shape, image, or word using a mouse. The sketch is analyzed to determine the coordinates of the lines, and then the information is fed into the simulation model. The result? Nao moves his arm and draws the same thing!
Further leveraging MapleSim's ability to solve inverse kinematics problems, Maplesoft engineers have also taught Nao other new tricks, including various dances, playing volleyball, and tracking a quadrocopter.
Why This Is Interesting
If you are working on a robotics research or design project where understanding multidomain interactions are important, then using a multidomain modeling platform like MapleSim, as this example demonstrates, will allow you to bring together all aspects of your project into one place.
-3D Multibody Modeling: Take advantage of 3D Multibody modeling, simulation, and visualization capabilities
-Parameterized Models: Conveniently access system parameters to quickly apply design changes and consider a family of designs or products
-Multidomain Support: Augment the dynamic mechanical system with accurate models of electric motors, controllers and batteries
-Virtual Testing and Analysis: Investigate system-level behavior and interaction of multidomain subsystems, without the need to build expensive and unpredictable physical prototypes
-Component Sizing: Easily run batch simulation and parallel processing, and collect data that can be used to assist in component sizing
-Full Access: Leverage direct access to equations and a full programming language to expand the same simulation model to be part of model design and trajectory optimization tasks
-Optimized Code Generation: Generate highly optimized c-code from the model for an essential part of model-based control design
Published by Maplesoft, Inc. on 10 Jul 2015
For more information send an inquiry directly to Maplesoft, Inc.
Engineers - Stop Doing Algebra by Hand!
Manual equation manipulation is labor intensive, time consuming, and notoriously prone to error. Simply put, doing algebra by hand is expensive. When faced with expensive processes, engineers find ways to mechanize and cut costs. Math should be no different. Computer algebra systems mechanize equation manipulation, reducing the need for human involvement and hence eliminate a source of risk. Pioneered originally by mathematicians and physicists, they are now more capable than ever to address a full range of engineering problems. Read this whitepaper to understand the benefits of computer algebra systems in the context of various engineering domains, to see how symbolic computation offers simplified solutions for many engineering tasks, and to learn how to use calculation management software to reduce the overall amount of errors commonly associated with working by hand.
Calculation Management Done Right
In the marketplace of technical products, growing competition has required faster design cycles and iterations in almost every sector. Companies take great steps to invest in their most important assets - namely, the products they deliver. These products are comprised of various designs, techniques, and intellectual property, all of which are managed across an organization with careful thought and attention. There’s something fundamental to these company assets which is often overlooked, and responsible for the aches and pains that most engineers face on a regular basis. This essential company asset is known as calculation management.
Maplesoft Makes Model Based Systems Engineering Accessible to More Engineers with New MapleMBSE
MapleMBSE is a new product from Maplesoft that provides engineers with greater accessibility to model-based systems engineering tools, helping them create, maintain, validate requirements efficiently, with fewer errors29 Aug 2017
Engineer in France Develops Motorcycle Racing Simulator Using MapleSim
Mr. Frédéric Nicolo wanted to develop a motorbike simulator that performed at the same level as current automobile simulators, accommodating the unique features of motorbikes. He started his own venture, developing a simulator using MapleSim that ...22 Jun 2017
Maple 2017 Offers Increased Mathematical Power, Stronger Visualizations and Flexible Deployment Options
Maplesoft today announced a major new release of its flagship product, Maple, the mathematical software that makes it extremely easy to analyze, explore, visualize, and solve math problems. The result of over 30 years of development, Maple already has ...22 Jun 2017
New Connector by Maplesoft and Phoenix Integration Combines Engineering Insight and Efficiency
Maplesoft and Phoenix Integration announced a new plugin that enables engineers to easily incorporate Maplesoft software products Maple and MapleSim into the ModelCenter workflow integration and automation platform from Phoenix Integration. Th...11 May 2017
Designing an Industrial Pick-and-Place Robot
A leading provider of packaging machines was experiencing repeated motor failures with their pick-and-place robots, facing substantial replacement costs on a regular basis. The company chose Maplesoft to develop a high-fidelity parameterized model...11 May 2017
Researchers at the University of Waterloo use MapleSim in New Approach to Tire Modeling
Ideally, a tire model will accurately simulate the dynamics of the system and result in simulations that execute quickly. Unfortunately, existing tire models typically either do not model behavior to a high degree of accuracy, or they are very resource...15 Mar 2017
Maple Drastically Reduces Downtime of Steam Turbines by Improving the Ultrasonic Testing of Rotor Blades
Rotek, the maintenance branch of Eskom, South Africa’s state-owned electricity provider, is using Maple, the technical computing software from Maplesoft, to design a comprehensive pre-inspection simulation model for use in the ultrasonic inspections of...8 Feb 2017
Maple Helps Hiab Simplify Their Crane Operation
Hiab, a leading provider of load handling equipment, is using Maple to design new ways to lessen the burden on crane operators and maintain safe and precise machine operation. Hiab selected Maple because of its ability to process complex matrix ma...7 Feb 2017
Latest MapleSim Release Improves Engineering Design Productivity
Maplesoft today announced a major new release of MapleSim™, an advanced system-level modeling and simulation platform used by engineers to reduce development time and gain insight into system behavior. The latest release provides tools that increa...6 Feb 2017
MapleSim used to speed up development of high-fidelity robotic manipulator models
ABB's Robotics business unit evaluated MapleSim, the high-performance modeling and simulation platform from Maplesoft, to develop high-fidelity manipulator models that included flexible joints, gears, and dynamic friction, and to determine the ease wit...4 Feb 2016
Maplesoft Engineering Solutions team helps FLSmidth develop revolutionary mining equipment
FLSmidth discovered the advantages of system-level modeling while working with Maplesoft's Engineering Solutions team on the development of a Dual Truck Mobile Sizer (DTMS). The level of design detail and the amount of insight the team gained by using ...4 Feb 2016
New MapleSim Toolbox Enables System-Level Modeling with CAD Designs
Maplesoft recently released the MapleSim CAD Toolbox, a new add-on to MapleSim that allows engineers to understand and improve their mechanical designs by bringing their CAD assemblies into MapleSim, the advanced system-level modeling and simulation p...4 Feb 2016
Modeling the Nao Robot in MapleSim
Engineers at Maplesoft used MapleSim to develop a model of Nao, a 58cm tall humanoid robot created by Aldebaran Robotics. The model simulated the movements of the robot, allowing the engineers to simulate its behavior accurately and teach it to do...10 Jul 2015