#include <PreviewControl/rigid-body-system.hh>
Public Member Functions | |
| RigidBodySystem (SimplePluginManager *SPM, CjrlHumanoidDynamicRobot *aHS, SupportFSM *FSM) | |
| ~RigidBodySystem () | |
| void | initialize () |
| Initialize. | |
| int | interpolate (solution_t Result, std::deque< ZMPPosition > &FinalZMPTraj_deq, std::deque< COMState > &FinalCOMTraj_deq, std::deque< FootAbsolutePosition > &FinalLeftFootTraj_deq, std::deque< FootAbsolutePosition > &FinalRightFootTraj_deq) |
| Interpolate. | |
| int | update (const std::deque< support_state_t > &SupportStates_deq, const std::deque< FootAbsolutePosition > &LeftFootTraj_deq, const std::deque< FootAbsolutePosition > &RightFootTraj_deq) |
| Update feet matrices. | |
| int | compute_dyn_cjerk () |
| Initialize dynamics of the body center Suppose a piecewise constant jerk. | |
| int | generate_trajectories (double time, const solution_t &Result, const std::deque< support_state_t > &SupportStates_deq, const std::deque< double > &PreviewedSupportAngles_deq, std::deque< FootAbsolutePosition > &LeftFootTraj_deq, std::deque< FootAbsolutePosition > &RightFootTraj_deq) |
| Generate final trajectories. | |
Accessors and mutators | |
| linear_dynamics_t const & | DynamicsCoPJerk () const |
| linear_dynamics_t & | DynamicsCoPJerk () |
| RigidBody const & | CoM () const |
| void | CoM (const RigidBody &CoM) |
| RigidBody const & | LeftFoot () const |
| RigidBody & | LeftFoot () |
| void | LeftFoot (const RigidBody &LeftFoot) |
| RigidBody const & | RightFoot () const |
| RigidBody & | RightFoot () |
| void | RightFoot (const RigidBody &RightFoot) |
| double | SamplingPeriodSim () const |
| void | SamplingPeriodSim (double T) |
| double | SamplingPeriodAct () const |
| void | SamplingPeriodAct (double Ta) |
| unsigned | NbSamplingsPreviewed () const |
| void | NbSamplingsPreviewed (unsigned N) |
| double | Mass () const |
| void | Mass (double Mass) |
| double | CoMHeight () const |
| void | CoMHeight (double Height) |
| bool | multiBody () const |
| void | multiBody (bool multiBody) |
| std::deque< support_state_t > & | SupportTrajectory () |
| RigidBodySystem::RigidBodySystem | ( | SimplePluginManager * | SPM, |
| CjrlHumanoidDynamicRobot * | aHS, | ||
| SupportFSM * | FSM ) |
| RigidBodySystem::~RigidBodySystem | ( | ) |
|
inline |
|
inline |
| int RigidBodySystem::compute_dyn_cjerk | ( | ) |
Initialize dynamics of the body center Suppose a piecewise constant jerk.
return 0
References compute_dyn_cjerk().
Referenced by compute_dyn_cjerk(), and initialize().
|
inline |
|
inline |
| int RigidBodySystem::generate_trajectories | ( | double | time, |
| const solution_t & | Result, | ||
| const std::deque< support_state_t > & | SupportStates_deq, | ||
| const std::deque< double > & | PreviewedSupportAngles_deq, | ||
| std::deque< FootAbsolutePosition > & | LeftFootTraj_deq, | ||
| std::deque< FootAbsolutePosition > & | RightFootTraj_deq ) |
Generate final trajectories.
| [in] | time | Current time |
| [in] | CurrentSupport | |
| [in] | Result | Optimization result |
| [in] | SupportStates_deq | |
| [in] | PreviewedSupportAngles_deq | |
| [out] | LeftFootTraj_deq | |
| [out] | RightFootTraj_deq |
return 0
| void RigidBodySystem::initialize | ( | ) |
Initialize.
References compute_dyn_cjerk().
| int PatternGeneratorJRL::RigidBodySystem::interpolate | ( | solution_t | Result, |
| std::deque< ZMPPosition > & | FinalZMPTraj_deq, | ||
| std::deque< COMState > & | FinalCOMTraj_deq, | ||
| std::deque< FootAbsolutePosition > & | FinalLeftFootTraj_deq, | ||
| std::deque< FootAbsolutePosition > & | FinalRightFootTraj_deq ) |
Interpolate.
| [in] | Result | Optimization result |
| [in] | FinalZMPTraj_deq | |
| [in] | FinalCOMTraj_deq | |
| [in] | FinalLeftFootTraj_deq | |
| [in] | FinalRightFootTraj_deq |
|
inline |
|
inline |
Referenced by LeftFoot().
|
inline |
References LeftFoot().
|
inline |
Referenced by Mass().
|
inline |
References Mass().
|
inline |
Referenced by multiBody().
|
inline |
References multiBody().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by RightFoot().
|
inline |
References RightFoot().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| int RigidBodySystem::update | ( | const std::deque< support_state_t > & | SupportStates_deq, |
| const std::deque< FootAbsolutePosition > & | LeftFootTraj_deq, | ||
| const std::deque< FootAbsolutePosition > & | RightFootTraj_deq ) |
Update feet matrices.
| [in] | SupportStates_deq | Previewed support states |
| [in] | LeftFootTraj_deq | Final foot trajectory (left foot) |
| [in] | RightFootTraj_deq | Final foot trajectory (right foot) |