Inverse Kinematic with fixed joint
Show older comments
Hey Guys,
I want to do the inverse Kinematics for my 6DOF-Robot. So far it works, but how can i set a revolute joint fixed for 8degrees for the inverse calculation? I don't want that the ik is using this joint. It just should stay at 8°.
Do I have to use the generalizedinversekinematics to set these constraints, or is there some other fix?
Thanks a lot, best greets from Germany!
Marius
My Code for Joint1 wich should stay in the ik calculation at 8. With the positionlimits of [8,8] brings me an error.
link1 = robotics.RigidBody('L1');
jnt1 = robotics.Joint('incline','revolute');
jnt1.PositionLimits = deg2rad( [-8, 8]);
setFixedTransform(jnt1, [eye(3),[0;0;0];[0 0 0 1]]);
jnt1.JointAxis = [0 1 0];
link1.Joint = jnt1;
addBody(loader, link1, 'base');
5 Comments
Sara Boznik
on 14 Aug 2020
Maybe you can use
while jnt1.PositionLimits <8
and so you stop it.
Marius Wesolowski
on 17 Aug 2020
Sara Boznik
on 17 Aug 2020
So you want also 8?
Then just write
while jnt1.PositionLimits <=8
Because while takes so long as conndition is complished.
Sara Boznik
on 17 Aug 2020
oh now i see, you need only for 8, then delete <
Marius Wesolowski
on 17 Aug 2020
Answers (0)
Categories
Find more on Assembly in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!