_cldrobot


Value Type

boolean

Description

Set to true when a robot collides with another robot. This variable triggers the section registered by the regcldrobot command to handle robot collision events. Collision indicators are mutually exclusive. When _cldrobot is true all other collision variables will be false.

This variable is reset to false automatically when the robot collision event handler completes. The _cldrobot variable can also be manually reset with the clear command. If no section has been registered to handle robot collision events and the clear command is not used, _cldrobot will remain true until a collision with a different obstacle type occurs.

When a robot collides with a robot the collision variables _cldbearing, _cldenergy, _cldheading, _cldid, and _cldteamid contain additional information.

See Also

regcldrobot, clear, _cldbearing, _cldenergy, _cldheading, _cldid, _cldteamid