Revision 4dbb1a71 examples/yarp_icub/src/icub_data_receiver.cpp
examples/yarp_icub/src/icub_data_receiver.cpp | ||
---|---|---|
33 | 33 |
//double timestamp = get_timestamp_ms(); |
34 | 34 |
|
35 | 35 |
//publish data to humotion |
36 |
printf("\nMMM"); |
|
36 | 37 |
for(int i=0; i<positions.size(); i++){ |
37 | 38 |
icub_jointinterface->fetch_position(i, positions[i], timestamps[i]); |
38 | 39 |
icub_jointinterface->fetch_speed(i, velocities[i], timestamps[i]); |
39 | 40 |
if (i==iCubJointInterface::ICUB_ID_NECK_PAN){ |
40 |
printf("\nMMM p=%f v=%f\n",positions[i],velocities[i]); |
|
41 |
//printf("\nMMM p=%f v=%f\n",positions[i],velocities[i]);
|
|
41 | 42 |
} |
43 |
printf("%d=%f ", i,velocities[i]); |
|
42 | 44 |
} |
45 |
|
|
46 |
printf("\n"); |
|
43 | 47 |
|
44 | 48 |
//printf("\n%f %f %f TIME\n", get_timestamp_ms(), timestamps[2], positions[2]); |
45 | 49 |
//printf("TIMEDIFF %f\n", get_timestamp_ms() - timestamps[2]); |
Also available in: Unified diff