Revision 1c758459 src/server/neck_motion_generator.cpp
src/server/neck_motion_generator.cpp | ||
---|---|---|
181 | 181 |
float max_speed = (CONST_GUITTON87_A * distance_abs + CONST_GUITTON87_B); |
182 | 182 |
|
183 | 183 |
//max accel: assuming linear acceleration we have |
184 |
// v ^
|
|
185 |
// | / \
|
|
186 |
// | / \
|
|
187 |
// |/_____\___> t
|
|
188 |
//
|
|
184 |
/* v ^
|
|
185 |
* | / \
|
|
186 |
* | / \
|
|
187 |
* |/_____\___> t
|
|
188 |
*/
|
|
189 | 189 |
// d_total = 2 * 1/2 * a * (t_total/2)^2 = 1/4 * a * t_total^2 |
190 | 190 |
// as we use linear accel we have |
191 | 191 |
// v_max = a * t_total/2 --> t_total = 2*v_max / a |
Also available in: Unified diff