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

Draft: Tobi Dance Branch #48

Draft
wants to merge 116 commits into
base: master
Choose a base branch
from
Draft

Draft: Tobi Dance Branch #48

wants to merge 116 commits into from

Commits on Nov 24, 2022

  1. Configuration menu
    Copy the full SHA
    cc12775 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. Configuration menu
    Copy the full SHA
    c383c1c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50d71a5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8fe670f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    824ae35 View commit details
    Browse the repository at this point in the history
  5. set hanging mode True to see whole state of pole.

    made target position slider window less tall.
    added hint to turn off TF JIT for getting going
    tobidelbruck committed Nov 25, 2022
    Configuration menu
    Copy the full SHA
    89e2528 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2dad5ae View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2022

  1. more notes added

    tobidelbruck committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    63590e1 View commit details
    Browse the repository at this point in the history
  2. document what JIT means

    tobidelbruck committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    d441109 View commit details
    Browse the repository at this point in the history
  3. added some docstrings

    tobidelbruck committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    a326093 View commit details
    Browse the repository at this point in the history
  4. added in utility to reload config if it has been modified on disk sin…

    …ce last read.
    
    added docstring for my_logger
    tobidelbruck committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    cc33e60 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2022

  1. fixed logging function to be colored cyan for info and to generate py…

    …charm link to source file
    tobidelbruck committed Nov 27, 2022
    Configuration menu
    Copy the full SHA
    3cb32d2 View commit details
    Browse the repository at this point in the history
  2. to fix tensorflow JIT compile case insentivity problem, renamed cart …

    …mass M to m_cart and cart pole mass m to m_pole
    
    added comments about meaning of "stage" in MPPI
    renamed TargetPositionGenerator to TargetTrajectoryGenerator, since we target a complete trajectory, not just cart position.
    renamed my_logger() to get_logger()
    tobidelbruck committed Nov 27, 2022
    Configuration menu
    Copy the full SHA
    4954af2 View commit details
    Browse the repository at this point in the history
  3. generate pycharm link in log output.

    say which compiler we are using
    tobidelbruck committed Nov 27, 2022
    Configuration menu
    Copy the full SHA
    7a754f3 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Configuration menu
    Copy the full SHA
    4d36e70 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    747628c View commit details
    Browse the repository at this point in the history
  3. resize window smaller so we can see IDE.

    add check for existing terminate_experiment field
    tobidelbruck committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    ff46345 View commit details
    Browse the repository at this point in the history
  4. fix typing

    add docstring
    tobidelbruck committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    b3326f3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    38c45b0 View commit details
    Browse the repository at this point in the history
  6. rename config_cost_function.yml to config_cost_functions.yml for cons…

    …istency with other config files.
    
    added more docstrings for undocumented methods and constructors.
    added updated_attributes to barebones controller.
    improved formatting of logging output
    added dictdiffer to requirements.txt
    renamed target_position cost function to cartpole_trajectory_cost.py.
    replaced some load_config with the load_or_reload_config_if_modified, so that the configs are cached for change checking.
    added logger to Compile.py
    tobidelbruck committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    c08c2fa View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2022

  1. finally the dynamically modifiable control cost parameters are workin…

    …g and the cartpole is at least balancing itself and swinging up from down position. Big changes all over!
    
    Now anytime any of the config files is modified during runtime, the using class has its tf.variable assigned the new value.
    To get this work, the variable MUST NOT EXIST before it is set this way the first time. Otherwise the compiler just uses the field at compile time and the changes are never seen inside.
    The cartpole window now does not reset the initial position and angle sliders on each start.
    tobidelbruck committed Dec 11, 2022
    Configuration menu
    Copy the full SHA
    1767461 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. now spin and balance both work! and so does changing the policy and c…

    …hanging the cost weights during runtime! Yay, finally!
    
    Trick was to make sure that all values are actually propagated to tf variables, e.g. numpy arrays, ints, string, not just float
    
    Changed logging format to start with level for better readability.
    added string type to computation_library.py
    tobidelbruck committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    a94082c View commit details
    Browse the repository at this point in the history
  2. got basic shimmy movement to work now. added helper vars to access co…

    …nfig values in cartpole_trajectory_generator.py.
    
    added dt to params in cartpole_trajectory_generator.step() call.
    tobidelbruck committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    39fcecd View commit details
    Browse the repository at this point in the history
  3. added cartonly trajectory and fixed bug that erased the target positi…

    …on and equilibrium from updated attributes before they were updated in controller
    tobidelbruck committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    61537d7 View commit details
    Browse the repository at this point in the history
  4. added check for incorrect float as int in config file if existing att…

    …ribute is already a float.
    tobidelbruck committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    bf83557 View commit details
    Browse the repository at this point in the history
  5. passing current state to cartpole_trajectory_generator.py so it can e…

    …xtrapolate it, and added option for using terminal cost or entire trajectory cost in cartpole_trajectory_cost.py.
    
    added more params to config_cost_functions.yml.
    fiddled with logging colors.
    changed yaml loader to one that can deal with scientific format numbers (ruamel.yaml)
    tobidelbruck committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    2ffa4ed View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2022

  1. Configuration menu
    Copy the full SHA
    8336079 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f5c733e View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. Configuration menu
    Copy the full SHA
    1fdbe41 View commit details
    Browse the repository at this point in the history
  2. Update control toolkit

    frehe committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    9958310 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6352890 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2022

  1. Configuration menu
    Copy the full SHA
    9ff1277 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e6e17d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    544e4c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9965f9b View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/Tobi_Dance' into Tobi_Dance

    # Conflicts:
    #	Control_Toolkit
    #	SI_Toolkit
    tobidelbruck committed Dec 18, 2022
    Configuration menu
    Copy the full SHA
    2c59279 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2022

  1. renamed s to state for clariy in many of the classes.

    added prefs to cartpole gui for initial position and angle
    increased num_rollouts to 1000, decreased horizon to 25 time steps, changed cost function for spin to pure cart angle speed. Now spin, balance, and shimmy all work quite well.
    moved cartpole_trajectory_generator back out outside compiled TF code for ease of development and debugging, it is cheap so this is OK.
    added more logging of what gets compiled.
    added time to arguments for the base controller so that contained methods can access current time.
    added ruamel.yaml to requirements (this is the yaml parser that can handle scientific notation numbers)
    tobidelbruck committed Dec 24, 2022
    Configuration menu
    Copy the full SHA
    0972952 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2022

  1. added dancer that reads CSV file to specify sequence of 'steps' (beha…

    …viors).
    tobidelbruck committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    5ef8c49 View commit details
    Browse the repository at this point in the history
  2. added the fist demo dance sequence file

    tobidelbruck committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    f7d016f View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2022

  1. Configuration menu
    Copy the full SHA
    284cfa3 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2022

  1. added beep to signal change of step.

    fixed shimmy amplitude.
    added status bar at top of CartPole main window to show current step
    tobidelbruck committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    4f8c691 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. got cart bounce working for MPPI rollouts and added modeling of absor…

    …ption "cart_bounce_factor"
    
    needs commenting still.
    added status line to top of GUI window to show current 'step' of dance, i.e. the target of current control.
    tobidelbruck committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    3cb2509 View commit details
    Browse the repository at this point in the history
  2. add docstring for set_status_text method

    tobidelbruck committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    95ecbf6 View commit details
    Browse the repository at this point in the history
  3. added comments about edge_bounce

    tobidelbruck committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    00277fd View commit details
    Browse the repository at this point in the history
  4. docstrings

    tobidelbruck committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    bed7eee View commit details
    Browse the repository at this point in the history
  5. doctrings

    tobidelbruck committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    e02eb42 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2023

  1. added policy number to dance step policy so that we can branch on it …

    …in compiled tensorflow XLA code (which cannot branch on string constants)
    
    fixed physics of cart pole potential and kinetic energy to put in mass  and length and correct constants
    renamed cartpole cost function to cartpole_dancer_cost.py
    enhanced the load_or_reload_config_if_modified function to set a policy_number variable if the property name ends in an int
    tobidelbruck committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    06ef6ce View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2023

  1. finally got spinning to work robustly by crafting a spin cost functio…

    …n very carefully to only consider costs depending on energy state of pole.
    
    The dancer step policies now have an integer label that is used by the TF/XLA cost function to branch cost computations, same for spin direction +1/-1.
    tobidelbruck committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    75bee6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae2fbea View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2023

  1. added signal to CartPoleMainWindow that emits signal when simulation …

    …state is changed.
    
    This signal is used by cartpole_dancer.py to respond to button start/stop/pause in main GUI
    tobidelbruck committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    3dd3fe4 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2023

  1. fixed logic of starting dance. changed tensorflow to fix version 2.10…

    … (for now, until we can fix the Adam get_weights removal and replacement by get_config())
    tobidelbruck committed Jan 29, 2023
    Configuration menu
    Copy the full SHA
    acf3231 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12a6e66 View commit details
    Browse the repository at this point in the history
  3. changed dance to absolute song time to make it easier to synchronize.

    added playback rate for song to match simulation that is slower than real time.
    tobidelbruck committed Jan 29, 2023
    Configuration menu
    Copy the full SHA
    4e64f1e View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. moved the cartpole_dancer.py song and csv to config_cost_functions.yml.

    added rolling stones "satisfaction" song.
    added dynamic rate changes for song to match real time of song to simulation time.
    support long strings with / in them for update_attributes function so that these strings are set in tf.Variable correctly.
    tobidelbruck committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    4d2b903 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. moved the cartpole_dancer.py song and csv to config_cost_functions.yml.

    added rolling stones "satisfaction" song.
    added dynamic rate changes for song to match real time of song to simulation time.
    support long strings with / in them for update_attributes function so that these strings are set in tf.Variable correctly.
    tobidelbruck committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    86fd933 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/master' into Tobi_Dance

    # Conflicts:
    #	Control_Toolkit
    #	Control_Toolkit_ASF/config_optimizers.yml
    #	GUI/_CartPoleGUI_MainWindow.py
    #	SI_Toolkit
    tobidelbruck committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    784ef6e View commit details
    Browse the repository at this point in the history
  3. merged from master, commented out dynamic song rate changes since it …

    …produces choppy playback
    tobidelbruck committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    f7974ff View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'origin/main' into Tobi_Dance

    # Conflicts:
    #	Control_Toolkit_ASF_Template/Cost_Functions/EnvironmentName/cost_function_barebone.py
    #	Control_Toolkit_ASF_Template/config_optimizers.yml
    #	Controllers/__init__.py
    #	Controllers/controller_neural_imitator_tf.py
    #	Cost_Functions/__init__.py
    #	Cost_Functions/cost_function_wrapper.py
    #	Optimizers/optimizer_mppi.py
    #	Optimizers/optimizer_rpgd_me_tf.py
    #	Optimizers/optimizer_rpgd_ml_tf.py
    #	Optimizers/optimizer_rpgd_particle_tf.py
    #	Optimizers/optimizer_rpgd_tf.py
    #	requirements.txt
    tobidelbruck committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    72b244b View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Configuration menu
    Copy the full SHA
    fa170c1 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. Configuration menu
    Copy the full SHA
    34d778b View commit details
    Browse the repository at this point in the history
  2. typos, comments, and Merge remote-tracking branch 'origin/main' into …

    …Tobi_Dance
    
    # Conflicts:
    #	Control_Toolkit_ASF_Template/Cost_Functions/EnvironmentName/cost_function_barebone.py
    #	Control_Toolkit_ASF_Template/config_optimizers.yml
    #	Controllers/__init__.py
    #	Controllers/controller_neural_imitator_tf.py
    #	Cost_Functions/__init__.py
    #	Cost_Functions/cost_function_wrapper.py
    #	Optimizers/optimizer_mppi.py
    #	Optimizers/optimizer_rpgd_me_tf.py
    #	Optimizers/optimizer_rpgd_ml_tf.py
    #	Optimizers/optimizer_rpgd_particle_tf.py
    #	Optimizers/optimizer_rpgd_tf.py
    #	requirements.txt
    tobidelbruck committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    d3e38b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6b6d66e View commit details
    Browse the repository at this point in the history
  4. Merge branch 'master' into Tobi_Dance

    # Conflicts:
    #	CartPole/__init__.py
    #	CartPole/cartpole_model.py
    #	CartPole/cartpole_model_tf.py
    #	CartPole/cartpole_tf.py
    #	Control_Toolkit
    #	GUI/_CartPoleGUI_MainWindow.py
    #	config.yml
    #	others/p_globals.py
    tobidelbruck committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    427e618 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Configuration menu
    Copy the full SHA
    f972fb3 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. moved get_logger to own file in SI_Toolkit

    Started merging from remote/origin/Tobi_Dance
    tobidelbruck committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    e66ac87 View commit details
    Browse the repository at this point in the history
  2. moved get_logger to own file in SI_Toolkit

    Started merging from remote/origin/Tobi_Dance
    tobidelbruck committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    3bfe82a View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. added search path for running from physical-cartpole.

    fixed logger->log renaming
    tobidelbruck committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    fee814c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb49139 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. move get_logger.py to Control_Toolkit so that it can be used by physi…

    …cal-cartpole repo. Fix some cartpole parameter import. Fix rename of config_cost_functions.yml. Add timer.py and yes_or_no.py utility classes.
    tobidelbruck committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    13ea6dc View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. cartpole_dancer.py starts to work. Music starts and stops, some steps…

    … seem to work. mppi parameters copied from development. cost weights adjusted.
    
    controller update interval inccreased to 25ms from 20ms to match simulator and actual achieved rate with dancer mppi.
    mppi rollouts reduced to 700 to speed up control.
    PhysicalCartPoleDriver.py has class self variable for reference from other classes to the instance.
    Compile.py raises exception when either option is undefined.
    tobidelbruck committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    9616633 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2023

  1. improved control slightly by adding back more cost terms to provide s…

    …ome damping. But balancing still not working very well. Cannot follow cart position well. gets into endless repeats of trying to swing up.
    
    Fixed increment and dec of target position.
    Reduced control period back to 20ms from 25ms.
    added a controller reset to controller_mpc.py that stops the dance song.
    added a return to center function in PhysicalCartPoleDriver.py with key "C"
    tobidelbruck committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    06f1947 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2023

  1. added some docstrings, but they are not very informative

    setting up to measure model mismatch in controller_mpc.py, not implemented yet.
    tobidelbruck committed Feb 12, 2023
    Configuration menu
    Copy the full SHA
    872ec3c View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2023

  1. added primitive ability to record the predictor_ODE_tf.py predictions…

    … for next timestep and recording this prediction along with the measurement in the PhysicalCartPoleDriver.py CSV output file. In this commit, control is enabled by default because the pycharm debugger hangs on interactive terminal keyboard intput, and the motor output is disabled for remote debugging.
    tobidelbruck committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    0770b98 View commit details
    Browse the repository at this point in the history
  2. added prediction and target trajectory to logging to allow model mism…

    …atch error measurement.
    
    updated jupyter script to use filedialog to select csv.
    reverted the mysterious lowpass filter in the cart target position so that the position is changed instantaneously.
    added partially working M key command to cartpole_trajectory_generator.py to allow switching dance step from keyboard.
    added keyboard_input() and print_keyboard_help() to template_controller and implemented it in controller_mpc.py and cartpole_trajectory_generator.py.
    added easygui to requirements.txt.
    added warning to __init__.py in SI_Toolkit to warn about slow tensorflow eager mode.
    moved is_physical_cartpole_runnning_and_control_enabled to CartPole.__init__.
    tobidelbruck committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    6b1f3f0 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. updated config_cost_functions.yml to match physical-cartpole better, …

    …not really working so well however for spin
    
    updated p_globals.py to include natural period of oscillation of rod
    tobidelbruck committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    ead9c79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42aebb8 View commit details
    Browse the repository at this point in the history
  3. add computation of pole natural frequency to p_globals.py.

    remove terminal cost in cartpole_dancer_cost.py to move track edge barrier cost inside stage costs function where it is easier to manage.
    comment out terminal cost computation in Control_Toolkit - note this will break cost functions that use it.
    tobidelbruck committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    ae7035b View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. fixed spin cost to count only terminal state of pole at end of horizo…

    …n and changing behavior depending on starting actual initial state of pole energy. Seems to work well in simulation.
    tobidelbruck committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    4e7d284 View commit details
    Browse the repository at this point in the history
  2. cleanup comments

    tobidelbruck committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    48d665b View commit details
    Browse the repository at this point in the history
  3. updated dance, dance to satisfaction finally starting to work.New spi…

    …n cost really seems to be working.
    tobidelbruck committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    10809ba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bebba78 View commit details
    Browse the repository at this point in the history
  5. changed shimmy target trajectory to keep pole pointed at correct angl…

    …e towards center of shimmy.
    
    changed cartpole_dancer_cost.py to put spin condition first in if statement, to allow other special cost functions to be added more easily.
    tobidelbruck committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    d517d7d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d42307f View commit details
    Browse the repository at this point in the history
  7. fixed cartpole_trajectory_generator.py for shimmy to make pole angle …

    …point towards the center of shimmy
    tobidelbruck committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    5abab34 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    41ad200 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. added 'cartwheel' step to cartpole_trajectory_generator.py.

    commented out some noisy log.debug.
    made horizon same as physical cartpole
    tobidelbruck committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    b9bbb40 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2023

  1. modified cartwheel step to be a state machine with transitions betwee…

    …n starting and freefall (during). This trajectory seems to work in simulation
    tobidelbruck committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    195f669 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2023

  1. Configuration menu
    Copy the full SHA
    23e03b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1562d7a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bab5a18 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2023

  1. added comments to headers of some config files, not done yet.

    corrected math of computation of cartpole pole kinetic energy (was incorrect by factor of 2)
    added check to CartPoleGUI_MainWindow to check that status text is not None before setting it.
    edited mp3s of cartpole_dancer but there should be no change
    tobidelbruck committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    4e8eac0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6744441 View commit details
    Browse the repository at this point in the history
  3. working demo of dancer, fixed inits of vars, updated costs to work be…

    …tter with physical cartpole
    tobidelbruck committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    0fe4481 View commit details
    Browse the repository at this point in the history
  4. fixed some logic and reduced some loggers to debug level

    updated satisfaction CSV to use markers from audition and added more cartsheels
    tobidelbruck committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    921968c View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/Tobi_Dance' into Tobi_Dance

    # Conflicts:
    #	Control_Toolkit
    #	Control_Toolkit_ASF/Cost_Functions/CartPole/cartpole_dance-satisfaction.csv
    tobidelbruck committed Feb 19, 2023
    Configuration menu
    Copy the full SHA
    02aded4 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. added explanatory comments to config files

    tobidelbruck committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    60fd44e View commit details
    Browse the repository at this point in the history
  2. added more explanatory comments to config files

    tobidelbruck committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    dab0b32 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6b071f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5118bf2 View commit details
    Browse the repository at this point in the history
  5. fixed shimmy math.

    fixed import of CompileTF in optimizer_rpgd_tf.py.
    other small code changes and comments
    tobidelbruck committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    92417f2 View commit details
    Browse the repository at this point in the history
  6. working dancer

    line seps in firmware changed to linux
    tobidelbruck committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    1b5be4f View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. improved console reporting of current objective and logging output so…

    … that it is shown in live console display instead of scrolling away.
    
    fixed cartonly trajectory so that cartonly works with sawtooth much better.
    changed PhysicalCartPoleDriver.py logger so that the handler logs with \r like other status indicators.
    added another exception handler in globals_and_utils.py to handle AttributeErrors in config files.
    Optimized shimmy amplitudes in satisfaction
    tobidelbruck committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    6b33317 View commit details
    Browse the repository at this point in the history
  2. improved logging output to make debug logger light gray, include file…

    …name in console logger for logging during control
    tobidelbruck committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    0e8a9f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee2fe88 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    318f641 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. Configuration menu
    Copy the full SHA
    3666578 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5424c72 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c2cf1d9 View commit details
    Browse the repository at this point in the history
  4. improved console output.

    changed cartwheels to toandfro in satisfaction dance.
    fixed detection of var type to handle float and tf.Variable.
    tobidelbruck committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    b85dfdf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9da6d58 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2023

  1. Configuration menu
    Copy the full SHA
    fa8c24f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    455f52b View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2023

  1. major changes to cartpole_dancer_cost and cartpole_trajectory_generat…

    …or for compatibilty with RPGD gradient computation.
    
    update_attributes in globals_and_utils.py supports assignment of tf.Variable and now raises exception if we try to .assign an immutable Tensor.
    Balance step now uses int +1 or -1 for desired pole up or down, not 'up' or 'down'.
    computation_library.py now casts variale to numpy() from tensorflow only if it is a Tensor type.
    tobidelbruck committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    dfef006 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a37817 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. added jtag connection photo.

    added check for unavailability of sound output in case of running in WSL2.
    added paths to run from command line correctly.
    added several requirements to requirements.txt
    tobidelbruck committed May 11, 2023
    Configuration menu
    Copy the full SHA
    ae92487 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2023

  1. Configuration menu
    Copy the full SHA
    36ad4c5 View commit details
    Browse the repository at this point in the history