## motionPlanningDemo1 distance measure

Typically: "How do I... ", "How can I... " questions
kurtserP
Posts: 2
Joined: 06 Jul 2017, 16:16

### motionPlanningDemo1 distance measure

I'm trying to understand the mening of the distance measure between configurations and as function of a metric.
As presented in motionPlanningDemo1:

Code: Select all

``x=(config1[i]-config2[i])*metric[i]``
This implied that the distance is a distance of angles multiplied by a metric, but what does the metric represents? The length of the joint? Why is that then linear?

I would appreciate an example.
Thank you

coppelia
Posts: 6497
Joined: 14 Dec 2012, 00:25

### Re: motionPlanningDemo1 distance measure

Hello,

imagine a robot in configuration A, a robot in configuration B, and a robot in configuration C. We want to know which is shorter: move from A to B, or to move from A to C? In order to answer that question, we somehow need to be able to measure a distance between 2 configurations? do we simply square all joint angles, add them, then extract the square root? And what happens if we have linear and angular actuators? Is one radian equivalent to 1 meter (in terms of distance)? A distance metric allows to help answer above questions. The way the metric is defined depends on the task, the robot, etc.

Cheers

kurtserP
Posts: 2
Joined: 06 Jul 2017, 16:16

Dear coppelia,