Drag Teaching

drag_teach_save()

Start recording and dragging teaching points.

  • Note: In order to display the best sports effect, the recording time should not exceed 90 seconds

drag_teach_pause()

Pause sampling.Pause sampling and enable the robotic arm again

drag_teach_execute()

Start dragging the teach-in point, executing it only once.

Case


from pymycobot import Mercury
import time
ml = Mercury("/dev/ttyTHS0")
mr = Mercury("/dev/ttyACM0")

ml.power_on()
mr.power_on()
# Left arm begins trajectory recording
ml.drag_teach_save()
# Recording duration is 10 seconds
time.sleep(10)
# Stop recording
ml.drag_teach_pause()
time.sleep(1)
# Start executing the recorded motion trajectory, only once
ml.drag_teach_execute()

← Previous Page | Next Chapter →

results matching ""

    No results matching ""