Some general inquiries about the use of Spray_Add. I'm using the code snippets below to add a spray gun for simulation purposes:
Can the color of a the particles be changed after the initial call? E.g. I'd like to first add blue particles, and then add yellow particles (without removing the present blue particles).
Can two or more spray guns be used at the same time?
Is there a function similar to the spray gun, which allows to add a particle at a specified pose w.r.t. a certain reference frame? Independent of any robot tools. I think this would be useful, e.g. to visualize calculated coordinates. Likewise, it would be useful to be able to 3d draw lines and surfaces etc. in a station.
Kind regards,
Maarten
Code:
RDK.Spray_Clear(-1) # Clear any spray objects.
RDK.Spray_Add(item_tool, item_object, "PARTICLE=SPHERE(4) PROJECT COLOR=blue") # Add simulated spray gun.
RDK.Spray_SetState(robolink.SPRAY_ON) # Turn the spray gun on.
# (Add inbetween code)
RDK.Spray_SetState(robolink.SPRAY_OFF) # Turn the spray gun off.
Can the color of a the particles be changed after the initial call? E.g. I'd like to first add blue particles, and then add yellow particles (without removing the present blue particles).
Can two or more spray guns be used at the same time?
Is there a function similar to the spray gun, which allows to add a particle at a specified pose w.r.t. a certain reference frame? Independent of any robot tools. I think this would be useful, e.g. to visualize calculated coordinates. Likewise, it would be useful to be able to 3d draw lines and surfaces etc. in a station.
Kind regards,
Maarten