Python coding mode in Mind+
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
# The code starts here
from PetoiRobot import * # must import the PetoiRobot library
# enter the code below
# auto connect serial ports
autoConnect()
# call the APIs to control the Petoi robot
sendSkillStr('ksit', 0.5)
sendCmdStr('T', 0.5)
loadSkill("skillFileName", 0.2)
# close the serial port
closePort()