Tudat/SimulationSetup/PropagationSetup/createTorqueModel.cpp
//! Function to create an aerodynamic torque model.
Function to create an aerodynamic torque model.
Function to create an aerodynamic torque model .
std::shared_ptr< basic_astrodynamics::InertialTorqueModel > createInertialTorqueModel(
        const std::shared_ptr< simulation_setup::Body > bodyUndergoingTorque,
        const std::string& nameOfBodyUndergoingTorque )
{
    std::function< Eigen::Vector3d( ) > angularVelocityFunction =
            std::bind( &Body::getCurrentAngularVelocityVectorInLocalFrame, bodyUndergoingTorque );
    std::function< Eigen::Matrix3d( ) > inertiaTensorFunction =
            std::bind( &Body::getBodyInertiaTensor, bodyUndergoingTorque );
    return std::make_shared< basic_astrodynamics::InertialTorqueModel >(
                angularVelocityFunction, inertiaTensorFunction );
}
std :: shared_ptr < basic_astrodynamics :: InertialTorqueModel > createInertialTorqueModel ( const std :: shared_ptr < simulation_setup :: Body > bodyUndergoingTorque , const std :: string & nameOfBodyUndergoingTorque ) { std :: function < Eigen :: Vector3d ( ) > angularVelocityFunction = std :: bind ( & Body :: getCurrentAngularVelocityVectorInLocalFrame , bodyUndergoingTorque ) ; std :: function < Eigen :: Matrix3d ( ) > inertiaTensorFunction = std :: bind ( & Body :: getBodyInertiaTensor , bodyUndergoingTorque ) ; return std :: make_shared < basic_astrodynamics :: InertialTorqueModel > ( angularVelocityFunction , inertiaTensorFunction ) ; }
Function to create an aerodynamic torque model.
Function to create an aerodynamic torque model .