Search found 13 matches

by mohammadhosseink
25 Apr 2024, 09:09
Forum: General questions
Topic: Vision sensor object masks
Replies: 4
Views: 106

Re: Vision sensor object masks

The second solution is great. thanks. Also, how can I know which color code (RGB) is assigned to which object handle? I need this to find the mask of the object.
by mohammadhosseink
21 Apr 2024, 11:02
Forum: General questions
Topic: Vision sensor object masks
Replies: 4
Views: 106

Vision sensor object masks

Hello, Does Coppeliasim provide any method to get the mask of a specific shape in a vision sensor? Basically, the objective would be to retrieve the pixels in a vision sensor that are associated with a particular object, i.e. where the object is present in the pixel coordinate of the vision sensor. ...
by mohammadhosseink
21 Apr 2024, 09:18
Forum: General questions
Topic: Rotate an object from API
Replies: 5
Views: 149

Re: Rotate an object from API

fferri wrote: 11 Apr 2024, 13:37 Then you want to specify the frame relative to something else than sim.handle_world.
Simply change that parameter when calling sim.setObjectOrientation
Thanks fferri! I didn't know it was possible to set orientation relative to the object's handle itself.
by mohammadhosseink
11 Apr 2024, 11:26
Forum: General questions
Topic: Rotate an object from API
Replies: 5
Views: 149

Re: Rotate an object from API

Thank you. I am familiar with sim.SetObjectOrientation functionality. However, the alpha, beta, omega values that you wish to pass to the function do not work as you defined it, since the object's frame is oriented relative to the world frame, and it's not a general answer to this problem. However, ...
by mohammadhosseink
09 Apr 2024, 18:06
Forum: General questions
Topic: Rotate an object from API
Replies: 5
Views: 149

Rotate an object from API

Hello,

I want to rotate a shape (a mesh) from API (Zmq), just like the option provided by the Rotation tab in the Orientation dialogue in Coppeliasim. So I want to simply rotate the object around the z-axis for some value ( z-axis of world frame, but not around the world as the center ).

Cheers,
by mohammadhosseink
23 Jan 2023, 00:07
Forum: General questions
Topic: Fixing gripper movement
Replies: 1
Views: 461

Fixing gripper movement

Hello Coppelia, I am using ROBOTIQ-85 to do a grasping task. When I close the gripper, the fingers move forward while getting closer to each other. I don't want to have this forward movement and I want the fingers to close without this. I believe there should be an easy way to fix this dynamically b...
by mohammadhosseink
03 Dec 2022, 19:23
Forum: General questions
Topic: relationship of perspective and orthogonal sensors
Replies: 4
Views: 685

Re: relationship of perspective and orthogonal sensors

Hello Coppeliasim,

I'm sorry for the inconvenience but I really can't understand the d, xAngle, and yAngle parameters in the answer you provided for me. Could you please explain them?

Thanks
by mohammadhosseink
18 Nov 2022, 12:19
Forum: General questions
Topic: gripper and a wall
Replies: 1
Views: 212

Re: gripper and a wall

Fixed it. I'm writing here for other people visiting this page.

Seemingle the dynamical properties of an object is associated with its bounding box, not the visible part. So I had to set the bounding box dimensions.
by mohammadhosseink
18 Nov 2022, 12:13
Forum: General questions
Topic: relationship of perspective and orthogonal sensors
Replies: 4
Views: 685

Re: relationship of perspective and orthogonal sensors

I see. So this is it right?

Code: Select all

coord[1]=d*math.tan(xAngle*0.5)*(0.5-(x/(resX-1)))/0.5
coord[2]=d*math.tan(yAngle*0.5)*((y/(resY-1))-0.5)/0.5
could you please elaborate on parameters

Code: Select all

xAngle, yAngle, resX, resY
?
thanks
by mohammadhosseink
18 Nov 2022, 09:24
Forum: General questions
Topic: gripper and a wall
Replies: 1
Views: 212

gripper and a wall

Hello,

A gripper is supposed to grip a wall, but it seems like something is restricting it from completely doing so, and it stops midway and I can't figure out what it is. Please see the picture below :
https://drive.google.com/file/d/1LEOnPE ... share_link

Thanks