Search found 1004 matches

by fferri
05 Apr 2024, 10:23
Forum: General questions
Topic: Java ZMQ Remote API
Replies: 14
Views: 231

Re: Java ZMQ Remote API

If a list is used in Python, in Java that would be List<T>, with T being the type of the elements of the list.

There are a couple of examples in zmqRemoteApi/clients/java/src/main/java.
by fferri
03 Apr 2024, 10:01
Forum: General questions
Topic: How to detect if a dummy is inside a cube?
Replies: 1
Views: 80

Re: How to detect if a dummy is inside a cube?

Not sure if that's the intended behavior, as dummies have a "Collidable" flag, but that doesn't seem to affect sim.checkCollision which always returns 0. You have two options, depending on how you want to treat a dummy. If you want to treat the dummy as a point in space, you can simply che...
by fferri
02 Apr 2024, 08:41
Forum: General questions
Topic: An error when using simIK.findConfig
Replies: 2
Views: 76

Re: An error when using simIK.findConfig

I encountered the following error: “in sim.genericFunctionHandler: Found invalid joint handle.” The IK plugin creates a copy of the simulated environment, so you will have the "sim" world, and the "IK" world which uses a different set of handles. Most of the simIK functions use ...
by fferri
20 Mar 2024, 23:52
Forum: General questions
Topic: Coppelia OMPL plugin help
Replies: 1
Views: 68

Re: Coppelia OMPL plugin help

Yes it is possible.

Start and goal states are specified with simOMPL.setStartState and simOMPL.setGoalStates or related functions.

OMPL plugin is shipped with CoppeliaSim, file is called libsimOMPL.so/libsimOMPL.dylib/simOMPL.dll
by fferri
20 Mar 2024, 23:04
Forum: General questions
Topic: 3D printer nozzle simulation
Replies: 2
Views: 78

Re: 3D printer nozzle simulation

simply output more spheres :)

ideally you should output at least 1 sphere every unit of distance equal to sphere's radius... even more to get a more uniform look.

drawing objects are the fastest way if you don't need dynamics.
by fferri
20 Mar 2024, 23:02
Forum: General questions
Topic: getting the joint force as a float or integer
Replies: 5
Views: 112

Re: getting the joint force as a float or integer

sim.getJointForce returns a float already.

Perhaps you have some error in your code.
by fferri
20 Mar 2024, 23:01
Forum: General questions
Topic: ObjectTracking bounding box
Replies: 1
Views: 62

Re: ObjectTracking bounding box

In the ObjectTracking example in coppeliasim, the sensor script generates a bounding box around the identified object. How do I make the bounding box into a circle/ellipse? yes, change: cv.rectangle(maskdbg, (x, y), (x+w, y+h), (0, 255, 0), 2) to some different drawing instruction.
by fferri
20 Mar 2024, 22:56
Forum: General questions
Topic: How to put the motion data and implement dynamically
Replies: 2
Views: 70

Re: How to put the motion data and implement dynamically

If you know the whole joint trajectory in advance you can pre-compute perfect velocity acceleration etc. The problem of estimating velocity is so only if you want to do it in realtime (i.e. without knowing future values) then you can only estimate left derivative which is always "late" wit...
by fferri
20 Mar 2024, 21:59
Forum: General questions
Topic: ROS 2 plugin is not loading on start up
Replies: 2
Views: 88

Re: ROS 2 plugin is not loading on start up

That's normal.
Plugins are not loaded on startup anymore (probably since V4.5.1). Instead, are loaded on demand, by loadPlugin() or by lua modules (e.g. typically, simFoo.lua will loadPlugin('simFoo') if "Foo" is a plugin).