Revision 0b76d42b
examples/meka/src/mekajointinterface.cpp | ||
---|---|---|
11 | 11 |
//iterate through incoming joints and filter out joints we need: |
12 | 12 |
for(int i=0; i<msg.name.size(); i++){ |
13 | 13 |
string name = msg.name[i]; |
14 |
printf("incoming data for joint '%s'\n", name.c_str()); |
|
14 |
//printf("incoming data for joint '%s'\n", name.c_str());
|
|
15 | 15 |
|
16 | 16 |
int id = -1; |
17 | 17 |
if (name == "head_j1"){ |
src/server/server.cpp | ||
---|---|---|
97 | 97 |
//calculate loop delay: |
98 | 98 |
float loop_delay = 1000.0 / MOTION_UPDATERATE; |
99 | 99 |
boost::system_time timeout = get_system_time() + posix_time::milliseconds(loop_delay); |
100 |
/* |
|
100 |
|
|
101 | 101 |
//wait for incoming joint data: |
102 | 102 |
while (middleware->ok()){ |
103 | 103 |
//mw tick |
... | ... | |
120 | 120 |
} |
121 | 121 |
|
122 | 122 |
printf("> joint data arrived, will activate control loop now.\n"); |
123 |
*/ |
|
123 |
|
|
124 | 124 |
//fine, data is arriving, activate and run control loop: |
125 | 125 |
while (middleware->ok()){ |
126 | 126 |
//mw tick |
Also available in: Unified diff