Search found 8724 matches

by coppelia
23 Jul 2021, 19:06
Forum: General questions
Topic: Dynamic color change in distance calculation
Replies: 10
Views: 2463

Re: Dynamic color change in distance calculation

Try with sim.addDrawingObject(sim.drawing_triangles|sim.drawing_12percenttransparency,...) or something similar. You can't set the precise transparency value, just approximative. You can however combine all 3 sim.drawing_12percenttransparency , sim.drawing_25percenttransparency and sim.drawing_50per...
by coppelia
23 Jul 2021, 16:49
Forum: Bug reports
Topic: Crash on launch with CoppeliaSim 4.2.rev5 on Ubuntu 20.04
Replies: 5
Views: 3338

Re: Crash on launch with CoppeliaSim 4.2.rev5 on Ubuntu 20.04

Oops, I didn't notice you were talking about the Pro version. Indeed, it was faulty under certain circomstances, and was replaced right now, please try to download the new version.

Cheers
by coppelia
23 Jul 2021, 09:07
Forum: General questions
Topic: time interval of data recording
Replies: 5
Views: 2298

Re: time interval of data recording

A threaded script will automatically yield, after about 2ms. So if you have a threaded script with an infinite loop, CoppeliaSim will not block. Try following: Infinite loop, not blocking (yielding after about 2ms by default): function sysCall_init() corout=coroutine.create(coroutineMain) end functi...
by coppelia
23 Jul 2021, 08:41
Forum: Bug reports
Topic: Crash on launch with CoppeliaSim 4.2.rev5 on Ubuntu 20.04
Replies: 5
Views: 3338

Re: Crash on launch with CoppeliaSim 4.2.rev5 on Ubuntu 20.04

I can't explain that error. I tested it on a fresh install, but can't reproduce that...
Are you sure you don't have anything special or specific on your system? It really appears as a mismatch between libcoppeliaSimLib.so and coppeliaSim executable.

Cheers
by coppelia
22 Jul 2021, 12:29
Forum: General questions
Topic: set model to a new position but it's orientation isn't correct
Replies: 5
Views: 948

Re: set model to a new position but it's orientation isn't correct

Keep in mind that API functions expect angles in radians, not degrees. So do this instead:

Code: Select all

sim.setObjectOrientation(lineTracer,-1,{-math.pi/2,0,-math.pi/2})
Cheers
by coppelia
22 Jul 2021, 09:43
Forum: General questions
Topic: Dynamic color change in distance calculation
Replies: 10
Views: 2463

Re: Dynamic color change in distance calculation

Well,

you'll have to do some trigonometry and coordinate transformations! You'll have to start with your two points, and figure out where your other 6 points should be, in order to obtain a cuboid.

Cheers
by coppelia
22 Jul 2021, 09:39
Forum: General questions
Topic: Motion planning of a three fingered gripper
Replies: 1
Views: 469

Re: Motion planning of a three fingered gripper

Hello,

please show us how your gripper looks like...

Cheers
by coppelia
22 Jul 2021, 09:37
Forum: General questions
Topic: Change robot speed using Proximity sensor
Replies: 2
Views: 808

Re: Change robot speed using Proximity sensor

Hello,

that simply means that SafetyZoneresult is nil. Which in turn means that sysCall_sensing wasn't called yet, or that sim.readProximitySensor returned nil, which can't be from the documentation.

Cheers
by coppelia
22 Jul 2021, 09:31
Forum: General questions
Topic: set model to a new position but it's orientation isn't correct
Replies: 5
Views: 948

Re: set model to a new position but it's orientation isn't correct

Hello, well, your code tries to set the new position/orientation of the model itself to something different from its initial state, i.e. your code contains: if handle==lineTracer then -- Set the model's new position/orientation: sim.setObjectPosition(lineTracer,-1,{X[b+1][2],0,0.0275}) sim.setObject...
by coppelia
22 Jul 2021, 09:24
Forum: General questions
Topic: Gripper Control Method
Replies: 1
Views: 871

Re: Gripper Control Method

Hello,

the Robotiq-85 gripper is quite complex, and I wouldn't modify it too much. It uses force/torque control, together with a max. opening/closing velocity. Check the attached child script for details.

Cheers