Robot Dynamics Library
Functions
RobotDynamics::HydroUtils Namespace Reference

Namespace that contains optional helper functions. More...

Functions

void calcCenterOfBuoyancy (Model &model, const Math::VectorNd &q, Math::FramePoint &com, bool update_kinematics=true)
 Computes the Center of Buoyancy (COB) position. More...
 
void calcCenterOfMassAndCenterOfBuoyancy (Model &model, const Math::VectorNd &q, const Math::VectorNd &qdot, Math::Vector3d &com, Math::Vector3d &cob, Math::Vector3d &com_velocity, bool update_kinematics)
 
void updateCenterOfBuoyancyFrame (Model &model, const Math::Vector3d &p_cob)
 Updates the center of buoyancy frame of the robot be at location p_com and aligned with world frame. More...
 
void updateCenterOfBuoyancyFrame (Model &model, const Math::Vector3d &p_cob, const Math::Quaternion &orientation)
 Updates the center of buoyancy frame of the robot be at location p_com and aligned with world frame. More...
 
void updateCenterOfBuoyancyFrame (Model &model, const Math::Vector3d &p_cob, const Math::Vector3d &euler_ypr)
 Updates the center of buoyancy frame of the robot be at location p_com and to have orientation defined by the yaw/pitch/roll angles in euler_ypr argument. The euler_ypr argument is optional and if not provided the center of buoyancy reference frame will be aligned with world. More...
 
RobotDynamics::Math::FramePoint updateCenterOfBuoyancyFrame (Model &model, const Math::VectorNd &q, bool update_kinematics=true)
 Computes the center of buoyancy and updates the center of buoyancy reference frame of the model. More...
 
RobotDynamics::Math::FramePoint updateCenterOfBuoyancyFrame (Model &model, const Math::VectorNd &q, const Math::Quaternion &orientation, bool update_kinematics=true)
 Computes the center of buoyancy and updates the center of buoyancy reference frame of the model. More...
 
RobotDynamics::Math::FramePoint updateCenterOfBuoyancyFrame (Model &model, const Math::VectorNd &q, const Math::Vector3d &euler_ypr, bool update_kinematics=true)
 Computes the center of buoyancy and updates the center of buoyancy reference frame of the model. More...
 
Math::SpatialForce calcBuoyancyWrenchOnCenterOfMass (Model &model, const Math::VectorNd &q, bool update_kinematics=true)
 Computes the wrench due to buoyancy experienced at the robots center of mass. More...
 
Math::SpatialForce calcDragWrenchOnCenterOfMass (Model &model, const Math::VectorNd &q, const Math::VectorNd &qdot, bool update_kinematics=true)
 Computes the wrench due to drag experienced at the robots center of mass. More...
 
double calcSubtreeVolume (Model &model, const unsigned int bodyId)
 Calculates the total volume of the model. More...
 
double calcSubtreeWeightInFluid (Model &model, const unsigned int bodyId)
 Calculate the weight of a kinematic subtree in fluid with density RobotDynamics::Model::fluid_density. More...
 

Detailed Description

Namespace that contains optional helper functions.