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>

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

Constructors

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

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
override fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val angle: Double

Angle in degrees of the field of view.

Link copied to clipboard
val distance: Double

Distance of the field of view.