这是indexloc提供的服务,不要输入任何密码
Skip to content

tudoroancea/dpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dpc

setup

We provide below a setup example using uv, but you should be able to do everything with plain venv and pip.

git clone https://github.com/tudoroancea/dpc
cd dpc
uv sync

discoveries

  • The cost is very big because we have very extreme initial conditions, that don't often appear in the closed loop experiments we did. We can keep these but maybe do several training phases:

    1. "Pretraining" on this dataset with a lot of different initial conditions
    2. "Finetune" on a dataset concentrated around the reference (gaussian error model) that should be more representative of the conditions appearing in closed-loop.

    The tricky part will be to make sure the model doesn't forget too much 😅

  • why is delta so noisy? can we add some regularization? that is not in the original NMPC problem?

  • cost for NMPC with initial pose $(0,0.5,\pi/2-0.5)$ is ≈4500. => How can we optimize for the edge cases without? should we scale the cost by the initial vel error?

coincidence?

Things that happen at almost every training, no matter the net dimensions, no matter even the dataset.

  1. the validation spikes at the very beginning and then converges to the train loss.
  2. at some point, the loss starts oscillating a lot, even with lr=1e-4

dataset format

CSV file with the following format:

X,Y,phi,v,X_ref_0,Y_ref_0,phi_ref_0,v_ref_0,...,X_ref_40,Y_ref_40,phi_ref_40,v_ref_40,T_mpc_0,delta_mpc_0,...,T_mpc_39,delta_mpc_39,cost_mpc

About

finally making it work

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages