Revision 0d0f5ca1 src/server/motion_generator.cpp
src/server/motion_generator.cpp | ||
---|---|---|
45 | 45 |
MotionGenerator::~MotionGenerator(){ |
46 | 46 |
} |
47 | 47 |
|
48 |
//! fetch thr latest (=current) position of a joint |
|
48 |
//! fetch the latest (=current) speed of a joint |
|
49 |
//! \param joint_id |
|
50 |
//! \return float value of joint speed |
|
51 |
float MotionGenerator::get_current_speed(int joint_id){ |
|
52 |
return joint_interface->get_ts_speed(joint_id).get_newest_value(); |
|
53 |
} |
|
54 |
|
|
55 |
//! fetch the latest (=current) position of a joint |
|
49 | 56 |
//! \param joint_id |
50 | 57 |
//! \return float value of joint position |
51 | 58 |
float MotionGenerator::get_current_position(int joint_id){ |
Also available in: Unified diff