#!/usr/bin/python


from simtrack_nodes.srv import SwitchObjects
import rospy


if __name__=="__main__":

    rospy.init_node('simtrack_test')



    names = ['oreo_mega_stuf', 'champion_copper_plus_spark_plug', 'expo_dry_erase_board_eraser',
             'genuine_joe_plastic_stir_sticks', 'munchkin_white_hot_duck_bath_toy', 'crayola_64_ct',
             'mommys_helper_outlet_plugs', 'sharpie_accent_tank_style_highlighters', 'stanley_66_052',
             'safety_works_safety_glasses', 'cheezit_big_original', 'paper_mate_12_count_mirado_black_warrior',
             'feline_greenies_dental_treats', 'elmers_washable_no_run_school_glue', 'mead_index_cards',
             'first_years_take_and_toss_straw_cup', 'highland_6539_self_stick_notes', 'mark_twain_huckleberry_finn',
             'kyjen_squeakin_eggs_plush_puppies', 'kong_sitting_frog_dog_toy', 'kong_air_dog_squeakair_tennis_ball',
             'dr_browns_bottle_brush', 'kong_duck_dog_toy', 'laugh_out_loud_joke_book']

    srv = rospy.ServiceProxy('/simtrack/switch_objects', SwitchObjects)

    for name in names:
        rospy.loginfo('switching to object ' + name)
        srv.call([name])
        rospy.sleep(5.0)






