|
motor_controller
|
#include <IRSpeedFromPositionFilter.hpp>
Public Member Functions | |
| IRSpeedFromPositionFilter (float factor, size_t size=0) | |
| bool | update (base::samples::Joints &joints, bool force=false) |
This simple class applies a IR filter on a JointState to estimate the velocity. It will work only on the JointState objects that do not have the velocity set
| IRSpeedFromPositionFilter::IRSpeedFromPositionFilter | ( | float | factor, |
| size_t | size = 0 |
||
| ) |
| factor | the IR filter factor. A velocity update is factor * new + (1-factor)*old |
| bool IRSpeedFromPositionFilter::update | ( | base::samples::Joints & | joints, |
| bool | force = false |
||
| ) |
Update the velocities in the given structure, modifying it, if possible
| force | if true, all velocities are updated. Otherwise, only the ones that are currently unset will be computed |
1.8.11