GCOP
1.0
|
#include <hrotor.h>
Public Member Functions | |
Hrotor () | |
void | StateAndControlsToFlat (VectorXd &y, const Body3dState &x, const Vector4d &u) |
void | FlatToStateAndControls (Body3dState &x, Vector4d &u, const std::vector< VectorXd > &y) |
Public Attributes | |
double | l |
distance from center of mass to each rotor | |
double | r |
propeller radius | |
double | kt |
thrust gain | |
double | km |
moment gain | |
double | mm |
motor coefficient |
A hexrotor dynamical model.
The state is where is the pose, and the controls are correspond to torques around the body and a vertical lift force.
Author: Marin Kobilarov marin(at)jhu.edu
Hrotor::Hrotor | ( | ) |
References gcop::Body3d< 4 >::Bu, gcop::Body3d< 4 >::fp, and gcop::Body3d< 4 >::m.
void Hrotor::FlatToStateAndControls | ( | Body3dState & | x, |
Vector4d & | u, | ||
const std::vector< VectorXd > & | y | ||
) |
References gcop::Body3d< 4 >::m.
void Hrotor::StateAndControlsToFlat | ( | VectorXd & | y, |
const Body3dState & | x, | ||
const Vector4d & | u | ||
) |
References gcop::SO3::Instance(), and gcop::SO3::yaw().
double gcop::Hrotor::km |
moment gain
double gcop::Hrotor::kt |
thrust gain
double gcop::Hrotor::l |
distance from center of mass to each rotor
Referenced by gcop::Airbot::Airbot(), and gcop::HrotorGeom3dView::RenderGeom().
double gcop::Hrotor::mm |
motor coefficient
double gcop::Hrotor::r |
propeller radius
Referenced by gcop::Airbot::Airbot(), and gcop::HrotorGeom3dView::RenderGeom().