Revision 2c4bbc89 examples/meka/src/mekajointinterface.cpp

View differences:

examples/meka/src/mekajointinterface.cpp
24 24
        if (id != -1){
25 25
            //printf("> storing joint data for joint id %d\n", id);
26 26
            if (i >= msg.position.size()){
27
                printf("\r> msg is missing position data for joint %s...", name.c_str());
28
                //exit(EXIT_FAILURE);
27
                printf("> joint state msg is missing position data for joint '%s'...\n", name.c_str());
28
                return;
29 29
            }
30 30
            if (i >= msg.velocity.size()){
31
                printf("\r> msg is missing velocity data for joint %s...", name.c_str());
31
                //printf("> joint state msg is missing velocity data for joint '%s'...\n", name.c_str());
32 32
                //exit(EXIT_FAILURE);
33
                return;
33 34
            }
34 35
            //ok, safe to access data
35 36
            JointInterface::store_incoming_position(id, msg.position[i], timestamp);

Also available in: Unified diff