uzh-rpg / data_driven_mpc

GNU General Public License v3.0
264 stars 53 forks source link

error while Fitting RDRv model #12

Open somilm opened 2 years ago

somilm commented 2 years ago

while running the rdrv_fitting.py in getting the following error

Traceback (most recent call last): File "/home/somil/mpc/cat_ws/src/data_driven_mpc/ros_gp_mpc/src/model_fitting/rdrv_fitting.py", line 134, in main(model_name=rdrv_name, features=reg_dimensions, quad_sim_options=simulation_options, dataset_name=ds_name, File "/home/somil/mpc/cat_ws/src/data_driven_mpc/ros_gp_mpc/src/model_fitting/rdrv_fitting.py", line 84, in main ax[i].scatter(v_b[:, i], a_err_b[:, i], label='data') File "/home/somil/mpc/gp_mpc_venv/lib/python3.9/site-packages/matplotlib/init.py", line 1414, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "/home/somil/mpc/gp_mpc_venv/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 4368, in scatter raise ValueError("x and y must be the same size") ValueError: x and y must be the same size

can one please help me to resolve this error

cheslee-z commented 2 years ago

maybe you can close the visualize thread

Azircarry commented 9 months ago

while running the rdrv_fitting.py in getting the following error

Traceback (most recent call last): File "/home/somil/mpc/cat_ws/src/data_driven_mpc/ros_gp_mpc/src/model_fitting/rdrv_fitting.py", line 134, in main(model_name=rdrv_name, features=reg_dimensions, quad_sim_options=simulation_options, dataset_name=ds_name, File "/home/somil/mpc/cat_ws/src/data_driven_mpc/ros_gp_mpc/src/model_fitting/rdrv_fitting.py", line 84, in main ax[i].scatter(v_b[:, i], a_err_b[:, i], label='data') File "/home/somil/mpc/gp_mpc_venv/lib/python3.9/site-packages/matplotlib/init.py", line 1414, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "/home/somil/mpc/gp_mpc_venv/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 4368, in scatter raise ValueError("x and y must be the same size") ValueError: x and y must be the same size

can one please help me to resolve this error

I'm getting the same error, how can I fix it?

Azircarry commented 9 months ago

maybe you can close the visualize thread

What exactly should I do?Please forgive me for this stupid question, but I really don't know how