Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 868 Bytes

6.1.4-Drag_teach.md

File metadata and controls

42 lines (28 loc) · 868 Bytes

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 →