Search found 6952 matches

by coppelia
12 Feb 2019, 10:45
Forum: General questions
Topic: Reading an object's position using the Python remote API
Replies: 1
Views: 141

Re: Reading an object's position using the Python remote API

Hello,

you cannot get data from V-REP with the operation mode vrep.simx_opmode_oneshot! That mode is meant to be used to send data to V-REP (or execute a command on the V-REP side without waiting for a reply from V-REP).
Make sure to carefully read this page.

Cheers
by coppelia
12 Feb 2019, 10:41
Forum: General questions
Topic: gripper finger force not balanced
Replies: 1
Views: 98

Re: gripper finger force not balanced

Hello, this is typical, since the two joints exert a same but opposite force. This can be though similarly as trying to carry a small cube with two fingers from different hands/arms: the operation will not be as stable as carrying the box with two fingers of the same hand. In order to avoid this, yo...
by coppelia
12 Feb 2019, 10:32
Forum: General questions
Topic: 2-axis joystick simulation: 2 joints and a dummy link
Replies: 3
Views: 562

Re: 2-axis joystick simulation: 2 joints and a dummy link

Yes, this is in conflict with design consideration 7, indeed. Unless you use the Vortex engine, which is much more tolerant in that aspect.
You can always try, but if you notice a wobbly or soft behaviour in the joint construction, this means that you have gone too far..

Cheers
by coppelia
12 Feb 2019, 10:08
Forum: General questions
Topic: ways to communicate robots controlled by remote API
Replies: 2
Views: 199

Re: ways to communicate robots controlled by remote API

Hello,

maybe the best and easiest would be to simply use simxCallScriptFunction: using that function, you can call a script function, that itself can call various local API function (i.e. within V-REP).
You can find an example in programming/remoteApiBindings/lib/complexCommandTest.cpp

Cheers
by coppelia
12 Feb 2019, 09:37
Forum: General questions
Topic: Using LIDAR sensor with remoteAPI
Replies: 3
Views: 270

Re: Using LIDAR sensor with remoteAPI

you will still have to adjust the script a little bit, e.g.:

Code: Select all

function sysCall_sensing()
    data=simVision.handleVelodyneHDL64E(h,sim.getSimulationTimeStep())
    packedData=sim.packFloatTable(data)
    sim.setStringSignal("measuredDataAtThisTime",packedData)
end
Cheers
by coppelia
12 Feb 2019, 09:32
Forum: General questions
Topic: Ant robot resetting to initial state
Replies: 1
Views: 133

Re: Ant robot resetting to initial state

Hello, what do you mean with but failed ? Normally you can load a model also during simulation. The only thing is that if you want to reposition a dynamically enabled model, you should do it directly after loading the model. In a non-threaded child script this is trivial. In a threaded child script ...
by coppelia
12 Feb 2019, 09:24
Forum: General questions
Topic: Inverse kinematics with Vortex and Newton
Replies: 1
Views: 172

Re: Inverse kinematics with Vortex and Newton

Hello, I am not sure what is happening with the Vortex engine... this does not look right. Are you sure that there are no internal collisions, or something similar? What happens if you adjust the Upper velocity limit up or down? And if you adjust the joint max. step size ? Or if you use a damped res...
by coppelia
12 Feb 2019, 09:17
Forum: General questions
Topic: Graph set into radians per second
Replies: 1
Views: 126

Re: Graph set into radians per second

Hello,

you unfortunately cannot change the unit text of the curve, but you can scale the curve down to display a curve in radians, by using the Data transformations section (e.g. Value = Raw x 0.0175 + 0.0)

Cheers
by coppelia
06 Feb 2019, 09:23
Forum: General questions
Topic: Object Lagging behind parent during simulation
Replies: 2
Views: 220

Re: Object Lagging behind parent during simulation

Hello, this is perfectly normal, depending on the physics engine you use: your robot arm probably moves statically (i.e. is not dynamically enabled or simulated) but your gripper not (the gripper is dynamically enabled and simulated). So in case of large velocity, constraints start to break apart (a...
by coppelia
06 Feb 2019, 09:18
Forum: General questions
Topic: Using LIDAR sensor with remoteAPI
Replies: 3
Views: 270

Re: Using LIDAR sensor with remoteAPI

Hello Yuval, you have several ways you can share the LIDAR data with your remote API client. The simplest is probably to set a string signal inside of the child script, that contains the packed data, e.g., in each simulation pass: data=sim.packFloatTable(measuredData) sim.setStringSignal("measuredDa...