Search found 1009 matches

by fferri
11 Apr 2024, 13:37
Forum: General questions
Topic: Rotate an object from API
Replies: 5
Views: 136

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

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

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

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

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...
by fferri
08 Apr 2024, 09:53
Forum: General questions
Topic: Java ZMQ Remote API
Replies: 14
Views: 246

Re: Java ZMQ Remote API

The point is that sim, simT and the result of RemoteAPIClient.getSim() are all the same thing which you are fetching three times.

just wanted to make sure wether you understand the Java ZMQ remote API client interface...
by fferri
08 Apr 2024, 08:19
Forum: General questions
Topic: Java ZMQ Remote API
Replies: 14
Views: 246

Re: Java ZMQ Remote API

lumeqi wrote: 06 Apr 2024, 06:40 RemoteAPIObjects._sim simT = getClient().getSim();
what's that?
lumeqi wrote: 06 Apr 2024, 06:40 if (sim.isDynamicallyEnabled(joint)) {
what's sim here?
lumeqi wrote: 06 Apr 2024, 06:40 this.getClient().getSim().moveToConfig(
same...