Dorna Document

Dorna Document

  • GitHub
  • Dorna.ai

›Commands

Commands

  • Introduction
  • JSON format
  • Messages
  • Order of commands
  • Joint move
  • Rapid move
  • Line move
  • Circle move
  • Halt
  • Alarm
  • Sleep
  • Input
  • Probe
  • Output
  • PWM
  • ADC
  • Joint
  • Motor
  • Tool length
  • Version

Probe

{"cmd":"probe", ...}

This command will match the input values with the pattern that the user specifies. Whenever such a pattern appears at the input pins, the controller will send a response which is the value of each joint at the time that the match happens. This command could be useful for homing an actuator with a sensor connected to an input pin. Note that the controller will only send the response after the first match happens and consequent matches wont be responded. This command by default will be submitted to the high priority queue. By setting queue value to 0, the command will be submitted to the normal priority queue.

Key, value pairs

KeyValueRequiredDescription
"cmd""probe"YesMatch input values with a given pattern.
"id"Int (>0)NoId can be any positive integer. If id is not provided, status of the command will not be returned from the controller.
"in0", "in1", …, "in15"0 / 1NoProbe command will wait until the value of each input that has a key in the command matches its value. If an input key is not present in the command, its value wont impact the match.
"queue"0 / 1NoIf the value is 0, the command will be submitted to the normal priority queue. Otherwise, it will be submitted to the high priority queue. The default value 1.

Response

KeyValueDescription
"cmd""probe"Response of a probe command will be a message with cmd field set to probe which will include the joints values at the moment of input match.
"id"Int (>0)Same id as the original command.
"j0", "j1", …, "j7"DoubleThe value of each joint when the pattern matches.

Example

{"cmd":"probe", "id":11, "in4":0, "in7":1}

This command will wait until the input 4 value is 0 and input 7 value is 1. Then it will send a message that includes the values of all joints at that moment.

{"cmd":"probe", "id":11, "j0":12.3, "j1":2.11, "j2":85, "j3":653.4, "j4":56.34, "j5":67.32, "j6":23.74, "j7":90.00}

Error codes

StatValue
-300Halt already in process
-400Alarm activated
Last updated on 7/12/2022
← InputOutput →
  • Key, value pairs
  • Response
  • Example
  • Error codes
Dorna website →
Copyright © 2022 Dorna Robotics