The JointIntegrator class implements different numerical integrators.
More...
#include <JointIntegrator.hpp>
|
| | JointIntegrator () |
| |
| void | integrate (const types::JointState &joint_state, types::JointCommand &cmd, double cycle_time, types::CommandMode mode, IntegrationMethod method=RECTANGULAR, bool use_cur_state=false) |
| | Performs numerical from acceleration/velocity to positions.
|
| |
| void | integrateRectangular (types::JointCommand &cmd, double cycle_time, types::CommandMode mode, bool use_cur_state=false) |
| | Performs numerical from acceleration/velocity to positions using rectangular method.
|
| |
| void | integrateTrapezoidal (types::JointCommand &cmd, double cycle_time, types::CommandMode mode, bool use_cur_state=false) |
| | Trapezoidal method for numerical integration.
|
| |
| void | reinit () |
| | Reinitialize state of the integrator.
|
| |
The JointIntegrator class implements different numerical integrators.
◆ JointIntegrator()
| wbc::JointIntegrator::JointIntegrator |
( |
| ) |
|
|
inline |
◆ integrate()
Performs numerical from acceleration/velocity to positions.
- Parameters
-
| cmd | Input joint command, wil be modified by the method |
| cycle_time | Period between two consecutive calls in seconds |
| method | Integration method to use |
| use_cur_state | Integrate from internal (interpolated) state or from current joint state. In the first case, the integrator will not be aware of the current robot state and integrated position/velocity vs. real robot position/velocity may drift apart. As a rule-of-thumb, for stiff, position-controlled robots, use_cur_state should be false, while for compliant robots that have environment contacts, e.g., walking robots, use_cur_state should be true. |
◆ integrateRectangular()
Performs numerical from acceleration/velocity to positions using rectangular method.
- Parameters
-
| cmd | Input joint command, wil be modified by the method |
| cycle_time | Period between two consecutive calls in seconds |
◆ integrateTrapezoidal()
Trapezoidal method for numerical integration.
- Parameters
-
| cmd | Input joint command, wil be modified by the method |
| cycle_time | Period between two consecutive calls in seconds |
◆ reinit()
| void wbc::JointIntegrator::reinit |
( |
| ) |
|
|
inline |
Reinitialize state of the integrator.
The documentation for this class was generated from the following files: