trait BaseMovementLib extends AnyRef
This trait contains the basic movement libraries for the MacroSwarm. It includes movements like standStill, brownian, maintainTrajectory, maintainUntil, obstacleAvoidance.
- Self Type
- MacroSwarmSupport.BaseMovementLib with E.StandardSensors with E.AggregateProgram with E.TimeUtils
- Alphabetic
- By Inheritance
- BaseMovementLib
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def brownian(scale: Double = 1.0): Point3D
Brownian movement, i.e., random movement.
Brownian movement, i.e., random movement.
- scale
the scale of the movement, i.e., the multiplier of the random vector
- returns
the random vector
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def maintainTrajectory(velocityGenerator: => Point3D)(time: FiniteDuration): Point3D
Maintains a trajectory for a given time, then changes it.
Maintains a trajectory for a given time, then changes it.
- velocityGenerator
the generator of the velocity
- time
the time after which the trajectory is changed
- def maintainUntil(velocity: Point3D)(condition: Boolean): Point3D
Maintains a trajectory until a condition is met, then it became zero.
Maintains a trajectory until a condition is met, then it became zero.
- velocity
the velocity to maintain
- condition
the condition to be met
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def obstacleAvoidance(obstacles: Seq[Point3D], minDistance: Double, distanceWeightNormalization: Double = 100): Point3D
Avoids obstacles creating a repulsive force from them.
Avoids obstacles creating a repulsive force from them.
- obstacles
the obstacles to avoid expressed in term of the direction from the device
- minDistance
the minimum distance from the obstacles
- def randomInNormalDistribution(scala: Double): Point3D
- def standStill(): Point3D
No movement, i.e., stand still.
No movement, i.e., stand still.
- returns
the zero vector
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)