Closed manumerous closed 2 years ago
Hi Manuel, The joint1 and joint2 correspond to the two joints on the kinematic tree which are in contact. For example, if we put the hands together in a "Namaste" sign, that would mean joint 1 corresponds to left hand joint, and joint 2 corresponds to the right hand joint.
The origin corresponds to the joint 0 in the multibody tree. Since you are making a contact with the ground, which is fixed w.r.t the origin, the joint2_id in your case would be 0, and joint1_id would be the ankle/foot joint
Hi Rohan,
I have not thought about the possibility of contacts between two joints of the robot. it makes a lot of sense now. Thank you very much for the great response!
Hi
I would like to use the new impulse-dynamics in the pinocchio3-preview branch for the foot impact of a biped and I therefore need to use the new
RigidConstraintModelTpl
andRigidConstraintDataTpl
in pinocchio/algorithm/contact-info.hppI was a bit confused by the required inputs of the RigidConstraintModelTpl constructor and I am not sure what
joint1
andjoint2
should represent and did not find any documentation on the topic. I have a point contact model and therefore only a single joint in contact.Should I therefore use the following constructor?
If that is the case, why is there an option to specify two joints for the
CONTACT_3D
point foot option?Any help regarding this would be much appreciated. Best regards, Manuel