Search found 7396 matches

by coppelia
14 Nov 2019, 09:53
Forum: General questions
Topic: How to use sim.getSimulationTime() and sim.getSimulationTimeStep()
Replies: 1
Views: 37

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

Hello Jian,

this code works fine here... just after calling sim.getSimulationTime(), print the time_1 variable to see what it contains.

Cheers
by coppelia
14 Nov 2019, 09:50
Forum: General questions
Topic: How to interact with robot through a laserpointer ?
Replies: 3
Views: 57

Re: How to interact with robot through a laserpointer ?

You will have to set-up a switch. But that will not be reliable, since counting detections might wrongly assume the person has gone in or come out (maybe turned around in mid-way).

Better would be to have a large sensor for the whole aera.

Cheers
by coppelia
14 Nov 2019, 09:48
Forum: General questions
Topic: collision detection in VREP
Replies: 4
Views: 71

Re: collision detection in VREP

you can find more infos in this paper:

Freese, M., Ozaki, F., Matsuhira, N.: Collision detection, distance calculation and
proximity sensor simulation using oriented bounding box trees. In: 4th International
Conference on Advanced Mechatronics. pp. 13–18. Asahikawa, Japan (October 2004)

Cheers
by coppelia
14 Nov 2019, 09:45
Forum: General questions
Topic: Equivalent of " sim.getIkGroupHandle" for Pthon
Replies: 1
Views: 41

Re: Equivalent of " sim.getIkGroupHandle" for Pthon

Hello,

you will have to call a script function that returns that value for you. Have a look at this page.

Cheers
by coppelia
14 Nov 2019, 09:43
Forum: General questions
Topic: How to change the joint force during Position control (PID)
Replies: 2
Views: 46

Re: How to change the joint force during Position control (PID)

Hello, make sure to carefully read this page , mainly the design considerations. Basically, depending on the used physics engines, you can't use the same masses/inertias as in the real robot. There should be more balanced-out . Typically a situation like: mass10 --> joint --> mass0.1 will be almost ...
by coppelia
14 Nov 2019, 09:37
Forum: General questions
Topic: How to build a cable with robot
Replies: 4
Views: 60

Re: How to build a cable with robot

Hello, you have two ways of creating a cable as in the video: you can do this kinematically, or dynamically. With the dynamic approach, it is similar to a rope. But instead of using spherical joints, use revolute joints that operate in spring-damper mode, otherwise your cable won't have any rigidity...
by coppelia
14 Nov 2019, 09:33
Forum: General questions
Topic: How to keep joints running in max torque
Replies: 1
Views: 40

Re: How to keep joints running in max torque

Hello, you need to tell us in which mode the joints are (motor enabled, controller disabled?) If you impose a force to a joint that has its controller disabled, then it will accelerate applying the full specified force, until the max. velocity has been reached. This can happen fast or slow, dependin...
by coppelia
14 Nov 2019, 09:29
Forum: General questions
Topic: How to get the coordinates in the camera frame?
Replies: 2
Views: 70

Re: How to get the coordinates in the camera frame?

Hello, you can set/get positions/EulerAngles/Matrices in an absolute fashion, but also in a relative fashion (i.e. relative to another object), via following API functions: sim.getObjectPosition / sim.setObjectPosition sim.getObjectOrientation / sim.setObjectOrientation sim.getObjectQuaternion / sim...
by coppelia
13 Nov 2019, 17:07
Forum: General questions
Topic: How to interact with robot through a laserpointer ?
Replies: 3
Views: 57

Re: How to interact with robot through a laserpointer ?

Hello Jian, the simplest would be to modify the existing laser pointer model (I suppose you used the one available in the model library?). In the child script attached to it, in the sensing section, simply focus on the first line: res,dist,pt=sim.handleProximitySensor(sensor) If res>0, then dist is ...
by coppelia
13 Nov 2019, 17:01
Forum: General questions
Topic: sim.setShapecolor,
Replies: 2
Views: 67

Re: sim.setShapecolor,

Have also a look at the demo model Models/robots/mobile/lumibot.ttm that does exactly what you want (but with a color gradient).

Cheers