Vision sensor does not detect mujoco composites

Typically: "How do I... ", "How can I... " questions
Post Reply
jcolanz
Posts: 1
Joined: 26 Sep 2022, 16:20

Vision sensor does not detect mujoco composites

Post 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.

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: Vision sensor does not detect mujoco composites

Post 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

Post Reply