qiayuanl / legged_control

Nonlinear MPC and WBC framework for legged robot based on OCS2 and ros-controls
BSD 3-Clause "New" or "Revised" License
854 stars 217 forks source link

WARNING: The MPC time-horizon is smaller than the MPC starting time #34

Closed elpimous closed 1 year ago

elpimous commented 1 year ago

Hello the team, robot wants to stand up, but cant !! Any help : Ther terminal :

currentTime: 2.47148     Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time
elpimous commented 1 year ago

return of terminal :

WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098     Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098     Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098     Controller finalTime: 1.002
WARNING: The MPC time-horizon is smaller than the MPC starting time.
currentTime: 18.9098     Controller finalTime: 1.002
[ INFO] [1681325171.157292356]:  Write ---> joint ID: [6] ; pos: [0.053199] ; vel: [0.072389] ; fftorque: [2.494649] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.157653967]:  Write ---> joint ID: [4] ; pos: [-0.067456] ; vel: [-0.011383] ; fftorque: [-1.726983] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.157974827]:  Write ---> joint ID: [5] ; pos: [-0.439647] ; vel: [0.052897] ; fftorque: [5.203169] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.158285956]:  Write ---> joint ID: [3] ; pos: [-0.044735] ; vel: [-0.063882] ; fftorque: [-2.650366] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.158593372]:  Write ---> joint ID: [1] ; pos: [0.061044] ; vel: [0.006691] ; fftorque: [-1.416724] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.158897142]:  Write ---> joint ID: [2] ; pos: [0.407973] ; vel: [0.068385] ; fftorque: [5.334076] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.159198226]:  Write ---> joint ID: [12] ; pos: [-0.057478] ; vel: [-0.010046] ; fftorque: [2.832379] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.159496428]:  Write ---> joint ID: [10] ; pos: [-0.068710] ; vel: [-0.002338] ; fftorque: [-1.331165] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.159801292]:  Write ---> joint ID: [11] ; pos: [-0.438601] ; vel: [-0.005741] ; fftorque: [5.563870] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.160105497]:  Write ---> joint ID: [9] ; pos: [0.047299] ; vel: [-0.001570] ; fftorque: [-2.692181] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.160412716]:  Write ---> joint ID: [7] ; pos: [0.065409] ; vel: [0.008342] ; fftorque: [-1.348919] ; kp: [0.000000] ; kd: [3.000000]
[ INFO] [1681325171.160716182]:  Write ---> joint ID: [8] ; pos: [0.441709] ; vel: [0.002359] ; fftorque: [5.895403] ; kp: [0.000000] ; kd: [3.000000]
[ WARN] [1681325171.161053005]: Cycle time exceeded error threshold by: 0.178164s, cycle time: 0.182163620s, threshold: 0.002s
elpimous commented 1 year ago

I seems that the robot can't standup, but i see legs movments, at low torque. In rviz, i can see the 5 odom points move on one side, but not going down (anything like a standup try) https://youtu.be/X3EP6-2X67c

elpimous commented 1 year ago

small UP, friends ?

elpimous commented 1 year ago

doesnt encounter this error anymore, after reinstalled !