Search found 1011 matches

by fferri
15 Apr 2024, 10:09
Forum: General questions
Topic: Get the error: attempt to call a nil value (field 'getobjectMatrix')
Replies: 2
Views: 74

Re: Get the error: attempt to call a nil value (field 'getobjectMatrix')

Lua is a case-sensitive language, and so are API function names.

Refer to Regular API reference.
by fferri
15 Apr 2024, 10:05
Forum: General questions
Topic: How to Import a URDF file
Replies: 5
Views: 129

Re: How to Import a URDF file

Force sensors are used for "Fixed joints".
by fferri
11 Apr 2024, 13:37
Forum: General questions
Topic: Rotate an object from API
Replies: 5
Views: 138

Re: Rotate an object from API

Then you want to specify the frame relative to something else than sim.handle_world.
Simply change that parameter when calling sim.setObjectOrientation
by fferri
11 Apr 2024, 13:36
Forum: Feature requests
Topic: I suggest the Drawing Curve should be reversed when screenshooting.
Replies: 2
Views: 234

Re: I suggest the Drawing Curve should be reversed when screenshooting.

You can replace drawing objects with shapes if you want to have them in 3D output.
by fferri
11 Apr 2024, 13:34
Forum: General questions
Topic: How to Import a URDF file
Replies: 5
Views: 129

Re: How to Import a URDF file

Yes, the URDF importer is very finicky about the resources' paths, and often those need to be adjusted...
by fferri
10 Apr 2024, 16:45
Forum: General questions
Topic: How to Import a URDF file
Replies: 5
Views: 129

Re: How to Import a URDF file

It is really transparent (opacity = 0) or it is in a hidden layer?
by fferri
10 Apr 2024, 09:04
Forum: General questions
Topic: How can I limit the working space of the robot?
Replies: 1
Views: 82

Re: How can I limit the working space of the robot?

There is an option to avoid joint limits in simIK.setGroupFlags: simIK.group_avoidlimits : joint limits are actively avoided A more customizable approach to drive the robot configuration towards "better" poses could be of introducing a secondary task, e.g. to attract the elbow up, without ...
by fferri
10 Apr 2024, 08:56
Forum: General questions
Topic: Rotate an object from API
Replies: 5
Views: 138

Re: Rotate an object from API

eulerAngles = sim.getObjectOrientation(shapeHandle, sim.handle_world) eulerAngles[3] = eulerAngles[3] + amount sim.setObjectOrientation(shapeHandle, eulerAngles, sim.handle_world) Notes: sim.handle_world is the default, so it is not required to specify it; objects rotate around their origin. Arbitr...
by fferri
08 Apr 2024, 10:25
Forum: General questions
Topic: Java ZMQ Remote API
Replies: 14
Views: 250

Re: Java ZMQ Remote API

Make sure to use the latest version of CoppeliaSim. You are using an old version. In the latest version of Example.java there are more examples. About your other question: Object[] is an array of Object which is the superclass of all types, indicating a no better specified type. Object[] is used as ...
by fferri
08 Apr 2024, 09:59
Forum: General questions
Topic: Java ZMQ Remote API
Replies: 14
Views: 250

Re: Java ZMQ Remote API

ConfigCallBack callback = (configs1, vel1, accel1, sim) -> { int i = 0; for (int joint : joints) { if (sim.isDynamicallyEnabled(joint)) { sim.setJointTargetPosition(joint, configs1.get(i)); } else { sim.setJointPosition(joint, configs1.get(i)); } i++; } }; this.getClient().getSim().moveToConfig( -1...