Robotics is not a single discipline, but it a combination of many. This graphic shows the basic elements of robotics.
Mechanics includes the physical structure like the robot’s body as well as the motors.
The electronics are cameras, speakers, sensors, and other devices that allow the robot to interpret and navigate the environment, to adapt, make decisions, and to communicate with humans.
Robots typically have a computer element. These robots are controlled by a miniature computer device which is a micro controller. This computer is programmed via an external computer using software.
Finally sophisticated mathematics are performed when the robot moves. Those calculations are called Kinematics. They are pretty complex.