Closed ppap36 closed 2 months ago
Hi, nice to hear from you. So, the logic behind 9 dof is that pybullet returns states for 9 joints, which are 7 revolute joints and 2 prismatic joints for the gripper. We don't want these prismatic joints to move, so the optimisation should simply return zero torques for these joints (as we are not doing grasping and just want to move the end effector from a point to another point). The reason behind this was I initially don't wanted to modify the code for iLQR everytime we have a new dynamical system and wanted stick to a particular style of code however, there better ways of doing this.
But afaik the code was not working as expected when I last tried which was 4-5 months ago. I haven't been actively working on this currently, due to other commitments and I don't think this the best way to control manipulators as they are fully actuated which I recently got to know. If you are willing to work on this please consider opening a pull request which fixes the current issue. Thanks for reaching out 😊!!
thanks a lot,Bro!!!!!!!
I am considering that whether I can transform your code into the ROS + RVIZ form, I hope I can make it
I have a similar implemention, you can check this out https://github.com/yaswanth1701/MPC-for-Mobile-Robot
I saw you had Comment the code ` #self.initial_acc = self.get_joint_acceleration(mass_matrix,self.initial_torque,self.initial_torque)
And that code is related to the PINOCCHIO.
I wonder why you did not use the PINOCCHIO to calculate the dynamic of the PANDA, but you used the PYBULLET to calculate the dynamic of the PANDA.
I was just trying it out.
OK thanks a lot
Hey Bro! I am glad to know that you updated. Thank you so much!
For you franka_panda program, I have a problem.
Why the dof of the arm is set as 9? I think it should be 7
self.desired_joint_vel = np.zeros(9)
(line 18 of the Franka.py)