Revision 5cd4364c examples/yarp_icub/src/main.cpp

View differences:

examples/yarp_icub/src/main.cpp
79 79

  
80 80
    icub_jointinterface->run();
81 81

  
82

  
83
    // pre-/re-configure some dyn reconfig variables
84
    int syscall_result;
85
    syscall_result = std::system(("rosrun dynamic_reconfigure dynparam set " + scope +
86
                 "/humotion/configuration " +
87
                " \"{'use_neck_target_instead_of_position_eye':false, " +
88
                "'eyelids_follow_eyemotion':false}\"").c_str());
89

  
90
    if (syscall_result != 0) {
91
        std::cerr << "ERROR: failed to set dynamic reconf parameters!" << std::endl;
92
        return EXIT_FAILURE;
93
    }
94

  
82 95
    while (humotion_server->ok()) {
83 96
        usleep(1000);
84 97
    }

Also available in: Unified diff