Closed thunderslack91 closed 6 years ago
Hi @thunderslack91! To ensure that you have the correct setup, it is best to follow the instructions here:
Mac: http://cozmosdk.anki.com/docs/install-macos.html
@thunderslack91 You can see an example that shows Cozmo is angry by running animations found in the remote control example, here: examples/apps/remote_control_cozmo.py
This is the only animation i found in examples/apps/remote_control_cozmo.py. Do you mean the below code?
default_anims_for_keys = ["anim_bored_01", # 0 "anim_poked_giggle", # 1 "anim_pounce_success_02", # 2 "anim_bored_event_02", # 3 "anim_bored_event_03", # 4 "anim_petdetection_cat_01", # 5 "anim_petdetection_dog_03", # 6 "anim_reacttoface_unidentified_02", # 7 "anim_upgrade_reaction_lift_01", # 8 "anim_speedtap_wingame_intensity02_01" # 9 ]
--------------------------------------------------------------------------------------------------------
> Below are the code for my animation, i not sure whether the below codes are correct
--------------------------------------------------------------------------------------------------------
if (intentName == "animation")
{
if (parameters["movement"].ToString() == "random")
{
pythonCode += tabs + "\trobot.play_anim('id_poked_giggled').wait_for_completed()\n";
pythonCode += tabs + "\trobot.play_anim('anim_hiking_react_05').wait_for_completed()\n";
}
else if(intentName=="giggle")
{
pythonCode += tabs + "\trobot.play_anim(name = 'anim_poked_giggle').wait_for_completed()\n";
}
}
i have downloaded all the cozmo_sdk demo examples from this website (https://github.com/anki/cozmo-python-sdk/tree/master/examples/tutorials/01_basics) . However the file does not have all the code to display the facial expression and animation of the cozmo. I required all the facial expression and animation code for cozmo. For example i want the code that allows cozmo to show he is angry.
01_basics.zip