Skip to content

Problems in ECBS.cpp #4

@White-Qi

Description

@White-Qi

Sorry to bother you, I think this is a code redundancy problem, the code has no practical meaning.
Analyze this code:
Line 612: solution_found = true; // Set the solution found flag
Line 613: best_node = curr; // Record the best node
Line 614: solution_found = true; // I think it is unnecessary to repeat the setting here
Line 615: solution_cost = curr->g_val; // Record the cost of the solution

solution_found = true; It is written repeatedly and has no meaning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions