Page 1 of 1

Vision sensor does not detect mujoco composites

Posted: 26 Sep 2022, 16:56
by jcolanz
Hello,
I have been testing the new functionalities of the Mujoco engine in Coppelia v4.4. I have created a 2D grid composite and I want to capture images of it with a vision sensor. What would be the best way to achieve this?, in the examples the composites are visible by adding drawing objects, but these are not renderable for the vision sensor. Other objects in the simulation (not Mujoco composites) are visible without any problem.
Thank you in advance.
Best regards.

Re: Vision sensor does not detect mujoco composites

Posted: 27 Sep 2022, 06:37
by coppelia
Hello,

in order to have your drawing objects visible when seen through a vision sensor, you need to add the sim.drawing_painttag tag, e.g.:

Code: Select all

drawingCont=sim.addDrawingObject(sim.drawing_triangles|sim.drawing_painttag,0,0,-1,0,color)
Cheers