Home Manual Reference Source Test Repository
public class | source

ShareService

Extends:

src/drivers/motion/MotionDriverSimulator.js~EventEmitter → ShareService

Automatically shares position, obstacles and task statuses between robots and provides simple API to share custom messages.

Example:

Mep.Share.send('ROBOT_ARRIVED_TO_POSITION');
Mep.Share.on('message', (message) => { console.log(message); });