BB.Test.RecordingActuator (bb v0.19.0)

Copy Markdown View Source

Actuator that forwards every received command message to a test process.

Before starting the robot, put the recipient pid into persistent term:

:persistent_term.put({BB.Test.RecordingActuator, MyRobot}, self())

The actuator looks up the recipient at init and sends {:received, kind, message} for each incoming command. kind is one of :info, :cast, or :call.