CameraSee

class CameraSee @JvmOverloads constructor(node: Node<Any>, environment: Physics2DEnvironment<Any>, val distance: Double, val angle: Double, outputMolecule: Molecule = SimpleMolecule("vision"), filterByMolecule: Molecule? = null) : AbstractAction<Any> (source)

Checks nodes in the environment and writes in outputMolecule the list of it.unibo.alchemist.model.VisibleNode, containing filterByMolecule. distance and angle define the field of view.

Constructors

Link copied to clipboard
constructor(node: Node<Any>, environment: Physics2DEnvironment<Any>, distance: Double, angle: Double, outputMolecule: Molecule = SimpleMolecule("vision"), filterByMolecule: Molecule? = null)

Properties

Link copied to clipboard

Angle in degrees of the field of view.

Link copied to clipboard

Distance of the field of view.

Functions

Link copied to clipboard
open override fun cloneAction(node: Node<Any>, reaction: Reaction<Any>): CameraSee
Link copied to clipboard
open override fun execute()
Link copied to clipboard
open override fun getContext(): Context
Link copied to clipboard
@Nonnull
override fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open override fun toString(): String