不用多加解释,玩玩这个游戏就明白啦!哈哈哈哈哈!
1.在身上贴一个视觉标签“3”
2.点击实验室
3.点击创建程序
4.将这些代码复制进去:
def user_defined_new_func1():
gimbal_ctrl.rotate_with_degree(rm_define.gimbal_up,20)
while not ((vision_ctrl.check_condition(rm_define.cond_recognized_people)) and (vision_ctrl.check_condition(rm_define.cond_recognized_marker_number_three))):
vision_ctrl.cond_wait(rm_define.cond_recognized_people)
time.sleep(1)
while not (not (vision_ctrl.check_condition(rm_define.cond_recognized_people)) or (vision_ctrl.check_condition(rm_define.cond_recognized_pose_victory))):
vision_ctrl.detect_marker_and_aim(rm_define.marker_number_three)
chassis_ctrl.move(0)
gun_ctrl.fire_continuous()
led_ctrl.set_bottom_led(rm_define.armor_bottom_all, 255, 0, 0, rm_define.effect_flash)
led_ctrl.set_top_led(rm_define.armor_top_all, 255, 193, 0, rm_define.effect_marquee)
armor_ctrl.cond_wait(rm_define.cond_armor_hit)
user_defined_new_func1()
def start():
robot_ctrl.set_mode(rm_define.robot_mode_free)
media_ctrl.play_sound(rm_define.media_sound_solmization_1C)
led_ctrl.set_bottom_led(rm_define.armor_bottom_all, 255, 50, 0, rm_define.effect_breath)
led_ctrl.set_top_led(rm_define.armor_top_all, 255, 50, 0, rm_define.effect_breath)
vision_ctrl.enable_detection(rm_define.vision_detection_people)
vision_ctrl.enable_detection(rm_define.vision_detection_marker)
vision_ctrl.enable_detection(rm_define.vision_detection_pose)
chassis_ctrl.set_trans_speed(0.1)
gimbal_ctrl.set_rotate_speed(190)
media_ctrl.play_sound(rm_define.media_sound_recognize_success,wait_for_complete_flag=True)
media_ctrl.play_sound(rm_define.media_sound_gimbal_rotate,wait_for_complete_flag=True)
media_ctrl.play_sound(rm_define.media_sound_count_down,wait_for_complete_flag=True)
user_defined_new_func1()
5.开始你的世界末日吧!
机甲大师会不断向你发射水弹并追你,你除非举起双手让机甲大师识别到投降手势,才放过你!完成后敲打一下装甲板即可从新开始世界末日哦!祝大家跑的开心!哈哈哈!
1.在身上贴一个视觉标签“3”
2.点击实验室
3.点击创建程序
4.将这些代码复制进去:
def user_defined_new_func1():
gimbal_ctrl.rotate_with_degree(rm_define.gimbal_up,20)
while not ((vision_ctrl.check_condition(rm_define.cond_recognized_people)) and (vision_ctrl.check_condition(rm_define.cond_recognized_marker_number_three))):
vision_ctrl.cond_wait(rm_define.cond_recognized_people)
time.sleep(1)
while not (not (vision_ctrl.check_condition(rm_define.cond_recognized_people)) or (vision_ctrl.check_condition(rm_define.cond_recognized_pose_victory))):
vision_ctrl.detect_marker_and_aim(rm_define.marker_number_three)
chassis_ctrl.move(0)
gun_ctrl.fire_continuous()
led_ctrl.set_bottom_led(rm_define.armor_bottom_all, 255, 0, 0, rm_define.effect_flash)
led_ctrl.set_top_led(rm_define.armor_top_all, 255, 193, 0, rm_define.effect_marquee)
armor_ctrl.cond_wait(rm_define.cond_armor_hit)
user_defined_new_func1()
def start():
robot_ctrl.set_mode(rm_define.robot_mode_free)
media_ctrl.play_sound(rm_define.media_sound_solmization_1C)
led_ctrl.set_bottom_led(rm_define.armor_bottom_all, 255, 50, 0, rm_define.effect_breath)
led_ctrl.set_top_led(rm_define.armor_top_all, 255, 50, 0, rm_define.effect_breath)
vision_ctrl.enable_detection(rm_define.vision_detection_people)
vision_ctrl.enable_detection(rm_define.vision_detection_marker)
vision_ctrl.enable_detection(rm_define.vision_detection_pose)
chassis_ctrl.set_trans_speed(0.1)
gimbal_ctrl.set_rotate_speed(190)
media_ctrl.play_sound(rm_define.media_sound_recognize_success,wait_for_complete_flag=True)
media_ctrl.play_sound(rm_define.media_sound_gimbal_rotate,wait_for_complete_flag=True)
media_ctrl.play_sound(rm_define.media_sound_count_down,wait_for_complete_flag=True)
user_defined_new_func1()
5.开始你的世界末日吧!
机甲大师会不断向你发射水弹并追你,你除非举起双手让机甲大师识别到投降手势,才放过你!完成后敲打一下装甲板即可从新开始世界末日哦!祝大家跑的开心!哈哈哈!