Skip to content

Merge Rabbit demo to v2 beta. - #1

Open
ChoiJangho wants to merge 57 commits into
support-no-symbolicfrom
RABBIT
Open

Merge Rabbit demo to v2 beta.#1
ChoiJangho wants to merge 57 commits into
support-no-symbolicfrom
RABBIT

Conversation

@ChoiJangho

Copy link
Copy Markdown
Owner

No description provided.

@ChoiJangho

Copy link
Copy Markdown
Owner Author

Get rid of utils
Move rollout_feedback_linearization.m to lib.
Change plot functions to using this repo: https://github.com/ChoiJangho/mufun

@ChoiJangho

Copy link
Copy Markdown
Owner Author

Create directory rabbit to demo, and put rabbit-related stuff here. Move anim and dynsys_helper to here.

@ChoiJangho

Copy link
Copy Markdown
Owner Author

Change vargin handling in rollout_feedback_linearization.m to using the mufun library (parse_function_args.m or parse_function_args_full.m).

@ChoiJangho

Copy link
Copy Markdown
Owner Author

Refactor output handling in rollout_feedback_linearization.m:

Change

[xs, us, ts, Vs, dVs_error, ys] = rollout_feedback_linearization( ...
    x0, t0, plant_sys, control_sys, controller, dt, sim_t, with_slack, mu0, verbose, event_options)

to

[xs, us, ts, extra_out] = rollout_feedback_linearization( ...
    x0, t0, plant_sys, control_sys, controller, dt, sim_t, with_slack, mu0, verbose, event_options)
extra_out.Vs = Vs;
extra_out.dVs_error = dVs_error;
extra_out.ys = ys;

2. Restructured rabbit_helper, plot, anim directory into demos/
3. CLF-Helper rabbit version  annotated more detailed.
Comment thread lib/@CtrlAffineSys/CtrlAffineSys.m Outdated
% (Always preferred to refer directly to the class properties.)
params
params
config

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goldenhazard what is the config for?

ChoiJangho and others added 9 commits October 3, 2021 18:17
  This function supports the dynamics that encompass reset map function.
  Issue)
    Should reset map, event_option be included in varargin (I think not!)

  You have to define reset_map_function, event_option to rollout this function

2. run_clf_simulation_rabbit.m refined
  It's pipeline got much simpler!
  1) Prepare the simulation config and dynamics, event_handler
  2) Initialize the state
  3) Run simulation
  4) Visualize the key plots
  5) Run the animation
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Below updates are designed to use 'rollout_controller' for all controllers.

(1) CtrlAffineSysFL/wrap_controller.m

This makes controller to be compatible with rollout_controller function.
Every control system that has different notion of the basic controller function should have this function
to make the form compatible with the rollout_controller function

(2) Suggestion
We lose certain information that requires the system to evolve.
ex) dVs_error, ...
Those kind of information should be parsed after the evolution of the system.

I suggest to use the function like 'evolve_System' instead of explicit use of ode_func
By this, we can use same notion of 'wrap_evolve_system' to parse various information regardless of the control system's format

This kind of update would make the code more robust as far as I am concerned.

(3) version that supports both mu_ref and u_ref should be updated in future.
ChoiJangho and others added 30 commits October 19, 2021 02:02
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Signed-off-by: goldenhazard <octoberfor97@naver.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants