20 if(!ros::isInitialized())
29 ros::init_options::NoSigintHandler
37 "/my_robot/gen_coord",
56 for(
int i = 0; i < 3; i++)
64 for(
int i = 0; i < 3; i++)
69 for(
int i = 0; i < 3; i++)
ros::Subscriber _generalized_position_subscriber
Eigen::Matrix< double, 3, 1 > _attitude
std::vector< double > _ang_vel_body_z_history
std::vector< double > _lin_vel_body_y_history
double _avg_ang_gait_vel_z
Eigen::Matrix< double, 3, 1 > _lin_vel_body
double _avg_lin_gait_vel_y
ros::Publisher _body_twist_state_publisher
ros::Subscriber _generalized_velocity_subscriber
StateEstimator(double gait_period, double controller_frequency)
int number_of_gait_iterations
Eigen::Matrix< double, 3, 1 > _lin_vel_world
std::vector< double > _lin_vel_body_x_history
void GeneralizedPositionCallback(const std_msgs::Float64MultiArrayConstPtr &msg)
void PublishBodyTwistState()
void GeneralizedVelocityCallback(const std_msgs::Float64MultiArrayConstPtr &msg)
double _avg_lin_gait_vel_x
ros::NodeHandlePtr _node_handle
Eigen::Matrix< double, 3, 1 > _ang_vel
Eigen::Matrix< double, 6, 1 > Twist