Skip to content

Full path lenght calculation is wrong #102

@portaloffreedom

Description

@portaloffreedom

In the c++ evaluator (simulator) somehow the total path length can results smaller than the distance between first and last position.
This is matematically impossible.

It could be an accumulating error problem, but we are not certain

Code found here:

for (size_t i=1; i < this->step_poses.size(); i++)
{
const auto &pose_i_1 = this->step_poses[i-1];
const auto &pose_i = this->step_poses[i];
this->path_length += Evaluator::measure_distance(pose_i_1, pose_i);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions