Kinematics and loads first, then a catalogue drive, and only then the frame around it.
Define the task: what moves, at what speed and load, where a person stands
Choose drive and transmission from catalogues: motor, gearbox, chain or cylinder, bearings
Lay out drive, batteries, controllers and cooling in one assembly with real envelopes
Build the frame from sheet and sections for laser cutting, bending and welding
Check mechanism positions, clearances, section overlaps and unit calculations