Notify when one or several events are emmited by the robot.
Notify changes in the event table of the group associated to this robot
Emitted when the robot is associated to another group When a group change happens, it is the responsability of the application to rewire the group-monitoring callbacks such as onSharedVariablesChanged and onEventsDescriptionsChanged.
watchSharedVariablesAndEvents may also need to be reconfigured after a group change.
Emitted when the name of the robot changes
Notify of shared variables changes in the group associated to that robot
Emitted when the status of the robot changes
Notifiy of robot variables changes. These are both the variables of the robot and the variables defined in the currently executing programm.
Known events
Group to which this robot belongs
Unique Id of the node
Shorthand for status == NodeStatus.Ready, see type
Name of the robot
Known events
Status of the robot
A string representaion of the type of the robot see type
A string representaion of the status of the robot see type
Get the description from the device The device must be in the available state before requesting the VM.
Send events to a group Each event must be registed on the group (see setEventsDescriptions)
When sending events to Thymio 2, the value of each event must be an array of int16 matching EventDescription.fixed_size
events to broadcast
Lock the device Locking a device is akin to take sole ownership of it until the connection is closed or the unlock method is explicitely called
The device must be in the available state before it can be locked. Once a device is locked, all client will see the device becoming busy.
If the device can not be locked, an mobsya.fb.Error is raised.
Send a request to rename a node
Run the code currently loaded on the vm The device must be locked & ready before calling this function
Load an aseba program on the VM The device must be locked & ready before calling this function The code is not directly executed. instead, {runProgram} must be call to start the execution
the aseba code to load
Set the event descriptions on the group associated with this robot
Overwrite all existing events descriptions the node must be locked.
Set the shared variables on the group associated with this robot
Overwrite all existing shared variables the node must be locked.
Set the values of the specified variables. Unlike setSharedVariables, existing variables not modifieed by this function are left unmodified
the variables to modify
Unlock the device Once a device is unlocked, all client will see the device becoming available. Once unlock, a device can't be written to until loc
Request the TDM to dispatch modifications of the shared variables and event description for a group or a Thymio to this client.
This must be called for the following event to be triggered
bitflag of [[fb.mobsya.WatchableInfo]]
Generated using TypeDoc
A node represents a physical or virtual Thymio