Skip to content

problems in ukf_internal.py and pf_internal.py #339

Closed
@zhchyang2004

Description

@zhchyang2004

Hi, there:

Thanks for so professional book! I just found problems from two files discussing with you.

  1. In ukf_internal.plot_iscts_two_sensors(), the question is from the triangle calculation.

    In 'def _isct(pa, pb, alpha, beta)', b is defined as 'b = pi - beta - ab'.
    Should it be 'b = pi - beta + ab'?

  2. In pf_internal.py, u is defined as steering and velocity control inputs as indicated in Chapter 12.
    In 'def predict()', you write:
    self.particles[:, 0:2] += u + randn(self.N, 2) * std
    What is the meaning of adding position with u directly?

    Another question comes from 'def weight'. You write:
    self.weights += prob
    Should it be 'self.weights *= prob' ?

Thank you!

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