Abstract
Due to the expensive nature of an industrial robot, not all universities are equipped with real robots for students to operate. Learning robotics without access to an actual robotic system has proven to be difficult for undergraduate students. For instructors, it is also an obstacle to effectively teach fundamental robotic concepts. Virtual robot simulator has been explored by many researchers to create a virtual environment for teaching and learning. This paper presents the structure of a course project which requires students to develop a virtual robot simulator. The simulator integrates concepts of kinematics, inverse kinematics, and controls. Results show that this approach assists and promotes better student understanding of robotics.
Introduction
Industrial robots are prohibitively expensive, meaning many engineering programs cannot provide every student with hands-on hardware time. This creates a pedagogical gap: robotics is a highly visual and physical field, yet it is often taught through abstract linear algebra and "dry" theory.
Yang Cao from the University of British Columbia addresses this by tasking students with developing their own virtual simulators. The goal is to provide a "lab-type" experience that reduces maintenance costs and risks—such as hardware damage from mishandling—while deepening the understanding of how kinematics and control algorithms manifest in 3D space.
Methodology
The project is integrated into a 4th-year engineering course (ENGR486) and divided into three distinct phases that synchronize with lecture progress.
CAD Modeling and Data Export
Students begin by modeling a 6-degree-of-freedom (DOF) robot, typically a PUMA560 type, in Solidworks. A key technical requirement is exporting the assembly as ASCII STL files while preserving the "READY" pose (zero position) and coordinate origins. This ensures that the physical model aligns with the mathematical frames defined later.
MATLAB Integration and GUI Development
The simulation environment is built in MATLAB. Students use a custom script to convert STL geometry into MATLAB structures containing faces, vertices, and colors. These are rendered as "patch objects," allowing for high-performance 3D animation via OpenGL. Using MATLAB’s GUI environment (guide), students build a dashboard to control joint angles and visualize the end-effector trajectory in real-time.
Kinematics and Control Implementation
The core of the simulator lies in the mathematical implementation of robot motion:
- Forward Kinematics (FK): Students assign frames using the Denavit-Hartenberg (DH) convention and implement homogeneous transformation matrices to calculate the robot's pose.
- Inverse Kinematics (IK): Students program the logic required to move the end-effector along a specific path. By requiring a robot with a spherical wrist, the instructor ensures the IK problem is analytically solvable.
- Control: Students implement PID joint control. Advanced students may derive dynamic equations of motion using the Lagrange formulation for model-based nonlinear control.
Key Insights
A pivotal part of the curriculum is the "Box" exercise. To lower the barrier to entry, students first practice the entire pipeline (CAD to MATLAB) using a simple rectangular box. This helps them master rotation and transformation logic before dealing with complex 6-DOF geometry. Additionally, students learn to use the set command to update vertex data of existing patch objects, which is computationally more efficient than re-drawing the robot at every frame.
Results and Discussion
The project-based approach has been highly successful based on qualitative student feedback. Students reported high levels of engagement, often describing the project as "fun." Most successfully implemented forward and inverse kinematics along with basic PID control. While the PUMA560 was the baseline, the workflow proved versatile enough for students to adapt it to KUKA robots and custom 3-DOF systems.
Limitations and Future Work
Despite the success, challenges remain in dynamic modeling. Many students struggled with model-based control because parameters like moments of inertia and exact center-of-mass locations are difficult to extract from CAD models. Future iterations may incorporate tools like MATLAB SimMechanics or ADAMS to handle complex dynamics more effectively, and potentially offer more programming flexibility with languages like Python.
Summary updated