Search found 1029 matches

by fferri
17 May 2024, 13:29
Forum: General questions
Topic: Control of the gripper kuka youbot by matlab
Replies: 3
Views: 1085

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: 67

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: 98

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...
by fferri
10 May 2024, 14:53
Forum: General questions
Topic: Looking for example of random pick and place
Replies: 3
Views: 153

Re: Looking for example of random pick and place

See also scene ur5WithRg2Grasping which is a simpler example of pick and place.
by fferri
09 May 2024, 10:10
Forum: General questions
Topic: When the arm grabs the object, it slips away
Replies: 1
Views: 105

Re: When the arm grabs the object, it slips away

That can happen when grasping objects in a dynamics simulation. You can increase grasping force or you can increase friction of materials. Or if you don't need dynamic grasping, after a completed grasp, you can rigidly attach the object to the gripper (via a force sensor) before moving the arm. See ...
by fferri
09 May 2024, 10:07
Forum: General questions
Topic: Looking for example of random pick and place
Replies: 3
Views: 153

Re: Looking for example of random pick and place

Hi,

demo scene scenes/pickAndPlaceDemo.ttt does that.
by fferri
08 May 2024, 14:22
Forum: General questions
Topic: python API function; joint name ambiguity
Replies: 3
Views: 149

Re: python API function; joint name ambiguity

Remote API: https://manual.coppeliarobotics.com/en/ ... erview.htm

The function to use is sim.getObject (see the example in the above page).
by fferri
08 May 2024, 10:13
Forum: General questions
Topic: Make the robot move along a path
Replies: 6
Views: 617

Re: Make the robot move along a path

mecabot wrote: 07 May 2024, 20:43 Could you please provide a piece of code I can use to use the path information? thanks
https://manual.coppeliarobotics.com/en/paths.htm
by fferri
06 May 2024, 13:13
Forum: General questions
Topic: Make the robot move along a path
Replies: 6
Views: 617

Re: Make the robot move along a path

Simply move the IK target dummy onto the (interpolated) pose returned by sim.getPathInterpolatedConfig. The script of the robot will handle IK, e.g. moving the arm so that IK tip's pose matches IK target's pose (you have to create such script / add IK handling to such script: there's plenty of examp...
by fferri
02 May 2024, 19:46
Forum: General questions
Topic: How can I make an Object Un-Detectable through LUA
Replies: 2
Views: 406

Re: How can I make an Object Un-Detectable through LUA

Object special property value is a bit mask. To set the detectable flag: local oldVal = sim.getObjectSpecialProperty(objectHandle) sim.setObjectSpecialProperty(objectHandle, oldVal | sim.objectspecialproperty_detectable) To clear the detectable flag: local oldVal = sim.getObjectSpecialProperty(objec...