You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I believe that the np.zeros(7) should be np.zeros(11). The code started working after I did this. I made a wild guess that all the kinematic/dynamics-related quantities should have the same vector size. Since other vectors were of size 11, I changed the length of the initialized zero array of generalized velocity to 11
The text was updated successfully, but these errors were encountered:
Thank you for pointing this out. It will be fixed in the next push.
Actually the correct vector size should be 10 because GC dimension and GV dimension are different. GC uses quaternion which increases its size by 1
robot.setGeneralizedCoordinate(np.array([0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0]))
robot.setGeneralizedVelocity(np.zeros(7))
robot.setJointDamping(np.array([0, 0, 0, 0, 0, 0, 1, 1, 1, 1]))
Hi, I believe that the np.zeros(7) should be np.zeros(11). The code started working after I did this. I made a wild guess that all the kinematic/dynamics-related quantities should have the same vector size. Since other vectors were of size 11, I changed the length of the initialized zero array of generalized velocity to 11
The text was updated successfully, but these errors were encountered: