Search found 7020 matches

by coppelia
22 Mar 2019, 15:38
Forum: Bug reports
Topic: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries
Replies: 9
Views: 290

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Thanks for that example. Quick question: is it still crashing if simply connecting /disconnecting (maybe with some waiting time in-between), or is the dummy creation and/or simulation start/stop relevant?

Cheers
by coppelia
22 Mar 2019, 15:04
Forum: Bug reports
Topic: Convex decomposition C++
Replies: 2
Views: 103

Re: Convex decomposition C++

Just noticed a difference how you call sim.importShape and simImportShape: the arguments are not the same. COuld that be the reason?

Cheers
by coppelia
22 Mar 2019, 14:34
Forum: Bug reports
Topic: Depth Sensor Seeing Through Walls
Replies: 4
Views: 1034

Re: Depth Sensor Seeing Through Walls

I wouldn't set the clipping plane at 0, otherwise you will lose quite a lot of precision in your depth buffer. Simply set it small enough. As a rule of thumb, use a visible area (i.e. far-near clipping plane) as small as possible, for the highest depth map precision.

Cheers
by coppelia
22 Mar 2019, 14:30
Forum: Bug reports
Topic: Convex decomposition C++
Replies: 2
Views: 103

Re: Convex decomposition C++

Thanks for reporting this. Does this happen with any shape?

As a workaround, you can always create an add-on script, that contains a function with the Lua-version of your code. Then simply call that add-on function with simCallScriptFunctionEx. Make sure to use V-REP V3.6.1 rev1 or older.

Cheers
by coppelia
22 Mar 2019, 14:18
Forum: General questions
Topic: Difference between simx_opmode_oneshot and simx_opmode_buffer
Replies: 1
Views: 63

Re: Difference between simx_opmode_oneshot and simx_opmode_buffer

Hello, simx_opmode_buffer should be used exclusively on remote API commands that are streaming data to the client (i.e. started initially with simx_opmode_streaming ), and that retrieve data from V-REP (i.e. receive if available, non blocking). simx_opmode_oneshot should be used exclusively on remot...
by coppelia
22 Mar 2019, 14:09
Forum: General questions
Topic: Position object
Replies: 1
Views: 63

Re: Position object

Hello, if your construction is dynamic, then you can set the motor joint to force/torque mode, enable the motor, and enable the position control. Then adjust the upper velocity limit . Programmatically, you can then have your joint move to a certain position with sim.setJointTargetPosition . Cheers
by coppelia
22 Mar 2019, 14:05
Forum: General questions
Topic: Belt transmission
Replies: 9
Views: 259

Re: Belt transmission

This is not the dynamic way. This way is only used with passive joints, or joints involved in inverse kinematics (unidirectional dependency, passive). But you want the dynamic way, where the two joints are dynamically enabled and dependent on each other (bidirectional dependency, dynamic). For that,...
by coppelia
22 Mar 2019, 14:01
Forum: General questions
Topic: Move an object
Replies: 3
Views: 147

Re: Move an object

In V-REP, you can't have following: shape --> dynamicallyEnabledJoint1 --> dynamicallyEnabledJoint2 --> shape but you can have following: shape --> dynamicallyEnabledJoint1 --> auxiliaryShape --> dynamicallyEnabledJoint2 --> shape see this page for details. So the tricky thing is to correctly adjust...
by coppelia
22 Mar 2019, 13:54
Forum: General questions
Topic: Using sim.moveToPosition via RemoteAPI
Replies: 2
Views: 82

Re: Using sim.moveToPosition via RemoteAPI

Hello, the reason is that when calling a script function from an external location to that script, the simulator will wait until the function finished executing. What you should do is call a script function from your remote API client, that will simply set a variable, e.g. movementData . Then, in th...
by coppelia
22 Mar 2019, 13:48
Forum: General questions
Topic: Update DH Parameters : UR10
Replies: 3
Views: 184

Re: Update DH Parameters : UR10

You can build this by hand, or programmatically create and position/orient joints, and create the hierarchy. You can use functions such as sim.createJoint , sim.setObjectPosition , sim.setObjectOrientation , sim.setObjectParent , sim.setJointPosition , etc. Doing this by hand, you would do something...