A method for verifying the structural and/or functional integrity of a master device, which is hand-held and unconstrained, used to control a robotic system for medical or surgical teleoperation, wherein the master device comprises a body comprising two rigid parts constrained to relatively rotate and/or translate with respect to a common axis,
- wherein the method comprises:
- measuring and/or detecting position vectors of at least two points, each of which belonging to one respective rigid part of said two rigid parts of said master device, and measuring and/or detecting evolution over time of said at least two position vectors;
- measuring and/or detecting an orientation of each of said at least two points, each orientation being expressed as a respective set of three numbers, and measuring and/or detecting the evolution over time of said orientations;
- defining one or more constraints imposed by constructional or structural features of the master device, deriving from the difference between the number of degrees of freedom necessary to define a state of the master device and a number of information items detected, each constraint being associated with a mathematical relationship which must be respected in case of integrity of the master device;
- calculating mathematical relations associated with each of the constraints defined, based on said detected and/or measured position vectors and orientations and on the respective evolutions over time;
- determining a state of structural and/or functional integrity or non-integrity of the master device, based on a verification of whether or not the mathematical relations associated with each of the constraints defined are respected, utilizing the detected information related to the degrees of freedom that are redundant with respect to the information necessary to determine the state of the master device.