30 #ifndef __sot_torque_control_madgwickahrs_H__
31 #define __sot_torque_control_madgwickahrs_H__
38 #if defined(madgwickahrs_EXPORTS)
39 #define SOTMADGWICKAHRS_EXPORT __declspec(dllexport)
41 #define SOTMADGWICKAHRS_EXPORT __declspec(dllimport)
44 #define SOTMADGWICKAHRS_EXPORT
51 #include <dynamic-graph/signal-helper.h>
56 #include "boost/assign.hpp"
87 DYNAMIC_GRAPH_ENTITY_DECL();
90 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
95 void init(
const double &dt);
117 double ay,
double az);
Definition: madgwickahrs.hh:85
double m_q0
quaternion of sensor frame
Definition: madgwickahrs.hh:125
virtual void display(std::ostream &os) const
EIGEN_MAKE_ALIGNED_OPERATOR_NEW MadgwickAHRS(const std::string &name)
double m_sampleFreq
sample frequency in Hz
Definition: madgwickahrs.hh:127
double m_beta
2 * proportional gain (Kp)
Definition: madgwickahrs.hh:123
bool m_initSucceeded
true if the entity has been successfully initialized
Definition: madgwickahrs.hh:121
DECLARE_SIGNAL_IN(accelerometer, dynamicgraph::Vector)
ax ay az in m.s-2
void init(const double &dt)
void madgwickAHRSupdateIMU(double gx, double gy, double gz, double ax, double ay, double az)
DECLARE_SIGNAL_OUT(imu_quat, dynamicgraph::Vector)
Estimated orientation of IMU as a quaternion.
void set_imu_quat(const dynamicgraph::Vector &imu_quat)
Set the quaternion as [w,x,y,z].
DECLARE_SIGNAL_IN(gyroscope, dynamicgraph::Vector)
gx gy gz in rad.s-1
void set_beta(const double &beta)
#define SOTMADGWICKAHRS_EXPORT
Definition: madgwickahrs.hh:44
Definition: abstract-sot-external-interface.hh:17