Hello, everyone, I want to know how to identify and grab objects through sensors
There are many ways.
You could use a vcRaycastSensor and attach a vcComponentsignal.
Then you assign a callback function to vcComponentSignal.OnValueChange.
Components do have the method transfer.
You can also use a vcComponentContainer to put parts in a Container.
A ProductCreator attached to a belt attached to the Input Port of ComponentContainer will run the callback event OnTransition.
Another way to fill up a vcComponentContainer is the method grab, which takes as argument the component you want to transfer.
Currently I’m working on the HighRackBay example from someone else. I could refer later to this code, if I reched my target. (My target is to use a robot to put parts in the example HighRackBay).
Thank you, but I can’t get the name or ID of the material through the sensor. Would you please give me an example
I made here an example: Generating txt.file on trigger
Maybe it helps to understand. Don’t forget, there is often more than one way to do something.