Hello, If you need a clap by the hand in order to command a robot, probably you will need a circuit similar to the "clap switch circuit", you clap once, the light will open, you clap twice, the light will close.
For your need, you only need to sense the number pulse ouputed by the clap circuit and make an initial or preliminary specs,
clap 1x : move ot the right
clap 2x : move to the left
clap 3x : move forward
clap 4x : move backward
I own a toy car 10 years ago which is operated by a remote control which product "click" to command the toy car, but a hand clap can used to command it also. What I experienced is that, my toy car is sensitive into another sound other than clap or click, if you shouted into it loudly, it can be triggered.
So I guess, for your need and if you want to be sensitive only into clap, you might included a bandpass filter specific to hand clap frequencies.
Your controlling MCU need to be defined before a firmware can be created. I might able to find some clap switch circuit used in switching light, but I don't have the main circuit body like the control MCU and the motor control, etc.