Search found 40 matches

by jianye
18 Nov 2019, 16:27
Forum: General questions
Topic: how can i change the code below?
Replies: 2
Views: 614

how can i change the code below?

hello,

i read the code from model Walking_Bill.ttm:

Code: Select all

nominalVelocity = sim.getScriptSimulationParameter(sim.handle_self,'walkingSpeed')
i want to know what does 'walkingSpeed' mean and how can I reach the data of walkingSpeed ? Can I write the 'walkingSpeed' by myself and how ?

thanks

Jian
by jianye
18 Nov 2019, 15:47
Forum: General questions
Topic: How can I use joint to realize a bend movement ?
Replies: 6
Views: 888

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

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
by jianye
18 Nov 2019, 14:31
Forum: General questions
Topic: How can I use joint to realize a bend movement ?
Replies: 6
Views: 888

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

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
by jianye
18 Nov 2019, 10:09
Forum: General questions
Topic: How can I use joint to realize a bend movement ?
Replies: 6
Views: 888

How can I use joint to realize a bend movement ?

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...
by jianye
14 Nov 2019, 17:15
Forum: General questions
Topic: How can i use the SimulationTime for calculation ?
Replies: 1
Views: 467

How can i use the SimulationTime for calculation ?

hello, i want to use the SimulationTime for the calculation and i call the Function get.simSimulationTime(). the code as follows: if distance_1 < 0.9 then time_1 = sim.getSimulationTime() print(time_1) end if distance_2 < 0.9 then time_2 = sim.getSimulationTime() print(time_2) end if time_1 - time_2...
by jianye
13 Nov 2019, 20:43
Forum: General questions
Topic: How to use sim.getSimulationTime() and sim.getSimulationTimeStep()
Replies: 1
Views: 1123

How to use sim.getSimulationTime() and sim.getSimulationTimeStep()

hello,

i implement the following code:

Code: Select all

time_1 = sim.getSimulationTime()
step_time = sim.getSimulationTimeStep()
jp=time_1/step_time
and i get the problem: attempt to perform arithmetic on global 'time_1' (a nil value)

i want to know what is the problem`?

Thank you !

Jian
by jianye
13 Nov 2019, 19:59
Forum: General questions
Topic: How to interact with robot through a laserpointer ?
Replies: 3
Views: 968

Re: How to interact with robot through a laserpointer ?

hello, thank you for the reply.(^-^) I have used the code you mentioned. And now i can only use the change of distance to identify that the person go through the Safety Light Curtain. Only in this moment i can let the robot-arm to stop. But when the person entirely get in this area and the light of ...
by jianye
12 Nov 2019, 15:44
Forum: General questions
Topic: How to interact with robot through a laserpointer ?
Replies: 3
Views: 968

How to interact with robot through a laserpointer ?

hello guys, ich have built a Safety Light Curtain modell with laserpointer. And the work situation is described as follows: 1 if the worker walks through the laserpointer, then the robot should stop. 2 And at the same time when the worker in the area of Safety Light Curtain and the light is not inte...
by jianye
27 Oct 2019, 07:56
Forum: General questions
Topic: A question about the difference between simUI.create() and simExtCustomUI_create
Replies: 1
Views: 601

A question about the difference between simUI.create() and simExtCustomUI_create

hey guys,

i'm new about vrep and recently i want to build a resizable object. For the purpose i have seen some tutorials.

I have a question, what is the difference between simUI.create() and simExtCustomUI_create ??

Thanks for the answer.

Jian
by jianye
22 Oct 2019, 10:03
Forum: General questions
Topic: how to make a resizable Object ?
Replies: 1
Views: 1432

how to make a resizable Object ?

Hi guys, I'm new to Vrep and I want to use Vrep to build a resizable light curtain. like this https://4.imimg.com/data4/RU/TC/ANDROID-10886413/product-500x500.jpeg I have already build a Object but I do not have idea to make it resizable(with a ui to resize the height length and width). has anyone a...