Humanoid (Quarky)
Extension Description
Controls the motion of the Humanoid with Quarky.
- Available in: Block Coding, Python Coding
- Mode: Stage Mode, Upload Mode
- WiFi Required: No
- Compatible Hardware in Block Coding: Quarky
- Compatible Hardware in Python: Quarky
- Object Declaration in Python: Not Applicable
- Extension Catergory: Quarky
Introduction
The extension allows users to control the Humanoid with Quarky.
Walk Forward
Turn Left
Bend Left
Bend Right
Crusito 01
Dance 1
Dance 2
Flapping 1
Moon Walk 1
Shake Left Leg
Swing
Tip Toe Swing
Up Down
Wave
Home
Read More
PictoBlox Blocks
All articles loaded
No more articles to load
Block Coding Examples
All articles loaded
No more articles to load
Python Functions
The function initializes the humanoid robot object in Python and maps the 6 servos to the specified pins.
Syntax: Humanoid(Right Hip = 7, Left Hip = 2, Right Foot = 6, Left Foot = 3, Right Hand = 8, Left Hand = 1)
The function calibrates the angles of the hip and foot servo motors and saves them in the memory of Quarky. Due to some mechanical assembly errors, there may be some misalignment of the servos which can be handled with this block.
Syntax: setlegoffset(Left Hip Offset = 0, Right Hip Offset = 0, Left Foot Offset = 0, Right Foot Offset = 0)
The function calibrates the angles of the hip and foot servo motors and saves them in the memory of Quarky.
Syntax: sethandoffset(Left Hand Offset = 0, Right Hand Offset = 0)
The function performs the selected motion for the humanoid. The motion runs for the specified times and at the specified speed.
Syntax: move(motion = “forward”, time period = 1000, cycle = 1)
The function sets the servo motors of the humanoid hip and leg to the specified angles at the specified speed.
Syntax: moveleg(time = 1000, servo angles = [90,90,90,90])
The function sets the servo motors of the humanoid hand to the specified angles at the specified speed.
Syntax: movehand(time = 1000, servo angles = [90,90])
The function sets the servo motors of the humanoid hip, foot and hand to the specified angles at the specified speed.
Syntax: moveall(time = 1000, servo angles = [90,90,90,90,90,90])
The function sets the selected servo motor angle to the specified angle in the specified time. This creates a smooth motion for the servo motor from the current angle to the specified angle.
Syntax: movelimb(servo name = “RHip”, angle = 90, time = 1000)
The block sets the oscillator parameters for the selected servo motor.
Syntax: setoscillationparameters(servo name = “RHip”, amplitude = 30, offset = 90, time period = 1000, phase difference = 0)
The function resets the oscillator parameter for all the servo motors.
Syntax: resetoscillationparameters()
The function executes the oscillator according to stored parameters for the servo motor and the current time.
Syntax: executeoscillator()
The function executes the oscillator according to stored parameters for the servo motor and the current angle specified in the functions.
Syntax: executesscillatorat(angle = 90)
The function executes the oscillator for the specified cycles.
Syntax: oscillateforcycles(cycles = 1)
The function resets the timer running for the oscillator to 0.
Syntax: resetoscillationtimer()
The function reports the time passed from the reset for the oscillator.
Syntax: oscillationtimer()
All articles loaded
No more articles to load
Python Coding Examples
All articles loaded
No more articles to load
Table of Contents