How can I use joint to realize a bend movement ?

Typically: "How do I... ", "How can I... " questions
Post Reply
jianye
Posts: 46
Joined: 16 Oct 2019, 13:58

How can I use joint to realize a bend movement ?

Post by jianye »

hello,

i want to know how can i use the JOINT to realize a bend movement ?

i want build a person model that it can bend forwards about 15 degree and after that it bends back.
I set the joint as the motor and I use the function sim.setJointPosition(), but unfortunately it didn't work.
I have seen the model walking_Bill but i don't know how this function is realized.

Which Function should I also use or do you have a similar model that i can learn from ?

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: How can I use joint to realize a bend movement ?

Post by fferri »

Hello,

if the joint in motor mode you should use sim.setJointTargetPosition rather than sim.setJointPosition.

jianye
Posts: 46
Joined: 16 Oct 2019, 13:58

Re: How can I use joint to realize a bend movement ?

Post by jianye »

hello,

Thank you for your reply.

i set the joint in Inverse kinematics Mode, and i don't how to let joint to form a bend movement.

Can you give me some advice? Or do you have similar model?

Jian

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: How can I use joint to realize a bend movement ?

Post by coppelia »

Hello Jian,

this really depends on what kind of model you have ... is it dynamically enabled? Is it controlled via IK? Or is it a static model where you can instantly adjust joints?

Cheers

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: How can I use joint to realize a bend movement ?

Post by fferri »

Why would you want to manually move a joint in IK mode?

jianye
Posts: 46
Joined: 16 Oct 2019, 13:58

Re: How can I use joint to realize a bend movement ?

Post by jianye »

hello,

i am sorry that i didn't explain my problem clearly.

in fact i want to control joint via IK. I want to accomplish the function like Walking Bill.ttm in Vrep that the body can forwards bend.

thank you

Jian

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: How can I use joint to realize a bend movement ?

Post by fferri »

Walking Bill.ttm moves only by pure forward kinematics, using sim.setObjectPosition and sim.setJointPosition.

Post Reply