Search found 1036 matches

by fferri
24 May 2024, 07:39
Forum: General questions
Topic: drawing rectangle or circle on image obtained from vision sensor
Replies: 3
Views: 57

Re: drawing rectangle or circle on image obtained from vision sensor

Yes, via negative thickness param in some frunctions, or specific filling functions of simIM.
by fferri
24 May 2024, 07:37
Forum: General questions
Topic: using OMPL library for path planning of PKM robot 'irb360'
Replies: 5
Views: 101

Re: using OMPL library for path planning of PKM robot 'irb360'

simOMPL.writeState is a general purpose function that writes a state for a compound state space. For every component type of the state space it will use the correct CoppeliaSim API, namely: simOMPL.StateSpaceType.position2d => sim.setObjectPosition (state space is R²) simOMPL.StateSpaceType.pose2d =...
by fferri
24 May 2024, 07:25
Forum: General questions
Topic: Ding Dong: Friction simulation in CoppeliaSim is Possible?
Replies: 3
Views: 578

Re: Ding Dong: Friction simulation in CoppeliaSim is Possible?

The resulting friction coefficient is computed by combining the friction coefficients of the two bodies involved in the collision. The combined friction coefficient is calculated using a method that ensures a reasonable value for the interaction between the surfaces.
by fferri
23 May 2024, 13:23
Forum: General questions
Topic: CoppeliaSim embedding into web pages
Replies: 1
Views: 33

Re: CoppeliaSim embedding into web pages

CoppeliaSim can record a simulation in glTF format (a format for 3D content exchange that embeds meshes, textures and animations), see Modules > Exporters > GLTF animation exporter....

Then you can use a glTF player on your webpage to play back the simulation.
by fferri
23 May 2024, 11:34
Forum: General questions
Topic: drawing rectangle or circle on image obtained from vision sensor
Replies: 3
Views: 57

Re: drawing rectangle or circle on image obtained from vision sensor

Scene vision/imageProcessingDemo1-lua.ttt does some simple drawing onto the vision sensor image, using the simIM plugin.
by fferri
22 May 2024, 05:29
Forum: General questions
Topic: using OMPL library for path planning of PKM robot 'irb360'
Replies: 5
Views: 101

Re: using OMPL library for path planning of PKM robot 'irb360'

I'm not sure that I have understood it correctly. Do you mean that there is a chance the IK might not have been calculated during the OMPL compute, and that is why I'm getting a straight line between the initial and target positions? Correct, OMPL doesn't do any IK by default. The default state val...
by fferri
20 May 2024, 12:59
Forum: General questions
Topic: using OMPL library for path planning of PKM robot 'irb360'
Replies: 5
Views: 101

Re: using OMPL library for path planning of PKM robot 'irb360'

Hi, OMPL has no notion of the robot kinematics, besides knowing a set of joints. For a robot such as IRB360, since it is a parallel kinematics structure, it is first important to understand how its kinematics are implemented (there are two modes: FK and IK, see the robot model for details). Then, re...
by fferri
17 May 2024, 13:29
Forum: General questions
Topic: Control of the gripper kuka youbot by matlab
Replies: 3
Views: 1110

Re: Control of the gripper kuka youbot by matlab

Please don't resurrect such old topics. The code referenced in this old topic is not valid anymore, it contains deprecated functions and features, and it does not reflect the current youBot gripper script anymore. Since the behavior of grippers is not standardized yet, and grippers' scripts can chan...
by fferri
13 May 2024, 08:59
Forum: General questions
Topic: How can I make the Robotiq85 gripper attached to a UR10 robot opening and closing?
Replies: 1
Views: 90

Re: How can I make the Robotiq85 gripper attached to a UR10 robot opening and closing?

From another script, you can call functions openClicked and closeClicked defined in the gripper's script, with:

Code: Select all

local gripperHandle = sim.getObject('/ROBOTIQ85')
local gripperFuncs = sim.getScriptFunctions(sim.getScript(sim.scripttype_childscript, gripperHandle))
gripperFuncs:openClicked()
by fferri
13 May 2024, 08:53
Forum: General questions
Topic: Script Crashing, Trying to rotate robot per orientation
Replies: 1
Views: 105

Re: Script Crashing, Trying to rotate robot per orientation

The problem is that you have a situation like: function sysCall_sensing() while ... do ... end end which can't possibly work, because code in sysCalls must not block. Your code doesn't return until a condition becomes true, which would happens several steps in the future, but simulation time can't p...