Value for IF Statement

Something like a process statement, sensor, or a …python script.
I agree with @Tilma: it seems that this is not doable without a little Python, and I don’t think there’s any ready components in eCatalog to read/measure the material.

Luckily for you, I had a color sensor example in my hard drive. It tests the color of first surface that collides with its ray.
I modified it quickly for you so that it sends boolean signals if the material colliding with the ray has green/red in the name. Attach this to the robot’s link 5 or 6, take a measurement by sending a PulseSignal, and use the aforementioned expression in the IF statement.
Color Sensor.vcmx (17.9 KB)

2 Likes