Revision 21444915 src/server/motion_generator.cpp
| src/server/motion_generator.cpp | ||
|---|---|---|
| 49 | 49 |
//! \param joint_id |
| 50 | 50 |
//! \return float value of joint position |
| 51 | 51 |
float MotionGenerator::get_current_position(int joint_id){
|
| 52 |
/*Timestamp tsl = joint_interface->get_ts_position(joint_id).get_last_timestamp(); |
|
| 53 |
Timestamp now = Timestamp::now(); |
|
| 54 |
Timestamp diff=now-tsl; |
|
| 55 |
printf("TIME DIFF %fs %fns\n",diff.sec, diff.nsec);*/
|
|
| 56 |
|
|
| 52 | 57 |
return joint_interface->get_ts_position(joint_id).get_newest_value(); |
| 53 | 58 |
} |
| 54 | 59 |
|
Also available in: Unified diff