A non-transitory computer-readable storage medium storing one or more programs to be executed by a device for designing a serial manipulator that comprises an end effector, a plurality of links, and a plurality of motors, the one or more programs, when being executed by one or more processors of the device, causing the device to perform processing comprising:
- obtaining a desired motion profile of the end effector;
- discretizing the desired motion profile into a plurality of points, wherein each of the points carries information of speed, acceleration, and force/torque of the end effector at the point;
- determining a number of degrees of freedom of the serial manipulator, and initializing a length of each of the links and a motor type of each of the motors;
- and
- at each of the points, optimizing the initialized lengths of the links and the motor types of the motors by calculating a dynamic manipulability ellipsoid at the end effector, to obtain desired lengths of the links and desired motor types of the motors, which allows the end effector to execute the desired motion profile under predetermined constraints.