Search found 11 matches
- 08 Aug 2016, 18:58
- Forum: Feature requests
- Topic: Remotely call threaded script functions
- Replies: 8
- Views: 7422
Re: Remotely call threaded script functions
Hi Admin, Thank you very much for your reply. I tried what you said "to execute additional function calls in the remote API client", but got the same "Error: [string -unknown location]:?: Call failed. (simCallScriptFunctionEx on moveBody@BodyDynamics)". I did get any data to conduct tests. And when ...
- 04 Aug 2016, 18:57
- Forum: Feature requests
- Topic: Remotely call threaded script functions
- Replies: 8
- Views: 7422
Remotely call threaded script functions
Hi, I coded a climbing gait of a quadruped robot using IK chain and simRMLMoveToPosition in a threaded script. I am trying to remotely call the created climbing gait as a function from MATLAB. I understand simxCallScriptFunction can only be used to Call non-threaded scripts, and I found simSetThread...
- 26 Apr 2016, 19:37
- Forum: General questions
- Topic: MATLAB-VREP Hokuyo Communication
- Replies: 17
- Views: 8631
Re: MATLAB-VREP Hokuyo Communication
Hello, I strongly suggest you use the simxCallScriptFunction function, which is much less confusing that using data streams. IF you don't do thing correctly with data streams, you can lose data in-between. Also, you don't show us how you print the COM value on the Matlab side. Cheers Hi Admin, Than...
- 26 Apr 2016, 03:09
- Forum: General questions
- Topic: MATLAB-VREP Hokuyo Communication
- Replies: 17
- Views: 8631
Re: MATLAB-VREP Hokuyo Communication
Hi Admin, I am trying to read all the positon data of the Center of mass (COM) of my system from vrep to MATALB. I read through all your posts in this question, and followed the solution you gave in your first post trying to do this as follows: In vrep non-threaded side: local c={centerOfMassOfModel...
- 11 Dec 2015, 04:08
- Forum: General questions
- Topic: Yawing Bipedal Robot
- Replies: 5
- Views: 3086
Re: Yawing Bipedal Robot
Thank you for your quick reply. This is important to understand 'ant hexapod', then improve the codes by using 'simRMLMoveToPosition' instead.
- 10 Dec 2015, 20:06
- Forum: General questions
- Topic: Yawing Bipedal Robot
- Replies: 5
- Views: 3086
Re: Yawing Bipedal Robot
Hi Admin, I was wondering can you post some explanation of "simMoveToPosition" since there is nothing but a 'DEPRECATED'. Similar to the Lua parameters details for "number result,table_3 newPos,table_4 newQuaternion,table_4 newVel,table_4 newAccel,number timeLeft=simRMLMoveToPosition(number objectHa...
- 07 Dec 2015, 20:15
- Forum: General questions
- Topic: Center of Mass Visualizer data read
- Replies: 3
- Views: 2169
Re: Center of Mass Visualizer data read
Hi Jay, the simplest would be to pack the information needed in a string signal, like for instance: local data={1.23,3.45,5.67} local packed=simPackFloats(data) simSetStringSignal("myData",packed) On Matlab side, you would then use simxGetStringSignal and simxUnpackFloats . Cheers Hi Admin, Thank y...
- 02 Dec 2015, 04:34
- Forum: General questions
- Topic: Center of Mass Visualizer data read
- Replies: 3
- Views: 2169
Center of Mass Visualizer data read
Hi all, I am trying to read the position of the center of mass of my vehicle to MATLAB. I realized that in 'centerOfMassVisulizer' customization script if (totalMass~=0) then local centerOfMassOfModel={miri[1]/totalMass,miri[2]/totalMass,miri[3]/totalMass} local c={centerOfMassOfModel[1],centerOfMas...
- 11 Nov 2015, 21:20
- Forum: General questions
- Topic: Set internal friction of joints
- Replies: 5
- Views: 3141
Re: Set internal friction of joints
Hi Jay, for 1, if you want to limit the max. velocity of your joints, simply set its target velocity to what is needed. You can also do this programmatically with simSetJointTargetVelocity . About question 2: this will depend on the used physics engine. With Bullet/ODE/Newton, you cannot do this. W...
- 11 Nov 2015, 01:23
- Forum: General questions
- Topic: Set internal friction of joints
- Replies: 5
- Views: 3141
Set internal friction of joints
Hi, I am simulating a tracked vehicle and modeled each track as five rollers. I need to calculate joints energy consumption of the whole system, I did this by the following two methods: 1. Set desired torque to joints by giving a very high desired velocity (999999) first, read joint velocity and act...