here in the photo we have listed all the python commands that we can use to make the robot move or make it carry out vision, audio etc. activities...
first of all, before writing our program we must check that our robot is connected, if this is not the case, just click on the "connect" button and the robot will connect to the device we are using to do the programming
COMMAND EXPLANATION
Wheels control (differential drive)
robot.forward(m) = the robot moves forward (1 is about 50cm)
robot. backward(m) = the robot goes backwards (1 is about 50cm)
robot.left(n) = the robot turns left (let's enter in the brackets how many degrees it should turn e.g. 90)
robot.right(n) = the robot turns right (let's enter in the brackets how many degrees it should turn e.g. 90)
robot.setSpeed(lx,az,tm,stopend=False) = it is used to move the robot by indicating LX or the length to travel in cm, AZ or the travel angle, TM is the time to make the robot move forward
robot.setSpeed4W(fl,fr,bl,br,tm,stopend=False) = we move the 4WD robot forward by inserting FL parameters
Head pan-tilt control
robot.pan() = neck movement from right to left (Ban limit -40 0 +40 degrees)
robot.tilt() = neck movement up and down (Tilt limit -20 0 +20 degrees)
Arms shoulder-pitch control
robot.left_arm() = back and forth movement of the robot's left arm
robot.right_arm() = back and forth movement of the robot's right arm
limits: Limit in front (+) 0-50 degrees
Limit behind (-) 0-80 degrees
Face emotion
robot.emotion(“normal”) = set the robot face to a "normal" expression
robot.emotion(“happy”) = set the robot's face with a "happy" expression
robot.emotion(“sad”) = set the robot's face to a "sad" expression
robot.emotion(“sings”) = the robot moves its mouth as if it were singing
robot.emotion(“surprise”) = set the robot's face with a "surprise" expression
robot.emotion(“angry”) = set the robot's face with an "angry" expression
Speech synthesis
robot.say(‘hello’,’en’) = the robot says "hello" in english
RGB camera
robot.tag_id() = the tag ID returns (-1 if there is no tag)
robot.tag_clean() = cleans the reading of the "tagID" so that the tag variable is free for any
display(robot.tagID()) = shows the value of the id tag
robot.getImage() = we can get the image our robot sees