Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 test.py err #12

Closed
zhang261007 opened this issue Oct 17, 2020 · 5 comments
Closed

python3 test.py err #12

zhang261007 opened this issue Oct 17, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@zhang261007
Copy link

in line 172 in PyDiffGame.py should it be as:
A_cl = self.__A - SP_sum
to make A be found by object.

While thanks for your graceful work,I'm new to the diffgame, please could tell more about the differential equation the example used? As dx/dt = Ax + Bu,the meaning in reality?
Could you please give some advice about how to deal with the pursuit/evasion scenarios like two cars with acc and thi controlling?

@krichelj
Copy link
Owner

Thank you for your comment about line 172 - fixed in the latest commit.
About the theory being the model presented - a basic intro is presented in the readme files,
I suggest reading it.

About pursuit/evasion scenarios as you mentioned - I'm not sure we currently support these cases.
Can you be more specific?

@zhang261007
Copy link
Author

Thanks for you apply. I.ve read the readme and the math, alse dealling with Riccati equation by hand.
First, just wondering the differential equation form in the Tutorial, as

A = np.array([[-2, 1], [1, 4]]) B = [np.array([[1, 0], [0, 1]]), np.array([[0], [1]]), np.array([[1], [0]])] X0 = np.array([10, 20])

What's the meaning of them in the real world?

What's more, I shouldn't bother you for asking using diff-game in Bicycle Model in car. Should learn more about these two first.
Thanks.

@krichelj
Copy link
Owner

@zhang261007
PyDiffGame is intended for applying control on linear systems, when the modeling is done using the state space representation.

In general terms, the main concept at hand is the differential equation you mentioned. The matrix A is the system dynamics matrix - it defines the autonomous behavior of the system when no input is fed to it. The matrix B is the input coefficients matrix - it defines the relations between the inputs to the differential model of the system and X0 is the initial vector of the variable X, as we are solving a differential equation and therefore need an initial condition.

Here you can find a relevant Wikipedia entry for further reading:
https://en.wikipedia.org/wiki/State-space_representation#Linear_systems

@zhang261007
Copy link
Author

Thanks, and maybe as poor as my expression.
I know the math meaning of these matrix. I just wanna know what model A = np.array([[-2, 1], [1, 4]]) meaning, like pendulum , acrobots,Cart-Poles, or Quadrotors ?
Simple car as dxp=vpcosφp,dyp=vpsinφp. I wanna know the number [[-2, 1], [1, 4]] meaning in the real world.

@krichelj
Copy link
Owner

@zhang261007
These values are purely experimental and are meant to simulate the package functions.
If you have any actual values you would like to simulate and need any help, please comment further.

Thanks

@krichelj krichelj self-assigned this Jul 18, 2022
@krichelj krichelj added the bug Something isn't working label Jul 18, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants