Search found 25 matches

by johnrowlay
19 Mar 2019, 19:30
Forum: General questions
Topic: Setting an object's orientation sometimes results in a different actual orientation
Replies: 1
Views: 226

Setting an object's orientation sometimes results in a different actual orientation

I created a new scene, inserted just a single dummy, and then experimented with setting the orientation of that dummy using the Python remote API. What I am finding is that the new orientation that V-Rep tells me the object is at, is not always the orientation that I have set. For example, if I run:...
by johnrowlay
13 Mar 2019, 17:20
Forum: General questions
Topic: sim.generateIkPath always returns NULL
Replies: 2
Views: 309

Re: sim.generateIkPath always returns NULL

Hello,

Yes, that was the reason.

Thank you very much!
by johnrowlay
13 Mar 2019, 14:01
Forum: General questions
Topic: sim.generateIkPath always returns NULL
Replies: 2
Views: 309

sim.generateIkPath always returns NULL

I am having trouble getting the "sim.generateIkPath" function to work, and it is always returning NULL for me (i.e. no path could be computed). I have created a very simple scene with a Sawyer robot, and introduced a tip-target setup with an IK calculation module. The target is 10cm away from the ti...
by johnrowlay
26 Feb 2019, 19:51
Forum: General questions
Topic: Joint torque seems insufficient
Replies: 1
Views: 329

Joint torque seems insufficient

I have loaded the Sawyer robot arm into a new scene, set all joints to force-torque mode, with very large maximum torques (10^11) and "lock motor when target velocity is zero" checked. If I start running the simulation, as expected the robot does not move. If I then set the "Target velocity" to 1 de...
by johnrowlay
13 Feb 2019, 16:24
Forum: General questions
Topic: sim.computeJacobian() is returning -1
Replies: 1
Views: 322

sim.computeJacobian() is returning -1

I am having trouble retrieving the Jacobian using the regular API. So, I have created a new scene, and then imported the Sawyer robot. Then, I created an IK group using the calculation modules, with a tip and a target, and explicit handling not checked. Then, I added a child script for the Sawyer ro...
by johnrowlay
11 Feb 2019, 20:22
Forum: General questions
Topic: Reading an object's position using the Python remote API
Replies: 1
Views: 454

Reading an object's position using the Python remote API

I have noticed some strange behaviour when trying to get and set object positions using the Python remote API. As an example, I have created a test scene, which contains a cuboid and a sphere, and nothing else. Both the cuboid and sphere are static and non-respondable. The cuboid is at position [0.1...
by johnrowlay
16 Nov 2018, 14:04
Forum: General questions
Topic: Disabling the "V-REP crashed in last session" message
Replies: 1
Views: 395

Disabling the "V-REP crashed in last session" message

I am running a V-REP server using the remote API in Python. Sometimes, if my code crashes during simulation and I do not shut down the server correctly, when I then launch a V-REP server on the same port, I receive the following error message: https://i.imgur.com/DOa73I4.png However, the answer in m...
by johnrowlay
02 Nov 2018, 22:24
Forum: General questions
Topic: Return error with simxCallScriptFunction()
Replies: 1
Views: 1296

Return error with simxCallScriptFunction()

Hello, I have a V-Rep scene containing a robot, and in the scene hierarchy I also have a dummy named "remoteApi". This dummy has a non-threaded child script attached, and in this script is the following function: testFunction=function(inInts,inFloats,inStrings,inBuffer) print('Running test function'...
by johnrowlay
16 Oct 2018, 19:19
Forum: General questions
Topic: Running multiple servers with multiple processes
Replies: 1
Views: 895

Running multiple servers with multiple processes

I want to run multiple simulation servers in parallel, with each running on its own process. To do this, I am using the "Process" class from the Python "multiprocessing" module. Each "Process" object calls a function, which itself then launches a V-Rep server on a new port. Here is my main outer loo...
by johnrowlay
19 Sep 2018, 21:56
Forum: General questions
Topic: Connecting with the Remote API
Replies: 1
Views: 620

Connecting with the Remote API

I am trying to understand how the Remote API (Python) works, in terms of establishing a connection between a client and server, and the meaning of the ports. So in my example, I have an instance of V-Rep running (by calling vrep.sh), and I have loaded a scene of mine. This scene has a script which I...