Search found 980 matches

by fferri
05 Dec 2022, 14:57
Forum: General questions
Topic: How to make sure the joint has reached the desired angle before the code continues to the next operation?
Replies: 1
Views: 312

Re: How to make sure the joint has reached the desired angle before the code continues to the next operation?

When I add a while loop that waits for the robot to reach the target position (using: delta = sim.getjointpositon()-target_position and a while loop: while(delta<0.01)) I think you need to use while math.abs(delta)<0.01 to be correct. Anyways, if you want to do such busy wait cycle in an embedded s...
by fferri
29 Nov 2022, 14:44
Forum: General questions
Topic: Programme
Replies: 5
Views: 483

Re: Programme

Hi Jeneaux, first, the cube has to be set 'Detectable' in its properties. Then you would use (e.g. in the sensing phase of a child script) sim.readProximitySensor(sensorHandle) and if something is detected (result==1), you would react with some action controlling the conveyor model; have a look at t...
by fferri
29 Nov 2022, 14:11
Forum: General questions
Topic: How can I plugin or add to intel realsens depth camera?
Replies: 1
Views: 251

Re: How can I plugin or add to intel realsens depth camera?

Hi, Yes, depth sensors are supported. There are several example models in the model library. Try components/sensors/Mesa SR4000.ttm or components/sensors/kinect.ttm . When simulation is started, the depth information is shown in a floating view. You can use these as a starting point for making a mod...
by fferri
29 Nov 2022, 11:10
Forum: General questions
Topic: Programme
Replies: 5
Views: 483

Re: Programme

That video is old, and those APIs are deprecated. Nowadays you would use sim.getObject to retrieve object handles. Depending on what you want to do, you can use Path objects, or you can simply generate the path data as sequences of 3D (or 7D for poses) points. Always refer to the manual for the most...
by fferri
25 Nov 2022, 15:36
Forum: Feature requests
Topic: CoppeliaSim for WSL - Windows integration
Replies: 1
Views: 4858

Re: CoppeliaSim for WSL - Windows integration

Sorry, it is not clear what are you actually proposing and what's missing in CoppeliaSim...

Are you suggesting to run CoppeliaSim natively on Windows, and to use ROS 2 under WSL? Or something else?
by fferri
22 Nov 2022, 12:41
Forum: General questions
Topic: Could someone Explain these functions?
Replies: 1
Views: 293

Re: Could someone Explain these functions?

if b==sim.handle_parent then >> What does it mean? if b is parent of what?? Hard to tell with this code out of context. Better to read the docs and understand things top down: from the docs of sim.getObjectPose, sim.getObjectPosition, sim.getObjectOrientation, etc...: relativeToObjectHandle: indica...
by fferri
22 Nov 2022, 12:23
Forum: General questions
Topic: Object Quaternion on ZMQ???
Replies: 1
Views: 273

Re: Object Quaternion on ZMQ???

Starting point for documentation:

ZeroMQ remote API.

You don't need to use the ZeroMQ library. That is a third-party library internally used by ZeroMQ Remote API.
by fferri
22 Nov 2022, 12:18
Forum: General questions
Topic: ZeroMQ for Matlab with OOP error
Replies: 5
Views: 678

Re: ZeroMQ for Matlab with OOP error

I've already answered to you about that: sim.getObject returns only one value. Therefore don't try to assign multiple values to the result of it.

Have also a look at the examples: https://github.com/CoppeliaRobotics/zmq ... ts/matlab/
by fferri
22 Nov 2022, 12:13
Forum: General questions
Topic: What is the exact process of installing ZeroMQ for Matlab?
Replies: 3
Views: 483

Re: What is the exact process of installing ZeroMQ for Matlab?

For using the ZeroMQ Remote API you don't need to manually install any library in MATLAB.

(ZeroMQ is a third party library; the CoppeliaSim ZeroMQ Remote API is a different package, provided by Coppelia Robotics)
by fferri
22 Nov 2022, 12:12
Forum: General questions
Topic: ZeroMQ for Matlab with OOP error
Replies: 5
Views: 678

Re: ZeroMQ for Matlab with OOP error

There are no libraries to manually install for MATLAB.