Mobile robots are used in a variety of applications including research, education, healthcare, customer service, security and so on. Based upon the application, the robots employ different locomotion systems for their mobility. When it comes to rolling locomotion, the wheels used to provide mobility to robots can be categorized as: tracks, omnidirectional wheels, and unidirectional wheels with a steering system. The ability of omnidirectional wheels to drive machines in small spaces makes them interesting to use. Among the types of omnidirectional wheels, mecanum wheels are widely used due to their inherent benefits. With the right control strategy, robots equipped with mecanum wheels can move freely, in all possible directions. In this study, a triangle decomposition approach is employed for controlling omnidirectional mecanum wheel-based robots. The method consists of breaking down any path into a set of linear motions that can be horizontal, vertical, or oblique. Furthermore, the oblique paths are divided into smaller segments that can be resolved into a horizontal and vertical component in a right-angle triangle. The suggested control method is tested and proved on a simple scenario using Webots simulation software.