I have built a custom robot in CoppeliaSim by first creating the base shapes and joints in CoppeliaSim, and then importing my CAD files of the robot as meshes and putting them on top of the base robot. I have hidden the base robot (unticked all of the camera visibility layers for every part that I want to hide) so that only the detailed CAD robot is shown.
When I look at my DefaultCamera, I can not see any of my hidden shapes. However, my vision sensor is still picking up the shapes of the basic model - how should I go about hiding them from this sensor? I read some previous posts and have made my vision sensor "explicit handling" and added a child script with:
Code: Select all
function sysCall_init()
-- do some initialization here
h=sim.getObjectHandle(sim.handle_self)
end
function sysCall_sensing()
-- put your sensing code here
sim.handleVisionSensor(h)
end
Thanks!