26 transform_tolerance_(0.0),
28 is_moving_walking_(false)
136 if (msg->data ==
"reset")
192 Eigen::Quaterniond pose_quaternion =
193 pose_old_quaternion *
195 pose_offset_quaternion;
203 Eigen::MatrixXd position_offset = Eigen::MatrixXd::Zero(3,1);
204 position_offset.coeffRef(0,0) =
206 position_offset.coeffRef(1,0) =
211 Eigen::MatrixXd position_offset_new = orientation * position_offset;
geometry_msgs::PoseStamped pelvis_pose_base_walking_
void quaternionEigenToMsg(const Eigen::Quaterniond &e, geometry_msgs::Quaternion &m)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
geometry_msgs::PoseStamped pelvis_pose_offset_new_
geometry_msgs::PoseStamped pelvis_pose_old_
double transform_tolerance_
tf::TransformBroadcaster broadcaster_
tf::StampedTransform pelvis_trans_
void pelvisPoseResetCallback(const std_msgs::String::ConstPtr &msg)
Eigen::Matrix3d convertQuaternionToRotation(const Eigen::Quaterniond &quaternion)
geometry_msgs::PoseStamped pelvis_pose_offset_
geometry_msgs::PoseStamped pelvis_pose_
void pelvisPoseCallback(const geometry_msgs::PoseStamped::ConstPtr &msg)
ros::Subscriber pelvis_pose_msg_sub_
ros::Subscriber pelvis_reset_msg_sub_
ros::NodeHandle ros_node_