Search found 7077 matches

by coppelia
29 Mar 2019, 14:46
Forum: General questions
Topic: how to import mesh (one with obj, mtl and png files) using lua API
Replies: 10
Views: 409

Re: how to import mesh (one with obj, mtl and png files) using lua API

Hmmm, can you send us the incriminating files so that we can try this here?
Please send to this email.

Cheers
by coppelia
28 Mar 2019, 15:51
Forum: General questions
Topic: Forces of an object
Replies: 6
Views: 252

Re: Forces of an object

You can read the force/torque exerted between two objects along/around the joint that links them: sim.getJointForce . If you need to know the other 5 forces between those two objects, then you need to use a force sensor and an auxiliary shape. e.g.: shape1 --> prismaticJoint --> auxiliaryShape --> f...
by coppelia
28 Mar 2019, 15:30
Forum: General questions
Topic: Retrieving data from 2d sensor
Replies: 6
Views: 344

Re: Retrieving data from 2d sensor

you need to make sure that the signal is written on the V-REP side. Also, you have a loop of 20 iterations. During that time, there is maybe not enough time for the streaming command to reach V-REP, and the first data arriving at your client. Did you try the simpleTest.m example? Maybe start with so...
by coppelia
27 Mar 2019, 14:49
Forum: General questions
Topic: Child script name and location
Replies: 1
Views: 114

Re: Child script name and location

Hello, unless I misunderstood something, the solution for you would be to use following in your non-threaded child script: require('pathToMyScriptFile') where pathToMyScriptFile could be /lua/myScript if your script file is /lua/myScript.lua Then you could have: require('/lua/'..sim.getStringParamet...
by coppelia
27 Mar 2019, 14:40
Forum: General questions
Topic: Update DH Parameters : UR10
Replies: 6
Views: 427

Re: Update DH Parameters : UR10

hum... there must be a bug in one of the models...
by coppelia
27 Mar 2019, 14:36
Forum: General questions
Topic: Damping factor
Replies: 1
Views: 118

Re: Damping factor

Hello Antonio, it is not a square value. For the code: if (calculationMethod==sim_ik_damped_least_squares_method) { CMatrix JT(mainMatrix); JT.transpose(); CMatrix DLSJ(doF,eqNumb); CMatrix JJTInv(mainMatrix*JT); CMatrix ID(mainMatrix.rows,mainMatrix.rows); ID.setIdentity(); ID/=1.0f/(dlsFactor*dlsF...
by coppelia
27 Mar 2019, 14:26
Forum: General questions
Topic: Retrieving data from 2d sensor
Replies: 6
Views: 344

Re: Retrieving data from 2d sensor

It's because your function never gets called! After: [err,signal]=vrep.simxGetStringSignal(clientID,'measuredData',vrep.simx_opmode_streaming); err is simx_return_novalue_flag and so if (err==vrep.simx_return_ok) [err,signal]=vrep.simxGetStringSignal(clientID,'measuredData',vrep.simx_opmode_buffer);...
by coppelia
27 Mar 2019, 14:20
Forum: General questions
Topic: CHILD SCRIPT xxx: abort execution
Replies: 1
Views: 93

Re: CHILD SCRIPT xxx: abort execution

Well, you can either press that message to abort execution, or you can set a different time limit for your calculations.

Cheers
by coppelia
27 Mar 2019, 14:19
Forum: General questions
Topic: Difference between simx_opmode_oneshot and simx_opmode_buffer
Replies: 3
Views: 223

Re: Difference between simx_opmode_oneshot and simx_opmode_buffer

You don't need to run the add-on, since the scene itself contains a B0-based remote API server.
There are probably other error messages, happening before, since variable client is set in:

Code: Select all

client=b0RemoteApi('b0RemoteApi_matlabClient','b0RemoteApi');
Cheers