Dobot Api
This module provides a class to connect and interface with Dobot's arms
ATTRIBUTE | DESCRIPTION |
---|---|
DASHBOARD_PORT |
port number for the dashboard API
TYPE:
|
FEEDBACK_PORT |
port number for the feedback API
TYPE:
|
CLASS | DESCRIPTION |
---|---|
DobotDevice |
DobotDevice provides methods to connect and interface with Dobot's arms |
Documentation last updated: 2025-02-22
DobotDevice
DobotDevice(
host: str,
port: int | None = None,
timeout: int = 10,
*,
simulation: bool = False,
verbose: bool = False,
**kwargs,
)
DobotDevice provides methods to connect and interface with Dobot's arms
ATTRIBUTE | DESCRIPTION |
---|---|
host |
device host
TYPE:
|
port |
device port
TYPE:
|
timeout |
device timeout
TYPE:
|
connection_details |
connection details for the device
TYPE:
|
dashboard_api |
dashboard API for the device
TYPE:
|
move_api |
move API for the device
TYPE:
|
flags |
flags for the device
TYPE:
|
is_connected |
whether the device is connected
TYPE:
|
verbose |
verbosity of class
TYPE:
|
METHOD | DESCRIPTION |
---|---|
connect |
connect to the device |
disconnect |
disconnect from the device |
reset |
reset the device |
clear |
clear the input and output buffers |
query |
query the device |
read |
read data from the device |
write |
write data to the device |
close |
close the connection to the device |
ClearError |
clear any errors on the device |
DisableRobot |
disable the robot |
EnableRobot |
enable the robot |
ResetRobot |
stop the robot |
SetArmOrientation |
set the handedness of the robot |
SpeedFactor |
set the speed factor of the robot |
GetAngle |
get the angle of the robot |
GetPose |
get the pose of the robot |
DOExecute |
execute a digital output |
JointMovJ |
move the robot to the specified joint coordinates |
MovJ |
move the robot to the specified cartesian coordinates |
RelMovJ |
move the robot by the specified joint offsets |
RelMovL |
move the robot by the specified cartesian offsets |
DOExecute
Execute a digital output
PARAMETER | DESCRIPTION |
---|---|
channel
|
channel of the digital output
TYPE:
|
on
|
whether to enable the digital output (1 or 0)
TYPE:
|
JointMovJ
Move the robot to the specified joint coordinates
PARAMETER | DESCRIPTION |
---|---|
j1
|
joint 1 coordinate
TYPE:
|
j2
|
joint 2 coordinate
TYPE:
|
j3
|
joint 3 coordinate
TYPE:
|
j4
|
joint 4 coordinate
TYPE:
|
MovJ
Move the robot to the specified cartesian coordinates
PARAMETER | DESCRIPTION |
---|---|
x
|
x-coordinate
TYPE:
|
y
|
y-coordinate
TYPE:
|
z
|
z-coordinate
TYPE:
|
r
|
r-coordinate
TYPE:
|
RelMovJ
Move the robot by the specified joint offsets
PARAMETER | DESCRIPTION |
---|---|
offset1
|
joint 1 offset
TYPE:
|
offset2
|
joint 2 offset
TYPE:
|
offset3
|
joint 3 offset
TYPE:
|
offset4
|
joint 4 offset
TYPE:
|
RelMovL
Move the robot by the specified cartesian offsets
PARAMETER | DESCRIPTION |
---|---|
offsetX
|
x offset
TYPE:
|
offsetY
|
y offset
TYPE:
|
offsetZ
|
z offset
TYPE:
|
offsetR
|
r offset
TYPE:
|
SetArmOrientation
Set the handedness of the robot
PARAMETER | DESCRIPTION |
---|---|
right_handed
|
whether to select right-handed mode
TYPE:
|
SpeedFactor
Set the speed factor of the robot
PARAMETER | DESCRIPTION |
---|---|
speed_factor
|
speed factor to set
TYPE:
|
query
Query the device
PARAMETER | DESCRIPTION |
---|---|
data
|
data to query
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
list[str] | None
|
list[str]|None: data read from the device, if any |
read
Read data from the device
PARAMETER | DESCRIPTION |
---|---|
lines
|
whether to read multiple lines. Defaults to False.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str | list[str]
|
str|list[str]: line(s) of data read from the device |