Definition at line 7 of file hanging_chain_dynamics.py.
Collaboration diagram for HangingChain:Public Member Functions | |
| def | dynamics (self, Ts=0.05) |
| def | state_to_pos (self, y) |
| def | input_to_matrix (self, u) |
| def | simulate (self, int N_sim, np.ndarray y_0, Union[np.ndarray, list, cs.SX.sym] u, Union[np.ndarray, list, cs.SX.sym] p) |
| def | initial_state (self) |
| def | generate_cost_fun (self, α=25, β=1, γ=0.01) |
Public Attributes | |
| N | |
| dim | |
| y1 | |
| y2 | |
| y3 | |
| u | |
| y | |
| m | |
| D | |
| L | |
| params | |
| g | |
| x0 | |
| x_end | |
| f | |
| f_d | |
| def dynamics | ( | self, | |
Ts = 0.05 |
|||
| ) |
Definition at line 28 of file hanging_chain_dynamics.py.
Here is the call graph for this function:
Here is the caller graph for this function:| def state_to_pos | ( | self, | |
| y | |||
| ) |
Definition at line 66 of file hanging_chain_dynamics.py.
Here is the call graph for this function:
Here is the caller graph for this function:| def input_to_matrix | ( | self, | |
| u | |||
| ) |
Reshape the input signal from a vector into a dim × N_horiz matrix (note that CasADi matrices are stored column-wise and NumPy arrays row-wise)
Definition at line 76 of file hanging_chain_dynamics.py.
Here is the call graph for this function:
Here is the caller graph for this function:| def simulate | ( | self, | |
| int | N_sim, | ||
| np.ndarray | y_0, | ||
| Union[np.ndarray, list, cs.SX.sym] | u, | ||
| Union[np.ndarray, list, cs.SX.sym] | p | ||
| ) |
Definition at line 86 of file hanging_chain_dynamics.py.
Here is the call graph for this function:
Here is the caller graph for this function:| def initial_state | ( | self | ) |
Definition at line 97 of file hanging_chain_dynamics.py.
Here is the call graph for this function:
Here is the caller graph for this function:| def generate_cost_fun | ( | self, | |
α = 25, |
|||
β = 1, |
|||
γ = 0.01 |
|||
| ) |
Definition at line 110 of file hanging_chain_dynamics.py.
Here is the call graph for this function:
Here is the caller graph for this function:| N |
Definition at line 9 of file hanging_chain_dynamics.py.
| dim |
Definition at line 10 of file hanging_chain_dynamics.py.
| y1 |
Definition at line 12 of file hanging_chain_dynamics.py.
| y2 |
Definition at line 13 of file hanging_chain_dynamics.py.
| y3 |
Definition at line 14 of file hanging_chain_dynamics.py.
| u |
Definition at line 15 of file hanging_chain_dynamics.py.
| y |
Definition at line 16 of file hanging_chain_dynamics.py.
| m |
Definition at line 18 of file hanging_chain_dynamics.py.
| D |
Definition at line 19 of file hanging_chain_dynamics.py.
| L |
Definition at line 20 of file hanging_chain_dynamics.py.
| params |
Definition at line 22 of file hanging_chain_dynamics.py.
| g |
Definition at line 24 of file hanging_chain_dynamics.py.
| x0 |
Definition at line 25 of file hanging_chain_dynamics.py.
| x_end |
Definition at line 26 of file hanging_chain_dynamics.py.
| f |
Definition at line 49 of file hanging_chain_dynamics.py.
| f_d |
Definition at line 61 of file hanging_chain_dynamics.py.